Is there a way to add imports to the main mod file?

Started by dragons_solo on

Topic category: Help with Minecraft modding (Java Edition)

Joined May 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Is there a way to add imports to the main mod file?

I am trying to make custom placers for trees, and I have this "ModPlacers.register(modEventBus);" in my main mod file. The problem is every time I add the Import "import net.mcreator.desertsanddunes.init.ModPlacers;" it gets removed. The Main mod file has spots for constructors, init and methods without it being removed, but not for imports. I would like to know if there is a way for it to not be removed.