#(daxz_) multiple states for twisted vines

16 messages · Page 1 of 1 (latest)

burnt plaza
#

i want multiple variations of twisted vines (textured), how would i go that

wide ospreyBOT
#

(daxz_) multiple states for twisted vines

wide ospreyBOT
#

Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.

burnt plaza
#

tal lgrass

rapid jay
#

same thing for all textures

#

im writing an example for ye

#

consensus though, for twisted vines, you'd add twisting_vines.json at assets/minecraft/blockstates/twisting_vines.json
and it would contain this:

{
    "variants": {
        "": [
            { "model": "block/twisting_vines" },
            { "model": "block/twisting_vines2" }
        ]
    }
}```

you would need to add this additional file twisting_vines2.json at assets/minecraft/models/block/twisting_vines2.json:

{
  "parent": "minecraft:block/cross",
  "textures": {
    "cross": "minecraft:block/twisting_vines2"
  }
}```

and then you would put your second texture for twisting_vines named as twisting_vines2.png at assets/minecraft/textures/block/twisting_vines.png

#

oh actually, tall_grass is a bit different

#

assets/minecraft/blockstates/tall_grass.json:

{
  "variants": {
    "half=lower": {
      "model": "minecraft:block/tall_grass_bottom"
    },
    "half=upper": {
      "model": "minecraft:block/tall_grass_top"
    }
  }
}

would be something like this:

{
  "variants": {
    "half=lower": [
      { "model": "minecraft:block/tall_grass_bottom" },
      { "model": "minecraft:block/tall_grass_bottom2" }
    ],
    "half=upper": [
      { "model": "minecraft:block/tall_grass_top" },
      { "model": "minecraft:block/tall_grass_top2" }
    ]
  }
}```
#

youd still need to add tall_grass_bottom2.json to assets/minecraft/models/block/tall_grass_bottom2.json similar to the first example though

#

basically youd turn the model object into an array of objects and add the extra model file + texture file

#

https://minecraft.fandom.com/wiki/Tutorials/Models#Block_states
Having looked that up again now though and understanding it more than i did before, I'm seeing now that you can actually rotate the variance on the X and Y Axis, that might be cool for randomizing the ores textures :D imma try that

Minecraft Wiki

This page details the mechanics and specifications of models and their uses in resource packs. Block models are used to depict all the blocks in the game, whereas item models are used to display...

#

it worked;
this was the blockstate i used for this result:

{
  "variants": {
    "": [
      { "model": "block/diamond_ore"},
      { "model": "block/diamond_ore", "y": 90},
      { "model": "block/diamond_ore", "y": 180},
      { "model": "block/diamond_ore", "y": 270}
    ]
  }
}

neat, thanks for the idea lol