Applying fortune through a loot table

Started by TwistedSisler on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Applying fortune through a loot table

I have a ticket in for a different issue that spawned this question, but I feel like it would be more appropriate to ask here. I understand that the best way to manipulate vanilla block drops is via a loot table and I have learned how to do that, but what if I wanted to make vanilla iron ore to be fortune capable by dropping ore chunks or something. How would you implement fortune on a block and still utilize the loot table?

Previously I was doing this via a procedure triggered by "a block is broken," but I have since discovered that that overrides the harvest level check and correct tool requirements and will drop no matter what you break it with. So I am trying to work this out through a loot table, but I'm getting stuck on the fortune part of it. How does fortune work with loot tables?