Jump to content

Recommended Posts

Posted (edited)

I'm new to this myself, but from what I can gather, the blockstates JSON file define the direction to place a block in.

I copied the carved_pumpkin.json in net.minecraft.client.extra:1.18.1:

{
  "variants": {
    "facing=east": {
      "model": "minecraft:block/carved_pumpkin",
      "y": 90
    },
    "facing=north": {
      "model": "minecraft:block/carved_pumpkin"
    },
    "facing=south": {
      "model": "minecraft:block/carved_pumpkin",
      "y": 180
    },
    "facing=west": {
      "model": "minecraft:block/carved_pumpkin",
      "y": 270
    }
  }
}

Unfortunately I still can't get it to work, mine says "Unknown blockstate property: 'facing'"

Update:

The error is for all four directions. This works however:

{
  "variants": {
    "": {
      "model": "minecraft:block/carved_pumpkin",
      "y": 270
    }
  }
}

 

The reply to the following (old) post seems to be saying that blockstates don't work in Forge, is that true?

https://forums.minecraftforge.net/topic/70947-1132-solved-trouble-getting-forge-blockstate-json-to-work/

Could it be that my versions for things are wrong?

Good luck!

Edited by FrinkTheBrave
Added more detail

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.