Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

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).

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.

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.

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...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.