actions:action_types:set_entity_name_from_item
Table of Contents
minecraft:set_entity_name_from_item
The minecraft:set_entity_name_from_item
action sets an entity's custom name the from the minecraft:custom_name data component on an item stack.
This action is unsuccessful if the item stack does not contain the minecraft:custom_name data component, if the entity does not exist or if the entity is a player.
Fields
Name | Description | Type | Default Value |
---|---|---|---|
entity | The entity to target. | An action context parameter |
Example
{ "type": "minecraft:set_entity_name_from_item", "entity": "target" }
actions/action_types/set_entity_name_from_item.txt · Last modified: 2024/05/03 15:23 by errorcraft