Skip to main content

Module ender_pearl

Module ender_pearl 

Source
Expand description

Thrown ender pearl projectile entity (ThrownEnderpearl).

Mirrors vanilla ThrownEnderpearl (yarn EnderPearlEntity) on the Steel Projectile → ThrowableProjectile → ThrowableItemProjectile trait stack. On collision it teleports its owning player to the pearl’s pre-move position, deals 5.0 ender_pearl damage, plays the teleport sound, and discards itself.

The pearl refreshes a timeout chunk ticket (TicketType.ENDER_PEARL) each tick so it keeps flying across the simulation border, and is registered on its owning player so it persists with them and re-spawns on login (vanilla ServerPlayer.enderPearls).

Structs§

EnderPearlEntity
A thrown ender pearl.

Constants§

TELEPORT_DAMAGE 🔒
Fall-style damage dealt to the teleporting owner (vanilla enderPearl(), 5.0).