2

SOLVED: Help with a brewing stand please

SoundPhantom's Avatar SoundPhantom10/11/22 4:29 am
10/11/2022 10:47 pm
SoundPhantom's Avatar SoundPhantom
I have built a very intricate 3D model in BlockBench which I can't get to pivot around to the other locations without basically having to rebuild the most intricate parts of the model. What I'd like to do is make one 3D model each for the empty and full variations and rotate that model for each slot on the stand. Is there a way to do this in the blockstates or models .json files?
Posted by SoundPhantom's Avatar
SoundPhantom
Level 39 : Artisan Pixel Puncher
26

Create an account or sign in to comment.

1

SoundPhantom
10/11/2022 10:47 pm
Level 39 : Artisan Pixel Puncher
SoundPhantom's Avatar
Update Oct. 11, 2022: I found that a single model can be used and rotated in the blockstates file, but only in 90-degree increments. So I decided to use that to my advantage and add shelves to the base model, in the space that was no longer being used.


Here's what the file looks like, with changes highlighted:

..\assets\minecraft\blockstates\brewing_stand.json
{
"multipart": [
{
"apply": {
"model": "minecraft:block/brewing_stand"
}
},
{
"when": {
"has_bottle_0": "true"
},
"apply": {
"model": "minecraft:block/brewing_stand_bottle0"
}
},
{
"when": {
"has_bottle_1": "true"
},
"apply": {
"model": "minecraft:block/brewing_stand_bottle0",
"y": 90
}
},
{
"when": {
"has_bottle_2": "true"
},
"apply": {
"model": "minecraft:block/brewing_stand_bottle0",
"y": -90
}
},
{
"when": {
"has_bottle_0": "false"
},
"apply": {
"model": "minecraft:block/brewing_stand_empty0"
}
},
{
"when": {
"has_bottle_1": "false"
},
"apply": {
"model": "minecraft:block/brewing_stand_empty0",
"y": 90
}
},
{
"when": {
"has_bottle_2": "false"
},
"apply": {
"model": "minecraft:block/brewing_stand_empty0",
"y": -90
}
}
]
}

Note that I am only using brewing_stand_bottle0 and brewing_stand_empty0 for the models.

I hope this can help someone else as well.

If you'd like to see the finished model, it can be found here.
1
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome