Posted September 27, 20205 yr I am currently having some problems getting my blocks and items to register. This is the steps i have done to try and register them. https://github.com/mightydanp/IndustrialTech/blob/master/src/main/java/mightydanp/industrialtech/api/IndustrialTechAPI.java registers the blocks and items inside of https://github.com/mightydanp/IndustrialTech/blob/master/src/main/java/mightydanp/industrialtech/api/common/handler/MaterialHandler.java https://github.com/mightydanp/IndustrialTech/blob/master/src/main/java/mightydanp/industrialtech/common/IndustrialTech.java registers modmaterials https://github.com/mightydanp/IndustrialTech/blob/master/src/main/java/mightydanp/industrialtech/common/materials/ModMaterials.java MaterialHandler for this is https://github.com/mightydanp/IndustrialTech/blob/master/src/main/java/mightydanp/industrialtech/api/common/handler/MaterialHandler.java is there something i am not catching? Edited September 27, 20205 yr by Mightydanp
September 27, 20205 yr Author I have no idea why the RegistryHandler class didnt upload but it is there.
September 27, 20205 yr Author I am using a proper git client please dont assume i am not, also i got it uploaded now dont know why it wasnt added in when i did my first upload. https://github.com/mightydanp/IndustrialTech/blob/master/src/main/java/mightydanp/industrialtech/api/common/handler/RegistryHandler.java Edited September 27, 20205 yr by Mightydanp
September 27, 20205 yr Author I understand what you mean by 2. But for 1. The only thing i can see thats not being registered before the items is MinecraftForge.EVENT_BUS.register(new RegistryHandler()); in CommonProxy of api.common
September 27, 20205 yr Author This highly confuses me because i am trying to create a material handler to auto generate blocks and items.
September 27, 20205 yr Author Are you sure because have this mod that does it in 1.15.2 https://github.com/GregTech-Intergalactical/GregTech/blob/master/src/main/java/muramasa/gti/data/Materials.java
September 27, 20205 yr Author Well thats how they generate multiple items for the material etc ring plate ingot
September 27, 20205 yr Author The idea im trying to do is make a material handler that can generate blocks and items for me for instance atm i am working on it to do ores for me. I know theres a way to grab the blocks and items using object holders. I just dont know exactly what i am doing wrong to actually get the registry not to work. To make it duable
September 27, 20205 yr Author I have these ive looked at most mods and all they use are these. Theh dont use an event handler protected static final DeferredRegister<Block> BLOCKS = DeferredRegister.create(ForgeRegistries.BLOCKS, Ref.mod_id); protected static final DeferredRegister<Item> ITEMS = DeferredRegister.create(ForgeRegistries.ITEMS, Ref.mod_id);
September 27, 20205 yr Author Ok so i already have the DefferedRegister i registered them before i registered the ModMaterials
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.