minecraft:random_offset
This component defines a random offset for the block, seeded based on the block's position and the specified range and steps. It affects the block's rendered position, outline, and collision.
If the random offset causes the collision box to extend beyond the bounds of a cube, the offset range will automatically adjust to keep the collision box within the cube.
Culling for this block is performed without considering the random offset.
Properties
| Property | Type | Default | What it does |
|---|---|---|---|
x | Object | {"range": {"max": 0, "min": 0}, "steps": 0} | |
range required | Object | — | The range of the random offset. |
min | Decimal | 0 | |
max | Decimal | 0 | |
steps | Integermin 0 | 0 | The number of steps between the range. Specify 0 for all possible values between the range. |
y | Object | {"range": {"max": 0, "min": 0}, "steps": 0} | |
range required | Object | — | The range of the random offset. |
min | Decimal | 0 | |
max | Decimal | 0 | |
steps | Integermin 0 | 0 | The number of steps between the range. Specify 0 for all possible values between the range. |
z | Object | {"range": {"max": 0, "min": 0}, "steps": 0} | |
range required | Object | — | The range of the random offset. |
min | Decimal | 0 | |
max | Decimal | 0 | |
steps | Integermin 0 | 0 | The number of steps between the range. Specify 0 for all possible values between the range. |
Used by
No vanilla block file in the official samples uses this component. It is still part of the schema, so add-ons can use it.