Villager trades with modded items

Started by MineKing_Top on

Topic category: Help with modding (Java Edition)

Last seen on 18:40, 5. Feb 2024
Joined Jan 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Villager trades with modded items

How can I make a trade for items from other mods like for example to trade for andesite alloy?

Last seen on 09:40, 10. Apr 2024
Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
you would need custom code…
Wed, 01/24/2024 - 22:38

you would need custom code for that, if you lock the trade and replace the name of the item you used for placeholder(Grass_block) for the name of the alloy (just assuming its called "andesite_alloy") then running both mods should work

Last seen on 18:40, 5. Feb 2024
Joined Jan 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Already tried that, however…
Sun, 01/28/2024 - 12:17

Already tried that, however when I try to unlock the code it says this message:


/*

*    MCreator note: This file will be REGENERATED on each build.

*/

when I try exporting the code it will regenerate

Last seen on 17:10, 16. Apr 2024
Joined Apr 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
don't unlock the code if you…
Sun, 01/28/2024 - 13:57

don't unlock the code if you want to add cross-mod compatibility

Last seen on 18:40, 5. Feb 2024
Joined Jan 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Sorry, I meant when locking…
Sun, 01/28/2024 - 15:18

Sorry, I meant when locking the game. I haven't still found a way.