Allows an item to place entities into the world. Additionally, in version 1.19.80 and above, the component allows the item to set the spawn type of a monster spawner.
Item Components Entity Placer Properties
| Name |
Default Value |
Type |
Description |
Example Values |
| dispense_on (Dispense On) |
[] |
Array of Dispense On items |
List of block descriptors of the blocks that this item can be dispensed on. If left empty, all blocks will be allowed. |
|
| dispense_on (Alternate 1) |
not set |
String |
|
|
| dispense_on (Alternate 2) |
not set |
Object |
|
|
| entity |
|
Object |
The entity to be placed in the world. Value must match a regular expression pattern of "^(?:\w+(?:.\w+):(?=\w))?(?:\w+(?:.\w+))(?:<((?:\w+(?:.\w+):(?=\w))?\w+(?:.\w+))*>)?$". |
My Sword Turtle: "minecraft:turtle" |
| use_on (Use On) |
[] |
Array of Use On items |
List of block descriptors of the blocks that this item can be used on. If left empty, all blocks will be allowed. |
My Sword Turtle: ["minecraft:sand"] |
| use_on (Alternate 1) |
not set |
String |
|
|
| use_on (Alternate 2) |
not set |
Object |
|
|
Dispense On
Dispense On Properties
| Name |
Default Value |
Type |
Description |
Example Values |
| name |
|
String |
|
|
| states |
{} |
Integer number |
|
|
| states (Alternate 1) |
not set |
String |
|
|
| states (Alternate 2) |
not set |
Boolean true/false |
|
|
| tags |
|
String |
|
|
Use On
Use On Properties
| Name |
Default Value |
Type |
Description |
Example Values |
| name |
|
String |
|
|
| states |
{} |
Integer number |
|
|
| states (Alternate 1) |
not set |
String |
|
|
| states (Alternate 2) |
not set |
Boolean true/false |
|
|
| tags |
|
String |
|
|
Samples
"minecraft:entity_placer": {
"entity": "minecraft:spider",
"dispense_on": [
"minecraft:web"
],
"use_on": [
"minecraft:web"
]
}
"minecraft:entity_placer": {
"entity": "minecraft:turtle",
"use_on": [
"minecraft:sand"
]
}