Minecraft:Blockstates definition/format: Difference between revisions
From SAS Gaming Wiki
More actions
Sync: updated from Minecraft |
Sync: updated from Minecraft |
||
| Line 10: | Line 10: | ||
***** {{nbt|list|OR}}: Matches if any of the contained cases return true. Cannot be set alongside other cases. | ***** {{nbt|list|OR}}: Matches if any of the contained cases return true. Cannot be set alongside other cases. | ||
****** {{nbt|compound|A condition}}: A list of cases that all have to match the block to return true. | ****** {{nbt|compound|A condition}}: A list of cases that all have to match the block to return true. | ||
******* {{/state}} | ******* {{:Blockstates definition/format/state}} | ||
***** {{nbt|list|AND}}: Matches if all of the contained cases return true. Cannot be set alongside other cases. | ***** {{nbt|list|AND}}: Matches if all of the contained cases return true. Cannot be set alongside other cases. | ||
****** {{nbt|compound|A condition}}: A list of cases that all have to match the block to return true. | ****** {{nbt|compound|A condition}}: A list of cases that all have to match the block to return true. | ||
******* {{/state}} | ******* {{:Blockstates definition/format/state}} | ||
***** {{/state}} Cannot be set alongside the '''OR''' or '''AND''' tag. | ***** {{:Blockstates definition/format/state}} Cannot be set alongside the '''OR''' or '''AND''' tag. | ||
**** {{nbt|compound}}{{nbt|list|apply}}: Determines the model(s) to apply and its properties. There can be '''one model''' or an '''array of models'''. If set to an array, the model is chosen randomly from the options given, with each option being specified in separate subsidiary {{nbt|compound}}-tags. | **** {{nbt|compound}}{{nbt|list|apply}}: Determines the model(s) to apply and its properties. There can be '''one model''' or an '''array of models'''. If set to an array, the model is chosen randomly from the options given, with each option being specified in separate subsidiary {{nbt|compound}}-tags. | ||
***** {{Nbt inherit/blockstates/model}} | ***** {{Nbt inherit/blockstates/model}} | ||
Latest revision as of 11:10, 19 October 2026
- Template:Nbt Root object
- Template:Nbt: Holds the names of all the variants of the block.Template:Info needed
- Template:NbtTemplate:Nbt: Name of a variant, which consists of the relevant block states separated by commas. A block with just one variant uses
""as a name for its variant. Each variant can have one model or an array of models and contains their properties. If set to an array, the model is chosen randomly from the options given, with each option being specified in separate subsidiary Template:Nbt-tags. Item frames are treated as blocks and use"map=false"for a map-less item frame, and"map=true"for item frames with maps.
- Template:NbtTemplate:Nbt: Name of a variant, which consists of the relevant block states separated by commas. A block with just one variant uses
- Template:Nbt: Used instead of variants to combine models based on Minecraft:block state attributes.
- Template:Nbt: Determines a case and the model that should apply in that case.
- Template:Nbt: A list of cases that have to be met for the model to be applied. If unset, the model always applies.
- Template:Nbt: Matches if any of the contained cases return true. Cannot be set alongside other cases.
- Template:Nbt: A list of cases that all have to match the block to return true.
- Template:Nbt: Matches if all of the contained cases return true. Cannot be set alongside other cases.
- Template:Nbt: A list of cases that all have to match the block to return true.
- Blockstates definition/format/state Cannot be set alongside the OR or AND tag.
- Template:Nbt: Matches if any of the contained cases return true. Cannot be set alongside other cases.
- Template:NbtTemplate:Nbt: Determines the model(s) to apply and its properties. There can be one model or an array of models. If set to an array, the model is chosen randomly from the options given, with each option being specified in separate subsidiary Template:Nbt-tags.
- Template:Nbt: A list of cases that have to be met for the model to be applied. If unset, the model always applies.
- Template:Nbt: Determines a case and the model that should apply in that case.
- Template:Nbt: Holds the names of all the variants of the block.Template:Info needed
"uvlock": true
|
"uvlock": false
|
| File:Uvlock true.png | File:Uvlock false.png |