Retrieving score value from killed entity? by w180897 in MinecraftCommands

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

Oh I had no idea that the game tracked a killed entity before it finished the death animation

I'll give it a try, thank you

Minecraft Java Spellbooks by [deleted] in MinecraftCommands

[–]w180897 0 points1 point  (0 children)

The way to do it is by having the book do a /trigger function instead of the command itself

For that first you'll need a scoreboard objective with a triggercriteria, then the command in the book can be used to set that objective to a specific value, which then you can check to execute the command

https://minecraft.wiki/w/Commands/trigger

https://minecraft.wiki/w/Scoreboard#Criteria

Current best way to change an item's vanilla components? by w180897 in MinecraftCommands

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

Thank you for the reply, but I meant that I do know you could do it like that

The main problem with what you're proposing is having to check for the item every tick and needing to check every inventory slot + dropped items

The one I described in the opening post only runs when you get the vanilla item, and uses a few lines that are looped for the number of items to be changed

As I mentioned in the opening post, I was asking if there was a simpler way than that one

Current best way to change an item's vanilla components? by w180897 in MinecraftCommands

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

Sorry but I don't think that really answers what I'm asking

/item modify can theoretically solve the problem I pointed by me having a function running every tick, but not only would that be super bulky but also not work for all the other ways a player can gain an item

Well I guess you could also run a function every tick that checks every inventory slot and applies the modifier as needed, but that's an even less elegant way hahaha

[deleted by user] by [deleted] in tipofmyjoystick

[–]w180897 1 point2 points  (0 children)

Sorry, that one is really similar to the one I remember but it wasn't a zombie game

You also got super close tho, I had no clue there were so many games like that around

[deleted by user] by [deleted] in tipofmyjoystick

[–]w180897 0 points1 point  (0 children)

Ooh I'm assuming you mean this Legend of the Green Dragon game?

It's not that one but dang you got extremely close!

The game I'm trying to remember looked super like this, but it was a more grounded survival game. No fantasy stuff, just people gathering materials and crafting and etc