Versions in this module Expand all Collapse all v1 v1.0.1 Jul 30, 2026 v1.0.0 Jul 30, 2026 Changes in this version + var AllayType = MobType + var AreaEffectCloudType areaEffectCloudType + var ArmadilloType = MobType + var ArrowType arrowType + var AxolotlType = MobType + var BatType = MobType + var BeeType = MobType + var BlazeType = MobType + var BoggedType = MobType + var BottleOfEnchantingType bottleOfEnchantingType + var BreezeType = MobType + var CamelType = MobType + var CatType = MobType + var CaveSpiderType = MobType + var ChickenType = MobType + var CodType = MobType + var CowType = MobType + var CreakingType = MobType + var CreeperType = MobType + var DefaultRegistry = conf.New(append([]world.EntityType{ ... }, mobEntityTypes())) + var DolphinType = MobType + var DonkeyType = MobType + var DrownedType = MobType + var EggType eggType + var ElderGuardianType = MobType + var EnderDragonType = MobType + var EnderPearlType enderPearlType + var EndermanType = MobType + var EndermiteType = MobType + var EvokerType = MobType + var ExperienceOrbType experienceOrbType + var FallingBlockType fallingBlockType + var FireworkType fireworkType + var FoxType = MobType + var FrogType = MobType + var GhastType = MobType + var GlowSquidType = MobType + var GoatType = MobType + var GuardianType = MobType + var HoglinType = MobType + var HorseType = MobType + var HuskType = MobType + var IronGolemType = MobType + var ItemType itemType + var LightningType lightningType + var LingeringPotionType lingeringPotionType + var LlamaType = MobType + var MagmaCubeType = MobType + var MobBehaviourConfig = PassiveBehaviourConfig + var MooshroomType = MobType + var MuleType = MobType + var OcelotType = MobType + var PandaType = MobType + var ParrotType = MobType + var PhantomType = MobType + var PigType = MobType + var PiglinBruteType = MobType + var PiglinType = MobType + var PillagerType = MobType + var PolarBearType = MobType + var PufferfishType = MobType + var RabbitType = MobType + var RavagerType = MobType + var SalmonType = MobType + var SheepType = MobType + var ShulkerType = MobType + var SilverfishType = MobType + var SkeletonHorseType = MobType + var SkeletonType = MobType + var SlimeType = MobType + var SnifferType = MobType + var SnowGolemType = MobType + var SnowballType snowballType + var SpiderType = MobType + var SplashPotionType splashPotionType + var SquidType = MobType + var StrayType = MobType + var StriderType = MobType + var TNTType tntType + var TadpoleType = MobType + var TextType textType + var TraderLlamaType = MobType + var TropicalFishType = MobType + var TurtleType = MobType + var VexType = MobType + var VillagerType = MobType + var VindicatorType = MobType + var WanderingTraderType = MobType + var WardenType = MobType + var WitchType = MobType + var WitherSkeletonType = MobType + var WitherType = MobType + var WolfType = MobType + var ZoglinType = MobType + var ZombieHorseType = MobType + var ZombiePigmanType = MobType + var ZombieType = MobType + var ZombieVillagerType = MobType + func EyePosition(e world.Entity) mgl64.Vec3 + func NewAreaEffectCloud(opts world.EntitySpawnOpts, p potion.Potion) *world.EntityHandle + func NewAreaEffectCloudWith(opts world.EntitySpawnOpts, t potion.Potion, ...) *world.EntityHandle + func NewArrow(opts world.EntitySpawnOpts, owner world.Entity) *world.EntityHandle + func NewArrowWithDamage(opts world.EntitySpawnOpts, damage float64, owner world.Entity) *world.EntityHandle + func NewBottleOfEnchanting(opts world.EntitySpawnOpts, owner world.Entity) *world.EntityHandle + func NewEgg(opts world.EntitySpawnOpts, owner world.Entity) *world.EntityHandle + func NewEnderPearl(opts world.EntitySpawnOpts, owner world.Entity) *world.EntityHandle + func NewExperienceOrb(opts world.EntitySpawnOpts, xp int) *world.EntityHandle + func NewExperienceOrbs(pos mgl64.Vec3, amount int) (orbs []*world.EntityHandle) + func NewFallingBlock(opts world.EntitySpawnOpts, block world.Block) *world.EntityHandle + func NewFirework(opts world.EntitySpawnOpts, firework item.Firework) *world.EntityHandle + func NewFireworkAttached(opts world.EntitySpawnOpts, firework item.Firework, owner world.Entity) *world.EntityHandle + func NewItem(opts world.EntitySpawnOpts, i item.Stack) *world.EntityHandle + func NewItemPickupDelay(opts world.EntitySpawnOpts, i item.Stack, delay time.Duration) *world.EntityHandle + func NewLightning(opts world.EntitySpawnOpts) *world.EntityHandle + func NewLightningWithDamage(opts world.EntitySpawnOpts, dmg float64, blockFire bool, ...) *world.EntityHandle + func NewLingeringPotion(opts world.EntitySpawnOpts, t potion.Potion, owner world.Entity) *world.EntityHandle + func NewSnowball(opts world.EntitySpawnOpts, owner world.Entity) *world.EntityHandle + func NewSplashPotion(opts world.EntitySpawnOpts, t potion.Potion, owner world.Entity) *world.EntityHandle + func NewTNT(opts world.EntitySpawnOpts, fuse time.Duration) *world.EntityHandle + func NewText(text string, pos mgl64.Vec3) *world.EntityHandle + func NewTippedArrow(opts world.EntitySpawnOpts, owner world.Entity, tip potion.Potion) *world.EntityHandle + func NewTippedArrowWithDamage(opts world.EntitySpawnOpts, damage float64, owner world.Entity, ...) *world.EntityHandle + type AreaEffectCloudBehaviour struct + func (a *AreaEffectCloudBehaviour) Effects() []effect.Effect + func (a *AreaEffectCloudBehaviour) PortalTravelComputer() *PortalTravelComputer + func (a *AreaEffectCloudBehaviour) Radius() float64 + func (a *AreaEffectCloudBehaviour) Tick(e *Ent, tx *world.Tx) *Movement + type AreaEffectCloudBehaviourConfig struct + Duration time.Duration + DurationUseGrowth time.Duration + Potion potion.Potion + Radius float64 + RadiusTickGrowth float64 + RadiusUseGrowth float64 + ReapplicationDelay time.Duration + func (conf AreaEffectCloudBehaviourConfig) Apply(data *world.EntityData) + func (conf AreaEffectCloudBehaviourConfig) New() *AreaEffectCloudBehaviour + type ArrowShakeAction struct + Duration time.Duration + func (ArrowShakeAction) EntityAction() + type AttackDamageSource struct + Attacker world.Entity + func (AttackDamageSource) Fire() bool + func (AttackDamageSource) IgnoreTotem() bool + func (AttackDamageSource) ReducedByArmour() bool + func (AttackDamageSource) ReducedByResistance() bool + type BaseBehaviour struct + func NewBaseBehaviour() BaseBehaviour + func (b *BaseBehaviour) PortalTravelComputer() *PortalTravelComputer + type Behaviour interface + Tick func(e *Ent, tx *world.Tx) *Movement + type Collector interface + Collect func(stack item.Stack) (n int, ok bool) + type CriticalHitAction struct + Count int + func (CriticalHitAction) EntityAction() + type DeathAction struct + func (DeathAction) EntityAction() + type DrowningDamageSource struct + func (DrowningDamageSource) Fire() bool + func (DrowningDamageSource) IgnoreTotem() bool + func (DrowningDamageSource) ReducedByArmour() bool + func (DrowningDamageSource) ReducedByResistance() bool + type EatAction struct + func (EatAction) EntityAction() + type EffectManager struct + func NewEffectManager(eff ...effect.Effect) *EffectManager + func (m *EffectManager) Add(e effect.Effect, entity Living) effect.Effect + func (m *EffectManager) Effect(e effect.Type) (effect.Effect, bool) + func (m *EffectManager) Effects() []effect.Effect + func (m *EffectManager) Remove(e effect.Type, entity Living) + func (m *EffectManager) Tick(entity Living, tx *world.Tx) + type EnchantedHitAction struct + Count int + func (EnchantedHitAction) EntityAction() + type Ent struct + func Open(tx *world.Tx, handle *world.EntityHandle, data *world.EntityData) *Ent + func (e *Ent) Age() time.Duration + func (e *Ent) AlwaysShowNameTag() bool + func (e *Ent) Behaviour() Behaviour + func (e *Ent) Close() error + func (e *Ent) Explode(src mgl64.Vec3, impact float64, conf block.ExplosionConfig) + func (e *Ent) Extinguish() + func (e *Ent) H() *world.EntityHandle + func (e *Ent) NameTag() string + func (e *Ent) OnFireDuration() time.Duration + func (e *Ent) Position() mgl64.Vec3 + func (e *Ent) Rotation() cube.Rotation + func (e *Ent) SetAlwaysShowNameTag(alwaysShow bool) + func (e *Ent) SetNameTag(s string) + func (e *Ent) SetOnFire(duration time.Duration) + func (e *Ent) SetVelocity(v mgl64.Vec3) + func (e *Ent) Teleport(pos mgl64.Vec3) + func (e *Ent) Tick(tx *world.Tx, current int64) + func (e *Ent) TravelThroughPortal(tx *world.Tx, target world.Dimension) + func (e *Ent) Velocity() mgl64.Vec3 + type ExperienceManager struct + func NewExperienceManager() *ExperienceManager + func (e *ExperienceManager) Add(amount int) (level int, progress float64) + func (e *ExperienceManager) Experience() int + func (e *ExperienceManager) Level() int + func (e *ExperienceManager) Progress() float64 + func (e *ExperienceManager) Reset() + func (e *ExperienceManager) SetLevel(level int) + func (e *ExperienceManager) SetProgress(progress float64) + type ExperienceOrbBehaviour struct + func (exp *ExperienceOrbBehaviour) Experience() int + func (exp *ExperienceOrbBehaviour) PortalTravelComputer() *PortalTravelComputer + func (exp *ExperienceOrbBehaviour) Tick(e *Ent, tx *world.Tx) *Movement + type ExperienceOrbBehaviourConfig struct + Drag float64 + ExistenceDuration time.Duration + Experience int + Gravity float64 + func (conf ExperienceOrbBehaviourConfig) Apply(data *world.EntityData) + func (conf ExperienceOrbBehaviourConfig) New() *ExperienceOrbBehaviour + type ExplosionDamageSource struct + func (ExplosionDamageSource) AffectedByEnchantment(e item.EnchantmentType) bool + func (ExplosionDamageSource) Fire() bool + func (ExplosionDamageSource) IgnoreTotem() bool + func (ExplosionDamageSource) ReducedByArmour() bool + func (ExplosionDamageSource) ReducedByResistance() bool + type Eyed interface + EyeHeight func() float64 + type FallDamageSource struct + func (FallDamageSource) AffectedByEnchantment(e item.EnchantmentType) bool + func (FallDamageSource) Fire() bool + func (FallDamageSource) IgnoreTotem() bool + func (FallDamageSource) ReducedByArmour() bool + func (FallDamageSource) ReducedByResistance() bool + type FallingBlockBehaviour struct + func (f *FallingBlockBehaviour) Block() world.Block + func (f *FallingBlockBehaviour) Tick(e *Ent, tx *world.Tx) *Movement + type FallingBlockBehaviourConfig struct + Block world.Block + DistanceFallen float64 + Drag float64 + Gravity float64 + func (conf FallingBlockBehaviourConfig) Apply(data *world.EntityData) + func (conf FallingBlockBehaviourConfig) New() *FallingBlockBehaviour + type FireworkBehaviour struct + func (f *FireworkBehaviour) Attached() bool + func (f *FireworkBehaviour) Firework() item.Firework + func (f *FireworkBehaviour) Owner() *world.EntityHandle + func (f *FireworkBehaviour) PortalTravelComputer() *PortalTravelComputer + func (f *FireworkBehaviour) Tick(e *Ent, tx *world.Tx) *Movement + type FireworkBehaviourConfig struct + Attached bool + ExistenceDuration time.Duration + Firework item.Firework + Owner *world.EntityHandle + SidewaysVelocityMultiplier float64 + UpwardsAcceleration float64 + func (conf FireworkBehaviourConfig) Apply(data *world.EntityData) + func (conf FireworkBehaviourConfig) New() *FireworkBehaviour + type FireworkExplosionAction struct + func (FireworkExplosionAction) EntityAction() + type Flammable interface + Extinguish func() + OnFireDuration func() time.Duration + SetOnFire func(duration time.Duration) + type FoodHealingSource struct + QuickRegeneration bool + func (FoodHealingSource) HealingSource() + type GlideDamageSource struct + func (GlideDamageSource) Fire() bool + func (GlideDamageSource) IgnoreTotem() bool + func (GlideDamageSource) ReducedByArmour() bool + func (GlideDamageSource) ReducedByResistance() bool + type HealthManager struct + func NewHealthManager(health, max float64) *HealthManager + func (m *HealthManager) AddHealth(health float64) + func (m *HealthManager) Health() float64 + func (m *HealthManager) MaxHealth() float64 + func (m *HealthManager) SetMaxHealth(max float64) + type HurtAction struct + func (HurtAction) EntityAction() + type ItemBehaviour struct + func (i *ItemBehaviour) Explode(e *Ent, src mgl64.Vec3, impact float64, conf block.ExplosionConfig) + func (i *ItemBehaviour) Item() item.Stack + func (i *ItemBehaviour) PortalTravelComputer() *PortalTravelComputer + func (i *ItemBehaviour) Tick(e *Ent, tx *world.Tx) *Movement + type ItemBehaviourConfig struct + Drag float64 + ExistenceDuration time.Duration + Gravity float64 + Item item.Stack + PickupDelay time.Duration + func (conf ItemBehaviourConfig) Apply(data *world.EntityData) + func (conf ItemBehaviourConfig) New() *ItemBehaviour + type LightningDamageSource struct + func (LightningDamageSource) Fire() bool + func (LightningDamageSource) IgnoreTotem() bool + func (LightningDamageSource) ReducedByArmour() bool + func (LightningDamageSource) ReducedByResistance() bool + type Living interface + AddEffect func(e effect.Effect) + Dead func() bool + Effects func() []effect.Effect + Heal func(health float64, src world.HealingSource) float64 + Health func() float64 + Hurt func(damage float64, src world.DamageSource) (n float64, vulnerable bool) + KnockBack func(src mgl64.Vec3, force, height float64) + MaxHealth func() float64 + RemoveEffect func(e effect.Type) + SetMaxHealth func(v float64) + SetSpeed func(float64) + SetVelocity func(velocity mgl64.Vec3) + Speed func() float64 + Velocity func() mgl64.Vec3 + type Mob struct + type MobType struct + func MobByName(name string) (MobType, bool) + func MobTypes() []MobType + func (t MobType) BBox(world.Entity) cube.BBox + func (t MobType) DecodeNBT(_ map[string]any, data *world.EntityData) + func (t MobType) EncodeEntity() string + func (t MobType) EncodeNBT(_ *world.EntityData) map[string]any + func (t MobType) Open(tx *world.Tx, handle *world.EntityHandle, data *world.EntityData) world.Entity + type Movement struct + func (m *Movement) Position() mgl64.Vec3 + func (m *Movement) Rotation() cube.Rotation + func (m *Movement) Send() + func (m *Movement) Velocity() mgl64.Vec3 + type MovementComputer struct + Drag float64 + DragBeforeGravity bool + Gravity float64 + func (c *MovementComputer) CheckCollision(tx *world.Tx, e world.Entity, pos, vel mgl64.Vec3) (mgl64.Vec3, mgl64.Vec3) + func (c *MovementComputer) OnGround() bool + func (c *MovementComputer) TickMovement(e world.Entity, pos, vel mgl64.Vec3, rot cube.Rotation, tx *world.Tx) *Movement + type PassiveBehaviour struct + func (p *PassiveBehaviour) Explode(e *Ent, src mgl64.Vec3, impact float64, _ block.ExplosionConfig) + func (p *PassiveBehaviour) Fuse() time.Duration + func (p *PassiveBehaviour) Tick(e *Ent, tx *world.Tx) *Movement + type PassiveBehaviourConfig struct + Drag float64 + ExistenceDuration time.Duration + Expire func(e *Ent, tx *world.Tx) + Gravity float64 + Tick func(e *Ent, tx *world.Tx) + func (conf PassiveBehaviourConfig) Apply(data *world.EntityData) + func (conf PassiveBehaviourConfig) New() *PassiveBehaviour + type PickedUpAction struct + Collector world.Entity + func (PickedUpAction) EntityAction() + type PortalTravelComputer struct + Cooldown time.Duration + CreatePortal bool + Instantaneous func(source, target world.Dimension) bool + Player bool + SpawnPoint func(tx *world.Tx) mgl64.Vec3 + Teleport func(e Traveller, pos mgl64.Vec3) + func NewPortalTravelComputer() *PortalTravelComputer + func (t *PortalTravelComputer) EnterPortal(e Traveller, tx *world.Tx, target world.Dimension) + func (t *PortalTravelComputer) StopPortalContact() + type ProjectileBehaviour struct + func (lt *ProjectileBehaviour) Critical() bool + func (lt *ProjectileBehaviour) Explode(e *Ent, src mgl64.Vec3, impact float64, _ block.ExplosionConfig) + func (lt *ProjectileBehaviour) HandlePortalTravel(world.Dimension, world.Dimension) + func (lt *ProjectileBehaviour) Owner() *world.EntityHandle + func (lt *ProjectileBehaviour) PortalTravel() bool + func (lt *ProjectileBehaviour) Potion() potion.Potion + func (lt *ProjectileBehaviour) Tick(e *Ent, tx *world.Tx) *Movement + type ProjectileBehaviourConfig struct + BlockCollisionVelocityMultiplier float64 + CollisionPosition cube.Pos + Critical bool + Damage float64 + DisablePickup bool + Drag float64 + Gravity float64 + Hit func(e *Ent, tx *world.Tx, target trace.Result) + KnockBackForceAddend float64 + KnockBackHeightAddend float64 + Owner *world.EntityHandle + Particle world.Particle + ParticleCount int + PickupItem item.Stack + PiercingLevel int + Potion potion.Potion + Sound world.Sound + SurviveBlockCollision bool + func (conf ProjectileBehaviourConfig) Apply(data *world.EntityData) + func (conf ProjectileBehaviourConfig) New() *ProjectileBehaviour + type ProjectileDamageSource struct + Owner world.Entity + Projectile world.Entity + func (ProjectileDamageSource) AffectedByEnchantment(e item.EnchantmentType) bool + func (ProjectileDamageSource) Fire() bool + func (ProjectileDamageSource) IgnoreTotem() bool + func (ProjectileDamageSource) ReducedByArmour() bool + func (ProjectileDamageSource) ReducedByResistance() bool + type Solidifiable interface + Solidifies func(pos cube.Pos, tx *world.Tx) bool + type SplashableBlock interface + Splash func(tx *world.Tx, pos cube.Pos) + type SplashableEntity interface + Splash func(tx *world.Tx, pos mgl64.Vec3) + type StationaryBehaviour struct + func (s *StationaryBehaviour) Immobile() bool + func (s *StationaryBehaviour) Tick(e *Ent, tx *world.Tx) *Movement + type StationaryBehaviourConfig struct + ExistenceDuration time.Duration + SpawnSounds []world.Sound + Tick func(e *Ent, tx *world.Tx) + func (conf StationaryBehaviourConfig) Apply(data *world.EntityData) + func (conf StationaryBehaviourConfig) New() *StationaryBehaviour + type SuffocationDamageSource struct + func (SuffocationDamageSource) Fire() bool + func (SuffocationDamageSource) IgnoreTotem() bool + func (SuffocationDamageSource) ReducedByArmour() bool + func (SuffocationDamageSource) ReducedByResistance() bool + type SwingArmAction struct + func (SwingArmAction) EntityAction() + type TotemUseAction struct + func (TotemUseAction) EntityAction() + type Traveller interface + Teleport func(pos mgl64.Vec3) + type VoidDamageSource struct + func (VoidDamageSource) Fire() bool + func (VoidDamageSource) IgnoreTotem() bool + func (VoidDamageSource) ReducedByArmour() bool + func (VoidDamageSource) ReducedByResistance() bool