Jump to content

1.8 Odd Blockstate json names.


OrangeVillager61

Recommended Posts

You will need to show us your error message(s), your blockstates.json and your block's class (at least).

The debugger is a powerful and necessary tool in any IDE, so learn how to use it. You'll be able to tell us more and get better help here if you investigate your runtime problems in the debugger before posting.

Link to comment
Share on other sites

I added multiple blockstates to my block, but I it (Minecraft) was looking for the model in modid:blockname#type=empty (or any blockstate name). I can't seem to figure it out on why it does #type? Or how to add it (model).

 

I'm doing the Compressed Blocks mod and just recently had this issue but didn't need to report it.

 

Your variants file needs to look something like this:

 

{
    "variants": {
        "tier=normal": { "model": "kreezxilscompressedblocks:CompressedCobblestone" },
        "tier=double": { "model": "kreezxilscompressedblocks:DoubleCompressedCobblestone" },
        "tier=triple": { "model": "kreezxilscompressedblocks:TripleCompressedCobblestone" },
        "tier=quadruple": { "model": "kreezxilscompressedblocks:QuadrupleCompressedCobblestone" },
        "tier=quintuple": { "model": "kreezxilscompressedblocks:QuintupleCompressedCobblestone" },
        "tier=sextuple": { "model": "kreezxilscompressedblocks:SextupleCompressedCobblestone" },
        "tier=septuple": { "model": "kreezxilscompressedblocks:SeptupleCompressedCobblestone" },
        "tier=octuple": { "model": "kreezxilscompressedblocks:OctupleCompressedCobblestone" }
    }
}

 

notes: tier is the name of my property and the part after the equals is the lowercased value of the 2nd parameter in the Enum definition. Hopefully the rest is self-explanatory.

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.