Link Search Menu Expand Document

Runtime Identifiers

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

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.

Effects:

  • 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

Effects:

  • 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

Effects:

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

minecraft:armor_stand

Effects:

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

minecraft:iron_golem

Effects:

  • 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

Effects:

  • 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

Effects:

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

minecraft:piglin

Effects:

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

minecraft:spider

Effects:

  • Allows cobwebs to not slow down entity

minecraft:minecart

Effects:

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

minecraft:boat

Effects:

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

minecraft:sheep

Effects:

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

minecraft:panda

Effects:

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