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
Thank youu!! The loot table works perfectly! the shrinking doesn't seem to do anything though?
Actually it works! Thank you! Though while I'm at it, how do I set something as an Provided Itemstack? I still have no clue how that code works
um I'm pretty sure you can't change the provided itemstack
through just procedure blocks anyway