User Tools

Site Tools


items:item_components:entity

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
items:item_components:entity [2024/04/19 13:27] – removed - external edit (Unknown date) 127.0.0.1items:item_components:entity [2024/05/06 15:04] (current) – fix link errorcraft
Line 1: Line 1:
 +====== minecraft:entity ======
 +The ''minecraft:entity'' item component allows a player to place an entity on a block.
 +This item component is usually combined with [[items:item_components:spawn_egg|minecraft:spawn_egg]].
  
 +
 +===== Fields =====
 +^  Name  ^  Description  ^  Type  ^  Default Value  ^
 +| ''entity'' | The entity to spawn. | An [[entities:entity_initializers:start|entity initializer]] | |
 +| ''allow_item_data'' | Whether to allow data from the [[mc>Item_format/1.20.5#entity_data|minecraft:entity_data]] item stack component. | An optional boolean | ''false'' |
 +
 +
 +===== Example =====
 +<code javascript>
 +{
 +  "entity": {
 +    "type": "minecraft:boat",
 +    "variant": "oak"
 +  }
 +}
 +</code>