Applying fortune through a loot table

Started by TwistedSisler on

Topic category: Help with Minecraft modding (Java Edition)

Active 4 years ago
Joined Jun 2020
Points:
621

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 13
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?