Entity Commands
"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
Entity commands now supports NPCs from Citizens
Mixed Commands
In addition of the following list of commands you can also use:
Mixed Commands (Player & Entity)These commands can be used in the Player related commands OR Entity related commands.
Custom commands
Sorted by alphabetical order
+++ (Command Connector)
Info: Allows you to add more commands in one command line. Will not work well with
AROUND
andMOB_AROUND
.Example:
AROUND
Info: Targets players in a specific radius and makes them run commands
Command:
AROUND {distance} {command}
{distance}: To how far in radius the command will select players
{command}: The command that the targeted players will execute
Example:
This summons lightning at players in a 20 block radius
This gives players slowness in a 10 block radius
Damages nearby players by 20 player damage in a 7 block radius
You can add conditions to AROUND command
The condition looks like AROUND <distance> CONDITIONS(<conditions>) <command>
Conditions works with placeholders but need to be %::_::% instead of %_%
For example %::player_health::%
To add MORE than 1 condition use "&&" between the conditions
Example:
Keep in mind that the CONDITIONS() part parses the placeholders in it with the player selected by the AROUND command. So what actually happened in the placeholders above is that it checks if the target's health is greater than 10 and if that player who got selected by the AROUND command is named "2Ssomar"
ANGRYAT
Info: Sets the entity target to a specific UUID
Command: ANGRYAT {UUID}
{UUID}: UUID of the entity
Example:
It supports null to reset the angry
ANGRYAT null
AWARENESS
Info: Sets to true or false the awareness of a mob.
Command: AWARENESS {DEFAULT TRUE}
Example:
it only works for 1.16.5+
CHANGETO
Info: Replaces the mob with a different type
Command: CHANGETO {entityType}
{entityType}: Type of entity.
Example:
CHANGETOMYTHICMOB
Info: Change the mob to a MythicMob mob.
Command: CHANGETOMYTHICMOB <id>
Example:
DROPEXECUTABLEITEM
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:
DROPEXECUTABLEBLOCK
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:
DROPITEM
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:
HEAL
Info: Heals the entity with a specific amount
Command: HEAL {amount}
{amount}: Per half hearts
Example:
KILL
Info: Kills the mob without the death animation
Command: KILL
Example:
MOB_AROUND
Info: Targets entities in a specific radius and makes them run commands
Command: MOB_AROUND {distance} {mute or not} (command)
{distance}: To how far in radius the command will select entities
{mute or not}: (true or false) To notify the user of the item if it didn't manage to target any mobs.
Set to true to hide the message
You can BLACKLIST or WHITELIST entities adding one of these ones in anyplace of the command:
BLACKLIST(ZOMBIE,ARMOR_STAND)
WHITELIST(CHICKEN)
Example:
To use entity nbt on the WHITELIST/BLACKLIST field, you need to install NBT API plugin
It supports NBT Tags so you can add for example something like: ZOMBIE{IsBaby:1}
MOB_NEAREST
Info: Targets the nearest mob from the player/target.
Command:
MOB_NEAREST
{max accepted distance}{command}
{max accepted distance}: Max distance accepted that the "entity" can be.
{command}: The command that will be executed
Example:
Damages nearest player
NEAREST
Info: Targets the nearest player from the player/target.
Command:
NEAREST
{max accepted distance}{command}
{max accepted distance}: Max distance accepted that the "target" can be.
{command}: The command that will be executed
Example:
Damages nearest player
PARTICLE
Info: Spawns particles in the player/target's location
Command: PARTICLE {type} {quantity} {offset} {speed}
{type}: The type of particle. (ALL CAPS)
{quantity}: The amount of particles that will spawn
{offset}: The radius of the area where the particles may spawn in the player/target's location
{speed}: To how fast or how big particles will be
Example:
PLAYER_RIDE_ENTITY
Info: Makes the player to ride the entity targeted.
Command: PLAYER_RIDE_ON_ENTITY
Example:
SET_AI
Info: Sets the AI state
Command: SET_AI {true/false}
Example:
SETADULT
Info: Sets the entity in it's "adult" state
Command: SETADULT
Example:
Example Situation:
If this command is executed on a baby chicken, it will turn into its adult form.
SETBABY
Info: Sets the entity in it's "baby" state
Command: SETBABY
Example:
Example Situation:
If this command is executed on a adult chicken, it will turn into its baby form.
SETNAME
Info: Forcefully sets the entity's name
Command: SETNAME {name}
{name}: The name you want the entity to have
Example:
SHEAR
Info: Shear the entity
Command: SHEAR
Example:
TELEPORT ENTITY TO PLAYER
Info: Teleports the entity to the user of the item
Command: TELEPORT ENTITY TO PLAYER
Example:
TELEPORT PLAYER TO ENTITY
Info: Teleports the user of the item to the entity
Command: TELEPORT PLAYER TO ENTITY
Example:
TELEPORT POSITION
Info: Teleports the entity in a specific location
Command: TELEPORT POSITION {x} {y} {z}
{x}: X-Coordinate
{y}: Y-Coordinate
{z}: Z-Coordinate
Example:
Mixed Commands
In addition of the following list of commands you can also use:
Mixed Commands (Player & Entity)These commands can be used in the Player related commands OR Entity related commands.
Last updated