Started by
SirPotate
on
Topic category: Help with Minecraft modding (Java Edition)
I'm making a mod with a block that when you right click on it, it will give you a random item from a loot table, and once the item has been dispensed it will have a small cool down to do it again, can anyone help me pls.
Use "Right Click Trigger" to call the loot table item spawn, using the "execute command" procedure you can basically spawn the loot table or add its contents to your inventory, just use "/loot" (check how to use it online, it's easy) and make your table to only spawn a single item per loot spawn, and then attach the execute command with the loot command in the right click procedure, add a condition to check if the item isn't in cooldown and if it isn't, then spawn the loot and add x seconds/ticks of cooldown to the item. Hope this helps
Sorry but i didnt understand