Started by
softmushroombaby
on
Topic category: Help with Minecraft modding (Java Edition)
I want to make it so when I right-click a mob, they look at an item, and 5 seconds later, throw back a random item! (kind of like piglin trades!) But the "wait 100 ticks" procedure doesn't allow any randomizers because of a local variable. how do I work around this?
You could (and should) just use a loot table
and you should use
instead of remove item from inventory