Skip to main content

random_teleport_ground_y

Function random_teleport_ground_y 

Source
fn random_teleport_ground_y(
    world: &Arc<World>,
    x: f64,
    y: f64,
    z: f64,
) -> Option<f64>
Expand description

Walks down from y until standing on a block that blocks motion, mirroring the descent loop in vanilla Entity.randomTeleport. Returns None if the world’s floor is reached without finding solid ground.