Link Search Menu Expand Document

Runtime Identifiers

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.

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 location nearby.
  • If the entity is spawned on a non-full block (e.g. bed, slab, etc…), it will teleport to another location nearby.
  • The solid collision box’s width and height cannot be changed.

minecraft:end_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
  • Equipment placeable on/removable from entity

minecraft:iron_golem

Effects:

  • Allows launching attack (player knockback?)
  • 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
  • Disables entity shadow
  • Cannot be interacted with
  • Gives(or drops?) the player an arrow if the entity successfully hits the player

minecraft:thrown_trident

Effects:

  • Disables death animation, sound, and particles
  • Disables entity shadow
  • 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

minecraft:sheep

Effects:

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