so I understand a fair amount of the blockstate file. The only things i don't understand are the "OR" and the "side | up". at first I thought "OR" might be like an or statement but the parameters didn't seem to match up properly so I have no idea what its function is and the same with the "side | up" I don't know what that does either. I'm putting this in resource pack help because I need this file for redstone retexturing. Can anyone explain the two things to me?
I can't remember what OR stood for, but I'm pretty sure side | up refers to when the redstone dust tile goes vertically up the side of a regular block.
This is in the redstone_wire blockstate, "when" defines a blockstate, or several states, which when true will apply a model, "OR" defines multiple blockstates when any of these are true the model defined in "apply" will be applied.
Redstone has four states which can have one of three values, "north", "east", "south", "west" these can be:
"side" - this is when a redstone component that redstone dust can be attached to is next to redstone dust in the specified direction
"up" - this is when a redstone dust is up one block in the specified direction
"none" - there is no redstone component in the specfied direction
"north": "side|up" will be true when redstone dust has the blockstate "north": "side" OR "north": "up"
I hope that makes sense.
Rollback Post to RevisionRollBack
I do tutorials all about values encountered within block modelling on my website
so I understand a fair amount of the blockstate file. The only things i don't understand are the "OR" and the "side | up". at first I thought "OR" might be like an or statement but the parameters didn't seem to match up properly so I have no idea what its function is and the same with the "side | up" I don't know what that does either. I'm putting this in resource pack help because I need this file for redstone retexturing. Can anyone explain the two things to me?
I can't remember what OR stood for, but I'm pretty sure side | up refers to when the redstone dust tile goes vertically up the side of a regular block.
Both of these are actually OR statements for multipart models. Let's look at the redstone_wire blockstate to see what's going on.
This is in the redstone_wire blockstate, "when" defines a blockstate, or several states, which when true will apply a model, "OR" defines multiple blockstates when any of these are true the model defined in "apply" will be applied.
Redstone has four states which can have one of three values, "north", "east", "south", "west" these can be:
"side" - this is when a redstone component that redstone dust can be attached to is next to redstone dust in the specified direction
"up" - this is when a redstone dust is up one block in the specified direction
"none" - there is no redstone component in the specfied direction
"north": "side|up" will be true when redstone dust has the blockstate "north": "side" OR "north": "up"
I hope that makes sense.
I do tutorials all about values encountered within block modelling on my website
It does make sense thank you very much!