Need loot table help

Started by SirPotate on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jun 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Need loot table help

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.

Joined Feb 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Use "Right Click Trigger" to…
Mon, 04/15/2024 - 16:05

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

Joined Jun 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Sorry but i didnt understand
Mon, 04/15/2024 - 18:10

Sorry but i didnt understand