Villager trades with modded items

Started by MineKing_Top on

Topic category: Help with Minecraft modding (Java Edition)

Active 1 year ago
Joined Jan 2024
Points:
136

User statistics:

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

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

Active 1 day ago
Joined Nov 2019
Points:
879

User statistics:

  • Modifications: 0
  • Forum topics: 13
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 335
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

Active 1 year ago
Joined Jan 2024
Points:
136

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 3
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

Active 11 hours ago
Joined Apr 2023
Points:
668

User statistics:

  • Modifications: 4
  • Forum topics: 22
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 544
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

Active 1 year ago
Joined Jan 2024
Points:
136

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 3
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.