Link Search Menu Expand Document

Runtime Identifiers

Table of contents
  1. Runtime Identifiers
  2. Known runtime-identifier effects:
    1. minecraft:shulker
    2. minecraft:ender_crystal
    3. minecraft:parrot
    4. minecraft:armor_stand
    5. minecraft:iron_golem
    6. minecraft:arrow
    7. minecraft:thrown_trident
    8. minecraft:piglin
    9. minecraft:spider
    10. minecraft:minecart
    11. minecraft:boat
    12. minecraft:sheep
    13. minecraft:panda

runtime_identifier is an optional parameter that sits inside the description of the entity’s behavior file, and is used to imitate a vanilla entity’s hard-coded elements. It accepts Vanilla Minecraft identifiers, like minecraft:shulker.

"description": {
    "identifier": "assassin:my_box",
    "is_spawnable": true,
    "is_summonable": true,
    "is_experimental": false,
    "runtime_identifier": "minecraft:shulker"
}

It’s important to remember that runtime_identifier will only parse the hard-coded properties of an entity. This means that using a 100% datadriven mob as the Runtime Identifier will not add any new properties to your entity. Additionally, some entity runtimes may overwrite properties found in datadriven components even if they are added in the components section, such as the collision box size for the shulker entity.

Known runtime-identifier effects:


minecraft:shulker

Perfect for imitating a block, as long as the player is in Adventure Mode.

  • A solid collision box of 1x1x1.
  • The entity will stick to the center of the block it’s spawned in.
  • If the block it’s attached to is removed, the entity will teleport to another unobstructed location nearby.
  • If the entity is spawned on a non-full block (e.g. bed, slab, etc…), it will teleport to another unobstructed location nearby.
  • The solid collision box’s width and height cannot be changed.

minecraft:ender_crystal

  • The entity will stick to the center of the block it’s spawned in.
  • Unless teleported, the entity will always maintain its positions.
  • Can be placed on any surface
  • Will always be pushable through by other entities.
  • Cannot be configured to receive damage.
  • Cannot change the direction it faces.

minecraft:parrot

  • makes the wing flap animation able to work.
  • makes the mob fall slowly.
  • makes it dance to music discs.

minecraft:armor_stand

  • Disables entity shadows
  • Punching the entity will cause it to instantly despawn
  • Equipment placeable on/removable from entity

minecraft:iron_golem

  • Allows launching attack (attacks deal increased knockback with a vertical amplification)
  • Speeds up arm and leg animation (can be fixed manually, ~1/4 speed)
  • May interact poorly with village/villager logic.

minecraft:arrow

  • Disables death animation, sound, and particles
  • Makes entity’s shadow small, but it doesn’t make it disappear
  • Cannot be interacted with
  • If spawned through an egg or /summon command, gives the player an arrow when the player comes into contact with the entity, then removes itself

minecraft:thrown_trident

  • Disables death animation, sound, and particles
  • Makes entity’s shadow small, but it doesn’t make it disappear
  • Cannot be interacted with

minecraft:piglin

  • Allows minecraft:celebrate_hunt to function (which activates query.is_celebrating)

minecraft:spider

  • Allows cobwebs to not slow down entity

minecraft:minecart

  • Disables entity shadow
  • Makes the entity drop a minecart on death
  • Prevents the entity from rotating

minecraft:boat

  • Adds the pocket boat UI when ridden
  • Prevents the entity from rotating

minecraft:sheep

  • Allows query.is_grazing to function with the behavior.eat_block component

minecraft:panda

  • Allows query.is_grazing and query.sit_mount to function with the minecraft:behavior.random_sitting component