Closed T0paz closed 2 years ago
I'm trying to dynamically generate the blockstates for iron bars, which uses multipart. Below is an example part I need to translate:
{ "when": { "north": "true", "west": "false", "south": "false", "east": "false" }, "apply": { "model": "minecraft:block/iron_bars_cap" } },
However, if I try to add the same using JWhen, its serialization dictates that it's not possible to have multiple "AND" conditions met like found in vanilla. Instead, if I write the following:
JState.multipart(new JBlockModel(getCapModelId(blockId))).when(new JWhen() .add("north", "true") .add("west", "false") .add("south", "false") .add("east", "false"))
It's serialized as:
{ "when": { "OR": [ { "north": "true" }, { "west": "false" }, { "south": "false" }, { "east": "false" }, ]}
Or something like that. I don't see any way for it to not be "OR", so let me know if I'm missing something or if this hasn't been done yet.
I swear I fixed this, will do
wait, does minecraft even have an "AND"?
wiki says no
nvm, can't read, added in next update
0.6.4
I'm trying to dynamically generate the blockstates for iron bars, which uses multipart. Below is an example part I need to translate:
However, if I try to add the same using JWhen, its serialization dictates that it's not possible to have multiple "AND" conditions met like found in vanilla. Instead, if I write the following:
It's serialized as:
Or something like that. I don't see any way for it to not be "OR", so let me know if I'm missing something or if this hasn't been done yet.