Change Piglin Trades

Started by Shlokplayzz on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jul 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Change Piglin Trades

Hi, I was creating a mod which makes it harder to beat the ender dragon and I wanted to change the trades of piglins. Is it possible in MCreator?

Joined Jul 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
All you need to do is create…
Sun, 09/05/2021 - 22:27

All you need to do is create a loot table.

The registry name has to be              gameplay/piglin_bartering

The namespace has to be                  minecraft

And the type has to be                        Bartering

 

Then I think you know how to do the rest (just make your loot). If you don't know, you can just check the wiki: 

https://mcreator.net/wiki/how-make-loot-table

Joined Jun 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
        There was once a…
Tue, 06/21/2022 - 02:24

 

      There was once a blind man who had so fine a sense of touch that, 
when any animal was put into his hands, he could tell what it was merely by 
the feel of it. One day the cub of a wolf was put into his hands, and he was asked
 what it was. He felt it for some time, and t

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:11

you'll need to completely re-add any 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