Exchanging Coins Mod for Economy from two different Mods via Block GUI and Procedure

Started by julesg. on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jan 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Exchanging Coins Mod for Economy from two different Mods via Block GUI and Procedure

Hello everyone,

We have a small Minecraft server (version 1.20.1, Fabric) with a total of 12 active players – just friends and family, so it’s purely a hobby project and non-commercial. We use the Numismatic Overhaul mod as our economy system and now want to integrate the Create Mod together with Create Numismatics.

My goal was to create a kind of “exchange station” to exchange in-game currencies from Numismatic Overhaul and Create Numismatics – not only via crafting recipes (which already works great) but also through an interactive block with a GUI and an exchange button.

Current status:

  • I created the first recipes that convert coins from one mod to the other. For this, I use MCreator as a helper, since the last time I looked into a Java book was 10 years ago.
  • The crafting recipes (Currency A -> Currency B) work flawlessly.
  • I have also successfully created a block with a GUI and an exchange procedure that, for example, exchanges Diamonds for Emeralds (both Vanilla). This works without any problems.

The issue: As soon as I try to apply this exchange mechanism in the procedure for mod items—for example, exchanging Numismatic Overhaul coins for Create Numismatics coins (or back). I get a bunch of compiler errors. MCreator throws error messages at me as soon as I reference the external mod items in the procedure. However, the Vanilla items (Diamonds, Emeralds) are recognized and processed without any issues.

 

What I’ve tried so far:

  1. Recipe-based exchange: Works for coins from both mods. This means that external mod items are being recognized correctly in the recipe files.
  2. Block/GUI/Procedures with Vanilla items: Works, no errors in the code.
  3. Block/GUI/Procedures with external mod items: Won’t compile. MCreator gives me various errors that the items or the package could not be found or do not exist.

 

 

What is the correct way to integrate an item from an external mod into an MCreator procedure? 

In recipe entries, modid:itemname is sufficient, but in the code (or the generated classes) more seems to be required. 

Can I somehow include both mods as a library in MCreator?

 

I am really desperate. Please help me. :D

Thank you so, so much and best regards!