Better block models !
This commit is contained in:
@@ -52,6 +52,7 @@ there will be holes in the world behind them.
|
||||
| Field | Default | Meaning |
|
||||
| ---------------------- | ----------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| `collision` | `true` | Whether entities bump into it. Plants and water set `false`. |
|
||||
| `shape` | its model | The boxes players point at and entities bump into, in pixels. See [Shapes](../resources/models.md#shapes). |
|
||||
| `mining.toughness` | unbreakable | Seconds to break by hand. Without `mining`, a block can't be broken. |
|
||||
| `mining.tool` | none | The [tool type](../items/tools.md) that breaks it faster, like `pickaxe`, `axe` or `shovel`. |
|
||||
| `mining.requires_tool` | `false` | Only drops when broken with `mining.tool`. |
|
||||
@@ -86,7 +87,7 @@ It's only placed when:
|
||||
|
||||
- the spot is one it can go into: air or a `replaceable` block, or one of `place_in`,
|
||||
- the block under the spot is one of `place_on`, when the block has `place_on`,
|
||||
- and, for blocks with collision, no player or mob is in the way.
|
||||
- and, for blocks with collision, no player or mob is in the way of its [shape](../resources/models.md#shapes).
|
||||
|
||||
A block with `place_on` also pops off (dropping what it drops) when the block under it becomes something else, like a
|
||||
crop when its farmland is dug up.
|
||||
|
||||
@@ -58,10 +58,10 @@ a texture per growth stage:
|
||||
|
||||
- A key is a condition on the block's states: `"age=3"`, or `"age=3,facing=1"` when all of them have to match. `""`
|
||||
matches always.
|
||||
- A variant sets any of `model`, `textures` and `y`, a turn around the vertical axis of 0, 90, 180 or 270 degrees,
|
||||
clockwise seen from above.
|
||||
- **Each of the three comes from the first matching variant that sets it.** So one variant can turn the block and a
|
||||
later one change its textures, and both apply.
|
||||
- A variant sets any of `model`, `textures`, `y`, a turn around the vertical axis of 0, 90, 180 or 270 degrees,
|
||||
clockwise seen from above, and [`shape`](../resources/models.md#shapes).
|
||||
- **Each of them comes from the first matching variant that sets it.** So one variant can turn the block and a later one
|
||||
change its textures, and both apply.
|
||||
- What no matching variant sets comes from the block itself.
|
||||
|
||||
## Facing
|
||||
|
||||
Reference in New Issue
Block a user