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 am making a corn plant/crop that is two blocks high. I want the plant to use different textures depending on if it the the lower or upper half of the plant and depending on the age that half is. That is why I have made two different type of states: "age" & "half. "age" can be a value from 0-7 and "half" can be "upper" or "lower". The problem is that I can't get my blockstate file to work. Can someone explain me how I should do this, because the forge documentation only explains how to select a model with one state/variable. Here are some of the things I've tried.

 

{
  "forge_marker": 1,
  "variants": {
    "age=0, half=lower": { "model" : "boneappletea:corn_lower_stage0" },
    "age=1, half=lower": { "model" : "boneappletea:corn_lower_stage0" },
    "age=2, half=lower": { "model" : "boneappletea:corn_lower_stage1" },
    "age=3, half=lower": { "model" : "boneappletea:corn_lower_stage1" },
    "age=4, half=lower": { "model" : "boneappletea:corn_lower_stage2" },
    "age=5, half=lower": { "model" : "boneappletea:corn_lower_stage2" },
    "age=6, half=lower": { "model" : "boneappletea:corn_lower_stage3" },
    "age=7, half=lower": { "model" : "boneappletea:corn_lower_stage3" },
    "age=0, half=upper": { "model" : "boneappletea:corn_upper_stage0" },
    "age=1, half=upper": { "model" : "boneappletea:corn_upper_stage0" },
    "age=2, half=upper": { "model" : "boneappletea:corn_upper_stage1" },
    "age=3, half=upper": { "model" : "boneappletea:corn_upper_stage1" },
    "age=4, half=upper": { "model" : "boneappletea:corn_upper_stage2" },
    "age=5, half=upper": { "model" : "boneappletea:corn_upper_stage2" },
    "age=6, half=upper": { "model" : "boneappletea:corn_upper_stage3" },
    "age=7, half=upper": { "model" : "boneappletea:corn_upper_stage3" }
  }
}
{
  "forge_marker": 1,
  "variants": {
    "half=lower": {
        "age=0": { "model" : "boneappletea:corn_lower_stage0" },
        "age=1": { "model" : "boneappletea:corn_lower_stage0" },
        "age=2": { "model" : "boneappletea:corn_lower_stage1" },
        "age=3": { "model" : "boneappletea:corn_lower_stage1" },
        "age=4": { "model" : "boneappletea:corn_lower_stage2" },
        "age=5": { "model" : "boneappletea:corn_lower_stage2" },
        "age=6": { "model" : "boneappletea:corn_lower_stage3" },
        "age=7": { "model" : "boneappletea:corn_lower_stage3" }
    },
    "half=upper": {
      "age=0": { "model" : "boneappletea:corn_upper_stage0" },
      "age=1": { "model" : "boneappletea:corn_upper_stage0" },
      "age=2": { "model" : "boneappletea:corn_upper_stage1" },
      "age=3": { "model" : "boneappletea:corn_upper_stage1" },
      "age=4": { "model" : "boneappletea:corn_upper_stage2" },
      "age=5": { "model" : "boneappletea:corn_upper_stage2" },
      "age=6": { "model" : "boneappletea:corn_upper_stage3" },
      "age=7": { "model" : "boneappletea:corn_upper_stage3" }
    },
    "age=0": {
      "half=lower": { "model" : "boneappletea:corn_lower_stage0" },
      "half=upper": { "model" : "boneappletea:corn_upper_stage0" }
    },
    "age=1": {
      "half=lower": { "model" : "boneappletea:corn_lower_stage0" },
      "half=upper": { "model" : "boneappletea:corn_upper_stage0" }
    },
    "age=2": {
      "half=lower": { "model" : "boneappletea:corn_lower_stage1" },
      "half=upper": { "model" : "boneappletea:corn_upper_stage1" }
    },
    "age=3": {
      "half=lower": { "model" : "boneappletea:corn_lower_stage1" },
      "half=upper": { "model" : "boneappletea:corn_upper_stage1" }
    },
    "age=4": {
      "half=lower": { "model" : "boneappletea:corn_lower_stage2" },
      "half=upper": { "model" : "boneappletea:corn_upper_stage2" }
    },
    "age=5": {
      "half=lower": { "model" : "boneappletea:corn_lower_stage2" },
      "half=upper": { "model" : "boneappletea:corn_upper_stage2" }
    },
    "age=6": {
      "half=lower": { "model" : "boneappletea:corn_lower_stage3" },
      "half=upper": { "model" : "boneappletea:corn_upper_stage3" }
    },
    "age=7": {
      "half=lower": { "model" : "boneappletea:corn_lower_stage3" },
      "half=upper": { "model" : "boneappletea:corn_upper_stage3" }
    }
  }
}

 

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.