Jump to content

[1.9.4] [SOLVED Block json's


Bektor

Recommended Posts

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.