Some more kinetic blocks
This commit is contained in:
@@ -169,9 +169,10 @@ a slab's sides and plants aren't.
|
||||
### Placing
|
||||
|
||||
`state_for_placement` picks the states a block is placed with, like Minecraft's `getStateForPlacement`. `placement` is
|
||||
`{ x, y, z, face, hit, facing, looking, sneaking }`: where it's going, the face of the block that was clicked, where on
|
||||
that block the click was (from 0 to 1 on each axis), the way the player looks along the ground, the face of the six they
|
||||
look most toward, `"top"` or `"bottom"` too, like `getNearestLookingDirection`, and whether they're
|
||||
`{ x, y, z, item, face, hit, facing, looking, sneaking }`: where it's going, the item placing it (the block's own, or
|
||||
another whose `places` is this block, like Minecraft's `getItemInHand`), the face of the block that was clicked, where
|
||||
on that block the click was (from 0 to 1 on each axis), the way the player looks along the ground, the face of the six
|
||||
they look most toward, `"top"` or `"bottom"` too, like `getNearestLookingDirection`, and whether they're
|
||||
[sneaking](../entities/players.md#sneaking), for blocks that sneaking places the other way round. It returns states by
|
||||
name, and the rest keep their defaults, except that a 2 bit `facing` already faces the player. Returning `false` means
|
||||
it can't go there at all, like a large cogwheel right beside another cogwheel, and nothing is placed, like
|
||||
|
||||
Reference in New Issue
Block a user