Posted June 18, 20169 yr Hi, I'm currently looking into the Forge json file system, (so the ones with "forge_marker": 1) cause I was using always the vanilla system but now I want to use the forge one. So I've got one question: For the Forge json system, do I still need the jsons in models.block and models.item? Thx in advance. Bektor Developer of Primeval Forest.
June 18, 20169 yr it depends on how you're making your model..if you're using a JSON model (ala Crayfish's Model Creator or the like), then yes http://p455w0rd.net/images/forumsignature.png[/img]
June 18, 20169 yr Author it depends on how you're making your model..if you're using a JSON model (ala Crayfish's Model Creator or the like), then yes Well, currently I'm only using the standard block model with a different texture for my blocks. Developer of Primeval Forest.
June 18, 20169 yr Author Then a blockstate.json is enough. Ok, then I'm wondering why it is not rendering in the inventory (just shows a missing texture plane there, in the world it renders correctly): { "forge_marker": 1, "defaults": { "textures": { "all": "primevalforest:blocks/grass_top" } }, "variants": { "normal": { "model": "cube_all" }, "inventory": { "model": "cube_all" } } } And for these normal blocks: Do I still have to do this: Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(Item.getItemFromBlock(block), meta, new ModelResourceLocation(block.getRegistryName(), "inventory")); Or can I remove that line of code? Developer of Primeval Forest.
June 18, 20169 yr Author Use ModelLoader.setCustomModelResourceLocation instead. Ok, but it does still not render correctly in the inventory and in the hand. ModelLoader.setCustomModelResourceLocation(Item.getItemFromBlock(BlockList.modSand), 0, new ModelResourceLocation(BlockList.modSand.getRegistryName(), "inventory")); And yeah, it's actually a sand block with a grass texture because I've got no other texture yet. EDIT: [00:31:40] [Client thread/DEBUG] [FML/]: Item json isn't found for 'primevalforest:sand#inventory', trying to load the variant from the blockstate json That's all what the log says. It shows this error two times. Developer of Primeval Forest.
June 19, 20169 yr If the problem is solved, post the solution so others having similar problems can find it in the future. Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.
June 19, 20169 yr Author Solution: ItemBlock has to be registered to be rendered extra. Developer of Primeval Forest.
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.