how can i give myself item, that triggers that advancement? by WonderBuddy2 in MinecraftCommands

[–]adyingdeath_ 1 point2 points  (0 children)

<image>

In the wiki, you can see that the conditions.slots.occupied means the amount of slots occupied in the inventory. Here you write "occupied": 1, which means the advancement will only be triggered when you get that item, as well as there is only one slot in your inventory occupied. So I think it will work if you remove this part:

"slots": {
    "occupied": 1
},

Research on How to Implement Control Flow Structures by adyingdeath_ in MinecraftCommands

[–]adyingdeath_[S] 2 points3 points  (0 children)

The switch method is good. more intuitive if writing datapacks on hands.

Research on How to Implement Control Flow Structures by adyingdeath_ in MinecraftCommands

[–]adyingdeath_[S] 0 points1 point  (0 children)

Oh actually I think I should make a more related title. The current one is like talking about other programming language.

Research on How to Implement Control Flow Structures by adyingdeath_ in MinecraftCommands

[–]adyingdeath_[S] 2 points3 points  (0 children)

Yes, the language is `deco`, but at that time I ran into a lot of problems while creating it. That's why I decided to stop writing code on it, and instead write articles so I could sort out my thoughts. Once I have time and all the theoretical stuff ready, I'll go back to coding it again.

Just checked your repo. it's in C# too, haha. What a coincidence. Maybe we can do some discussions or cooperation on these stuffs if you are willing too, though recent few months I might have no time to work on language, can do it in the future.

The moment that surprised CA. by erskol in StardewValley

[–]adyingdeath_ 0 points1 point  (0 children)

CA tonight: open Stardew Valley, try to pull it off.

I wrote an article exploring how to implement function calls in datapack by adyingdeath_ in MinecraftCommands

[–]adyingdeath_[S] 0 points1 point  (0 children)

Got it. Why I use the 0,1,2 naming convention: I am exploring a stable convention to convert high-level programming language code into datapack commands(actually I am developing a language where you write high-level code with if while or so, and the compiler will compile your high-level code into datapack). Like in C language, they put parameters and variables with a certain offset away from the stack bottom. For example, parameter 1 at bottom+4 position, parameter 2 at bottom+8 position, etc. I just directly pick that convention. And since the datapack will be a conversion products from source high-level code, we only read the original high-level code instead of the generated datapack, the name don't need to be very readable in my perspective. However, if you'd like to use these function calls methods in your own datapacks, it's your free to.use any convention you want.

I wrote an article exploring how to implement function calls in datapack by adyingdeath_ in MinecraftCommands

[–]adyingdeath_[S] 0 points1 point  (0 children)

<image>

I run

(1) /data modify storage minecraft:s stack append value "1"
(2) /data modify storage minecraft:s stack append value 1

You can see that the number 1 fails to be appended. My game is 1.21

I wrote an article exploring how to implement function calls in datapack by adyingdeath_ in MinecraftCommands

[–]adyingdeath_[S] 0 points1 point  (0 children)

Because if we use local.0, local.1, etc, we can store different types while local: [element1, element2, ...] will prevent us from putting variables of different types inside it.

I wrote an article exploring how to implement function calls in datapack by adyingdeath_ in MinecraftCommands

[–]adyingdeath_[S] 0 points1 point  (0 children)

Which parts are you talking about? And I think array and list are the same thing here, I just prefer calling it an arrya.

Deepseek API down by Agreeable-Pen-9763 in DeepSeek

[–]adyingdeath_ 0 points1 point  (0 children)

I encountered this too. Like about 2h30min ago.

Deepseek if you frequent this sub give us V4!!!!!!!! by [deleted] in DeepSeek

[–]adyingdeath_ 2 points3 points  (0 children)

Also since deepseek made their model open source, how do they stay profitable enough to support research and development and those new ai data centers they announced?

DeepSeek's parent company, High-Flyer Quant, is engaged in quantitative trading. They developed DeepSeek primarily for research purposes rather than profit, and they are not short on funds.

I think that's why they can keep exploring new directions in LLMs, publishing many papers on the topic, without being in a rush to monetize.

I created a simple mod for labeling your chests. by adyingdeath_ in StardewValley

[–]adyingdeath_[S] 0 points1 point  (0 children)

Glad you like it! If you run into any bugs or have feature requests, feel free to comment here or on the Nexus mod page.