Started by
AOCAWOL
on
Topic category: Help with Minecraft modding (Java Edition)
Hi! So I know a lot of people ask for Ore Dictionary and I'm not here to ask for that. What I am going to ask is where Mcreator puts their .util, init.BlockInit, and init.ItemInit
As I'm on the verge of making ore dictionary for my mod but when I try to import "package net.mcreator.byg.util it says it doesn't exist but it most certainly should? Same with BlockInit and ItemInit. I'm wondering if you guys have a different name for it? Please help!
It doesn't have to exist. First of all, packages are just folders used for better organzation and avoiding potential conflicts. So you do not have to use them, even if it is bad practice. Second of all, even classes like BlockInit do not have to exist. It is just a type of code design that some people use to more easily access fields. MCreator saves, unless there was in 1.9.0 some major chaange, these fields in classes of the elements.
The best way to add custom code is to use a simple mod element such as fuel and lock its code. Once you do, you can hook to any method of the ModElement object defined in the main mod file and use this to add your own functionality.
We do plan ore dictionary for 1.9.1 and a new custom code mod element which will expose all commonly used Forge events and fields to the user.
Another alternative is to make a new folder in sources folder of workspace and use this own package for custom classes.
The package MCreator uses is automatically cleared of any files that do not belong to any mod element.
Ore dictionary in 1.9.1? Cool :)
Oh that's great news, thank you ^-^
I will look in to updating MoreCube to support 1.9 to add Ore Dictionary support, 1.8.3 hard it via MoreCube my 3ed Party tool.
Wut is ore dictionary?
https://mcforge.readthedocs.io/en/latest/utilities/oredictionary/