Skip to content

EntityHelpers ​

Lets scripts identify entity helpers through the EntityHelpers global,
without knowing their Java package names.
Checks follow helper inheritance, not entity registry IDs. These are Java types,
so their existing constructors and static members are also available. The group members are read-only. Listing a type here does not change which helper a factory returns.

js
const entities = World.getEntities();  
if (entities !== null) {
 for (const ent of entities) {
   if (ent instanceof EntityHelpers.Horse) {
     Chat.log(ent.getVariant());  
   }
 }
}

These names are available in JavaScript and Python without importing anything. They are read-only aliases of Java types, so instanceof works as usual.

Script nameWhat it is
EntityHelpers.AbstractHorseProvides shared APIs for horses, donkeys, mules, and llamas.
EntityHelpers.AbstractPiglinProvides the shared zombification-immunity query for piglins.
EntityHelpers.AllayProvides access to an allay's dancing, duplication-cooldown, and held-item states.
EntityHelpers.AnimalProvides food checks and breeding eligibility for animals.
EntityHelpers.AreaEffectCloudA lingering area-effect cloud applies its potion effects over time.
EntityHelpers.ArmorStandReads an armor stand's flags and six pose rotations.
EntityHelpers.ArrowAn arrow projectile, including ordinary, tipped, and spectral arrows.
EntityHelpers.AxolotlProvides access to an axolotl's variant, playing-dead state, and bucket-origin flag.
EntityHelpers.BatProvides access to a bat's resting state.
EntityHelpers.BeeProvides access to a bee's nectar, anger, and sting states.
EntityHelpers.BlazeProvides helper access to a blaze.
EntityHelpers.BlockDisplayProvides access to the block state displayed by a block display entity.
EntityHelpers.BoatA helper for boats and rafts, including their chest variants.
EntityHelpers.CatA tameable cat with a coat variant and collar colour.
EntityHelpers.ClientPlayerProvides client-side operations for the local player.
EntityHelpers.CreeperReads a creeper's powered and ignited states and fuse counters.
EntityHelpers.DisplayProvides properties shared by block, item, and text display entities.
EntityHelpers.DolphinProvides access to dolphin-specific state, including whether it carries a fish, its treasure destination, and its moisture level.
EntityHelpers.DonkeyProvides horse APIs for donkeys and mules, including whether a chest is attached.
EntityHelpers.DrownedProvides access to drowned-specific checks for held tridents and nautilus shells.
EntityHelpers.EndCrystalExposes an end crystal's base-display flag and optional beam target.
EntityHelpers.EnderDragonProvides access to the ender dragon's current phase and its eight body parts.
EntityHelpers.EndermanProvides access to an enderman's target-related flags and carried block state.
EntityHelpers.EntityWraps a Minecraft entity for script access.
EntityHelpers.FallingBlockRepresents a block moving as a falling entity, exposing its origin and block state.
EntityHelpers.FishHelper for fish entities.
EntityHelpers.FishingBobberA fishing bobber projectile, with access to its bite and open-water state and hooked entity.
EntityHelpers.FoxProvides access to a fox's held item, trusted entities, variant, and behavior states.
EntityHelpers.FrogProvides variant, tongue-target, and croaking-state information for a frog.
EntityHelpers.FurnaceMinecartProvides access to the furnace minecart's displayed furnace lit state.
EntityHelpers.GhastProvides access to whether a ghast is charging its fireball attack.
EntityHelpers.GoatProvides access to whether a goat is a screaming goat and which horns remain.
EntityHelpers.GuardianProvides access to guardian-specific state, including elder status, attack target, and movement state.
EntityHelpers.HorseProvides access to horse coat and markings data in addition to AbstractHorseEntityHelper.
EntityHelpers.IllagerProvides access to illager state shared across specialized illager helpers.
EntityHelpers.InteractionExposes an interaction entity's dimensions, response flag, recorded living entities, and client-side hit override.
EntityHelpers.IronGolemProvides access to iron-golem state, including whether it was player-created.
EntityHelpers.ItemA dropped stack of items in the world.
EntityHelpers.ItemDisplayDisplays an item entity; its displayed stack is empty when no item is set.
EntityHelpers.ItemFrameProvides the item frame's type, displayed-item rotation, and item stack.
EntityHelpers.LivingAdds living-entity state, such as health, equipment, and status effects, to an entity helper.
EntityHelpers.LlamaProvides llama coat, strength, and trader status alongside the chested-horse APIs inherited from DonkeyEntityHelper.
EntityHelpers.MerchantHelpers for villagers and wandering traders, which share the game's merchant base class.
EntityHelpers.MobWraps a Minecraft mob and exposes its mob-specific state.
EntityHelpers.MooshroomProvides access to a mooshroom's variant and whether it is ready for shearing.
EntityHelpers.OcelotProvides access to an ocelot's trust state.
EntityHelpers.PaintingReads a painting's variant dimensions and registry identifier.
EntityHelpers.PandaProvides access to a panda's genes and current behavior states.
EntityHelpers.ParrotA helper for a parrot entity.
EntityHelpers.PhantomProvides access to a phantom's size, which scales its dimensions and sets its base attack damage to 6 plus the size.
EntityHelpers.PigProvides pig-specific access to saddle state.
EntityHelpers.PiglinProvides access to the piglin's current arm-pose states.
EntityHelpers.PillagerProvides access to a pillager's entity-helper API, including a check for a white banner in its head slot.
EntityHelpers.PlayerProvides player-specific entity data, including experience, score, and sleep state.
EntityHelpers.PolarBearProvides access to a polar bear's standing state.
EntityHelpers.PufferfishProvides access to a pufferfish's inflation state.
EntityHelpers.RabbitWraps a rabbit and exposes its variant, including the killer bunny variant.
EntityHelpers.SheepProvides access to a sheep's wool state and color.
EntityHelpers.ShulkerProvides access to a shulker's shell state, attachment face, and optional dye color.
EntityHelpers.SlimeProvides access to a slime's size and whether it is tiny.
EntityHelpers.SnowGolemProvides access to a snow golem's pumpkin and shearing state.
EntityHelpers.SpellcastingIllagerProvides spell-casting state and the mapped spell name for a spellcasting illager.
EntityHelpers.SpiderProvides access to a spider's climbing state through isClimbing().
EntityHelpers.StriderProvides access to a strider's saddle and suffocating state.
EntityHelpers.TameableHelpers for tameable animals, including wolves, cats, and parrots.
EntityHelpers.TextDisplayExposes the client-built render state for a text display; getData() returns null until it exists.
EntityHelpers.TntRepresents primed TNT; its fuse can be read with getRemainingTime().
EntityHelpers.TntMinecartProvides fuse and primed-state queries for TNT minecarts.
EntityHelpers.TridentA helper for querying a thrown trident's stored loyalty level and foil state.
EntityHelpers.TropicalFishProvides a tropical fish's pattern, body size, and base and pattern colours.
EntityHelpers.VexProvides access to a vex's charge state.
EntityHelpers.VillagerA villager helper exposing the villager's profession, type, level and experience.
EntityHelpers.VindicatorProvides access to vindicator-specific helpers, including a custom-name-based Johnny check.
EntityHelpers.WardenProvides access to a warden's anger, poses, and sonic-boom animation state.
EntityHelpers.WitchProvides access to a witch's drinking state and main-hand item.
EntityHelpers.WitherProvides access to the wither's invulnerability countdown and health-based phase state.
EntityHelpers.WitherSkullA wither skull projectile, with access to its dangerous flag.
EntityHelpers.WolfProvides access to wolf-specific state, including taming, collar color, begging, anger, and wetness.
EntityHelpers.ZombieProvides access to zombie-specific properties, including whether drowned conversion is active.
EntityHelpers.ZombieVillagerProvides access to a zombie villager's conversion state and villager data.