Posted June 30, 20178 yr https://gist.github.com/loordgek/81e8b725426f6b2cec749dae312d21b1 blockstates https://github.com/loordgek/Extragenarators/blob/trytofix/src/main/resources/assets/extragenarators/blockstates/genaratorbase.json the render register https://github.com/loordgek/Extragenarators/blob/trytofix/src/main/java/loordgek/extragenarators/enums/EnumBlocks.java#L42
June 30, 20178 yr I assume by "in GUI" you mean the ItemBlock doesn't have a model? That will be because the ItemBlock model is defined by the "inventory" variant in a blockstates file. Your "inventory" variant is empty, and you have no default model set, so there is nothing for the item to refer to. Edit: Actually I didn't realise you do have an item model file (which takes precedence over the blockstates "inventory" variant, making it unnecessary in your file). What do you expect your item to look like when the only information in your model is this? { "parent": "block/cube_all" } The log even contains a hint: [20:06:06] [Client thread/WARN]: Unable to resolve texture due to upward reference: #all in minecraft:models/block/cube_all It's looking for a texture definition #all, but you haven't given one. You've just told it to be a cube with no information about textures. Edited June 30, 20178 yr by Jay Avery
July 1, 20178 yr Yes, you need a model for every ItemBlock. But there are easy ways of doing it if it has the same model as the block itself. If you use an item model file, set the parent to the block model itself, then you don't have to set the textures in the item model because the block already has them. Or if you use the forge blockstates format, you can define the ItemBlock model using the "inventory" variant (or the defaults, as long as you still include an inventory variant).
July 2, 20178 yr Author 21 hours ago, Jay Avery said: Or if you use the forge blockstates format, you can define the ItemBlock model using the "inventory" variant (or the defaults, as long as you still include an inventory variant). and how does that work ?
July 2, 20178 yr 55 minutes ago, loordgek said: and how does that work ? You specify a model in the "inventory" variant of the block's blockstates file, and it will automatically be used for the ItemBlock's model if there isn't one in the item folder. Edited July 2, 20178 yr by Jay Avery
July 2, 20178 yr Author https://github.com/loordgek/Extragenarators/blob/trytofix/src/main/resources/assets/extragenarators/blockstates/genaratorbase.json i have more than 1 model and block
July 2, 20178 yr If you want the different variants to have different ItemBlock models, you will need to specify those models using their metadata in setCustomModelResourceLocation.
July 8, 20178 yr Author { "parent": "block/cube_all" } i removed this and the new log https://gist.github.com/loordgek/dd7490e5120d09d96053c54635bf68ff Edited July 8, 20178 yr by loordgek
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.