Add a "if holding item" option to loot table options

Started by MattapoisettPatton27 on

Topic category: Feature requests and ideas for MCreator

Joined Jul 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Add a "if holding item" option to loot table options

Blocks with the "leaves" block base dropping with shears doesn't work all the time, and there might be other blocks that we would want to have similar behaviour. I think when making a loot table, each pool should have an item slot, and if you set an item in it, that pool will only be dropped if the player is holding that item. You could also set the other pools to drop only if not holding that item, and there could be a checkbox for whether the item gets damage dealt to it or not. This would make this whole thing so much simpler and give many more options to block drops.

Joined Oct 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
While this isn't a base…
Tue, 04/21/2026 - 19:16

While this isn't a base feature yet, you can generate loot tables on websites like misode to generate loot tables and alter the mcreator code. It has a leaves preset (top-most is the acacia leaves, which you can change to your needed blocks)

Joined Jul 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thank you so much, this…
Mon, 06/01/2026 - 21:49

Thank you so much, this worked

(for other people finding this, make sure to choose the correct version in the dropdown menu on the site, it won't work if it's the wrong one)