User Tools

Site Tools


items:item_components:entity

This is an old revision of the document!


Table of Contents

minecraft:entity

The minecraft:entity item component allows a player to place an entity on a block. This item component is usually combined with minecraft:spawn_egg.

Fields

Name Description Type Default Value
entity The entity to spawn. An entity initializer
allow_item_data Whether to allow data from the minecraft:entity_data item stack component. An optional boolean false

Example

{
  "entity": {
    "type": "minecraft:boat",
    "variant": "oak"
  }
}
items/item_components/entity.1713533223.txt.gz · Last modified: 2024/04/19 13:27 by errorcraft