How can i change piglin bartering?

Started by MininameTheModder on

Topic category: Help with modding (Java Edition)

Last seen on 09:45, 6. Jan 2022
Joined Jan 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How can i change piglin bartering?

Using loot tables, how can i add more drops to piglin bartering?

what do i need to write after "gameplay/"?

 

Last seen on 14:48, 19. Apr 2024
Joined Feb 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Wait does that adds new…
Wed, 10/13/2021 - 19:59

Wait does that adds new items to the existing table or modifies it? Cause i did it with fishing and i had to remake the entire main loot pool. Does this works for adding items or just replaces the table?

Last seen on 23:11, 9. Apr 2024
Joined Mar 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
you'll need to completely re…
Mon, 03/18/2024 - 04:10

you'll need to completely re-add all the vanilla trades (as of MCreator 2023.4 it looks like you can only write over the code with the loot table mod element, not add to it like you can with some other loot tables)

Easiest way I know how to make it like vanilla:

  • open your .minecraft folder (windows+R on Windows, enter %appdata%\.minecraft)
  • find the versions folder -> find the folder for the version you want to make your mod for (this example is 1.20.4)
  • data -> minecraft -> loot_tables -> gameplay
  • you'll find a .JSON file named piglin_bartering
  • open it and copy the code
  • make a loot table element in your MCreator workspace
  • from the workspace, right click on your element and choose "edit mod element in code editor"
  • delete and existing code and paste the code from piglin_bartering.json
  • edit it how you want to remove/add/edit trades
  • make sure to save and LOCK the code