Jump to content

Recommended Posts

Posted

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.

Posted

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.

Posted

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.

Posted

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.

Posted

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.

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.

Announcements



×
×
  • Create New...

Important Information

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