You may have noticed that some for addons, fortune does not effect their custom ores. Fortune Fix is simple script that automatically detects non-vanilla ore blocks and allows then to drop extra loot when mined with a fortune pickaxe.
Features:
- Applies to any non-vanilla block with "ore" in it's indentifier
- Avoids any block with "block" in it's identifier (To avoid raw ore blocks, for example)
- Avoids blocks that drop themselves rather than raw ores
- Checks to see if you are using the appropriate tool (ex. A Fortune 3 shovel will not yeild loot from a block that is broken with a pickaxe)
- Mirrors vanilla fortune behavior
NOTE: It is possible to add fortune functionality through loot tables rather than scripts. I highly recommend doing that with your own addons instead of using this, but if you would still like too:
To add functionality to your pack | If your ore block does not have "ore" in it's identifier:
In the block's JSON file, add the component "tag:moose:fortune: {}".
To avoid this script | Add the component "tag:moose:no_fortune: {}"
