Jump to content

How to override the loot tables of the other mods?


Recommended Posts

I am creating a modpack and within this modpack there are various mods which create different iron ores. I would like to create a mod that modifies the loot tables of a mod in such a way that breaking a limestone_iron_ore drops me a raw_iron_ore. The raw_iron_ore, however, is added by another mod.
For the moment what I did was create a mod containing this loot table: https://pastebin.com/1HtqqpzE
Unfortunately it didn't work.
I guess it is a little more complicated than that and therefore I wonder if anyone could help me as I do not have the slightest experience in programming of any kind, giving me some tips and some advice on how to do so that this loot table overwrites that of the two mods .

Edited by TYPyz
Link to comment
Share on other sites

  • TYPyz changed the title to How to override the loot tables of the other mods?

This does not need a mod. You would just need to replace the loot table with your own by simply providing the file in the same location as the one you are replacing, but in your own datapack. You would also need to make sure that the global loot modifiers do not have an effect by checking those in the mods to make sure they don't do anything you don't want to the particular block.

  • Like 1
Link to comment
Share on other sites

  • 11 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...

Important Information

By using this site, you agree to our Terms of Use.