Fix layered snow collision
This commit is contained in:
parent
7b54cc2ac4
commit
b037fb1e5c
|
@ -16,7 +16,7 @@
|
||||||
// TODO: Blocks
|
// TODO: Blocks
|
||||||
// Rendering: TripwireHook, FlowingWater, FlowingLava, DoublePlant (Sunflower)
|
// Rendering: TripwireHook, FlowingWater, FlowingLava, DoublePlant (Sunflower)
|
||||||
// State Updates: Fire, CobblestoneWall, Tripwire, FenceGate (in_wall), RedstoneRepeater (locked)
|
// State Updates: Fire, CobblestoneWall, Tripwire, FenceGate (in_wall), RedstoneRepeater (locked)
|
||||||
// Collisions: Chest, Hopper, CobblestoneWall, Stairs, SnowLayer
|
// Collisions: Chest, Hopper, CobblestoneWall, Stairs
|
||||||
|
|
||||||
#![recursion_limit="300"]
|
#![recursion_limit="300"]
|
||||||
|
|
||||||
|
@ -1594,6 +1594,10 @@ define_blocks! {
|
||||||
material material::NON_SOLID,
|
material material::NON_SOLID,
|
||||||
model { ("minecraft", "snow_layer") },
|
model { ("minecraft", "snow_layer") },
|
||||||
variant format!("layers={}", layers),
|
variant format!("layers={}", layers),
|
||||||
|
collision vec![Aabb3::new(
|
||||||
|
Point3::new(0.0, 0.0, 0.0),
|
||||||
|
Point3::new(1.0, (layers as f64)/8.0, 1.0),
|
||||||
|
)],
|
||||||
}
|
}
|
||||||
Ice {
|
Ice {
|
||||||
props {},
|
props {},
|
||||||
|
|
Loading…
Reference in New Issue