Posted January 11, 20196 yr I tried to render blocks and i can get them to show up in the world but not inventory. https://github.com/Colton-Slayden/Solis
January 11, 20196 yr The fek is this: https://github.com/Colton-Slayden/Solis/blob/master/src/main/java/com/royalreject/solis/proxy/ClientProxy.java#L27 ForgeRegistries.BLOCKS.getKey(b)? You mean b.getRegistryName()? https://github.com/Colton-Slayden/Solis/blob/master/src/main/java/com/royalreject/solis/gameObjs/ObjHandler.java#L23 Why the function? Is event.getRegistry().register(new ItemBlock(scorchedEarth).setRegistryName(scorchedEarth.getRegistryName)) insufficient somehow? https://github.com/Colton-Slayden/Solis/blob/master/src/main/java/com/royalreject/solis/gameObjs/ObjHandler.java#L18 Don't use static initializes. Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
January 11, 20196 yr Author I still cant get the item to register in the inventory, and the function is mainly so i can set registry names in one place instead of having to go to each block class and change it there Edited January 11, 20196 yr by RoyalReject
January 11, 20196 yr 51 minutes ago, RoyalReject said: I still cant get the item to register in the inventory in your scorched_earth.json item model you need to change blocks to block. reason is you are trying to get the block model in models/block but you have it directing to models/blocks
January 11, 20196 yr Author 6 minutes ago, Discult said: in your scorched_earth.json item model you need to change blocks to block. reason is you are trying to get the block model in models/block but you have it directing to models/blocks The model is cube_all the direction to blocks is for the texture
January 11, 20196 yr Is your blockstate.json is something like this? Do you register the models correctly? Do you register the item model? EDIT: Is there a typo in one of the filenames or in the code? { "forge_marker": 1, "defaults": { "textures": { "all": "[your modid]:blocks/[your block]" } }, "variants": { "normal": { "model": "cube_all" }, "inventory": { "model": "cube_all" } } } Edited January 11, 20196 yr by Legenes procedure WakeMeUp(Integer plusTime); var I: Integer; begin for I := 0 to plusTime do begin println('One more minute!'); Sleep(1000); end; println('Okay, nothing to worry, I''m alive!'); println('So... somebody can give me a coffee?'); println('I know it''s Pascal, and not Java, but I love it :D.'); end;
January 11, 20196 yr Author The models are registered or the item in my inv would be different, I honestly have no idea whats wrong because it registers the world model but not inventory model
January 11, 20196 yr 1 hour ago, RoyalReject said: The models are registered or the item in my inv would be different, I honestly have no idea whats wrong because it registers the world model but not inventory model That's because world models are registered automatically. The block's registry name points to the blockstate file, the blockstate points to the model, everything's good. Items you have to register manually. Fortunately you're doing that with your ModelRegistryEvent. But there could still be any number of things going wrong. You have to read your log to find out what. Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
January 12, 20196 yr Author I have not found anything throwing errors or anything in the log. This is driving me up a wall
January 12, 20196 yr This class is not marked with @EventBusSubscriber https://github.com/Colton-Slayden/Solis/blob/master/src/main/java/com/royalreject/solis/proxy/ClientProxy.java#L14 Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
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.