1. Wiki
  2. /Items
  3. /minecraft:entity_placer

minecraft:entity_placer

Don't want to write this by hand? GodCraft sets minecraft:entity_placer for you with a switch.Get GodCraft

Overview

minecraft:entity_placer is an item component: it goes in the components object of a custom item. Makes the item spawn an entity when used, like a spawn egg or a boat item.

Fields

FieldTypeDefaultDescription
entityEntity Reference""The entity that appears when the item is used.
use_onBlock Descriptor[]noneBlocks the item may be used on. Leave it empty to allow any block.
dispense_onBlock Descriptor[]noneBlocks a dispenser may spawn the entity on. Leave it empty to allow any block.

Example

Inside the components object of BP/items/<name>.json (values are the defaults or placeholders):

BP/items/<name>.json
{
  "minecraft:entity_placer": {
    "entity": "",
    "use_on": [],
    "dispense_on": []
  }
}

Items: Behavior pack

We use cookies to improve your experience and analyse site traffic. Learn more