Skip to main content

teleport_randomly

Function teleport_randomly 

Source
fn teleport_randomly(
    effect: TeleportRandomlyConsumeEffect,
    world: &Arc<World>,
    user: &dyn LivingEntity,
)
Expand description

Tries up to 16 random nearby positions, delegating each attempt to LivingEntity::random_teleport (vanilla Entity.randomTeleport), and stops at the first one that lands.