Posted December 21, 20177 yr The block I have is based on endersteel bars from vanilla, here's the current blockstate: { "multipart": [ { "apply": { "model": "soulus:bars_endersteel_post_ends" }}, { "when": { "north": false, "east": false, "south": false, "west": false }, "apply": { "model": "soulus:bars_endersteel_post" } }, { "when": { "north": true, "east": false, "south": false, "west": false }, "apply": { "model": "soulus:bars_endersteel_cap" } }, { "when": { "north": false, "east": true, "south": false, "west": false }, "apply": { "model": "soulus:bars_endersteel_cap", "y": 90 } }, { "when": { "north": false, "east": false, "south": true, "west": false }, "apply": { "model": "soulus:bars_endersteel_cap_alt" } }, { "when": { "north": false, "east": false, "south": false, "west": true }, "apply": { "model": "soulus:bars_endersteel_cap_alt", "y": 90 } }, { "when": { "north": true }, "apply": { "model": "soulus:bars_endersteel_side" } }, { "when": { "east": true }, "apply": { "model": "soulus:bars_endersteel_side", "y": 90 } }, { "when": { "south": true }, "apply": { "model": "soulus:bars_endersteel_side_alt" } }, { "when": { "west": true }, "apply": { "model": "soulus:bars_endersteel_side_alt", "y": 90 } } ] } I want to add variants for the block, eg, my enum: NORMAL(0, "normal"), WOOD(1, "wood"), STONE(2, "stone"), END_STONE(3, "end_stone"), BLAZE(4, "blaze"); How can I combine the multipart and block variation? I was looking at Choonster's block variant example: https://github.com/Choonster-Minecraft-Mods/TestMod3/blob/1.12.2/src/main/resources/assets/testmod3/blockstates/variants.json, this makes me think I have to copy the whole multipart thing for every variation, is this the case, or is there a simpler way to write this?
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.