Entity Commands
Last updated
Last updated
"Multi-world" compatibility for the vanilla commands.
execute in <<NAME
OF
YOUR_WORLD>> run ...
Example, you want summon a Zombie in the world SsomarWorld:
execute in <<SsomarWorld>> run summon zombie 100 50 100
Example with a placeholder:
execute in <<%entity_world%>> run summon zombie 100 50 100
In addition of the following list of commands you can also use:
These commands can be used in the Player related commands OR Entity related commands.
Sorted by alphabetical order
Info: Sets the entity target to a specific UUID
Command settings:
entityUUID: The entity UUID of the target
Example:
- ANGRY_AT entityUUID:%player_uuid%
# To reset the angry set null
- ANGRY_AT entityUUID:null
Info: Sets whether this mob is aware of its surroundings. Unaware mobs will still move if pushed, attacked, etc. but will not move or perform any actions on their own. Unaware mobs may also have other unspecified behaviours disabled, such as drowning.
Command settings:
value: true or false
Example:
- AWARENESS value:true
Info: Replaces the mob with an entity of another type. It will keep the current velocity of the current entity.
You can specify an EntityType
Or an entity definition example: {HasVisualFire:1b,id:"minecraft:bee"} (1.21.+)
Or a MythicMob ID
Command settings:
entity: The entity specification
Example:
# With EntityType
- CHANGE_TO entity:CHICKEN
# With EntitySnapshot
- CHANGE_TO entity:{HasVisualFire:1b,id:"minecraft:bee"}
# Or using variable
- CHANGE_TO entity:%var_myvar%
# With MythicMob ID
- CHANGE_TO entity:MyCustomBossID
Info: Drops an Executable Item in the entity's location
Command: DROPEXECUTABLEITEM {id} {quantity}
{id}: Item id of the ExecutableItem
{quantity}: The amount of the executable item that will drop
Example:
- DROPEXECUTABLEITEM ElytraTrail 1
Info: Drops an Executable Block in the entity's location
Command: DROPEXECUTABLEBLOCK {id} {quantity}
{id}: Item id of the ExecutableBlock
{quantity}: The amount of the executable block that will drop
Example:
- DROPEXECUTABLEBLOCK House 1
Info: Drops an item in the entity's location
Command: DROPITEM {material} {quantity}
{material}: The item type. Reference (MUST BE AT ALL CAPS)
{quantity}: The amount of the item that will drop
Example:
- DROPITEM DIAMOND 1
Info: Heals the entity with a specific amount, if not specified it will full heal the entity.
Command settings:
amount: The amount of the heal
Example:
# Full heal
- HEAL
# Amount specific heal
- HEAL amount:5
# Remove heal
- HEAL amount:-5
Info: Kills the mob without the death animation
No command setting
Example:
- KILL
Info: Makes the player to ride the entity targeted.
No command setting
Example:
- PLAYER_RIDE_ON_ENTITY
Info: Sets the AI state of the entity
Command settings:
value: true to enable the AI of the entity and false to disable.
Example:
- SET_AI value:false
Info: Sets the entity in it's "adult" state
No command setting
Example:
- SET_ADULT
Example Situation:
If this command is executed on a baby chicken, it will turn into its adult form.
Info: Sets the entity in it's "baby" state
No command setting
Example:
- SET_BABY
Example Situation:
If this command is executed on a adult chicken, it will turn into its baby form.
Info: Forcefully sets the entity's name
Command settings:
name: the new name of the entity
Example:
- SET_ENTITY_NAME name:&6Final &cBoss
Info: Shear the entity
No command setting
Example:
- SHEAR
Info: Teleports the entity to the user of the item
No command setting
Example:
- TELEPORT_ENTITY_TO_PLAYER
Info: Teleports the user of the item to the entity
No command setting
Example:
- TELEPORT_PLAYER_TO_ENTITY
Info: Teleports the entity in a specific location
Command settings:
x: X-Coordinate
y: Y-Coordinate
z: Z-Coordinate
Example:
- TELEPORT_POSITION x:%target_x% y:%target_y% z:%target_z%
In addition of the following list of commands you can also use:
These commands can be used in the Player related commands OR Entity related commands.