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
Sorted by alphabetical order
- Info: Allows you to add more commands in one command line. Will not work well with
AROUND
andMOB_AROUND
. - Example:
- give %player% diamond 1 +++ SENDMESSAGE &eYou got 1 diamond!
- 'RANDOM RUN: 1'
- SENDMESSAGE &4You got nothing...
- SENDMESSAGE &eYou got dirt! +++ give %player% dirt 1
- SENDMESSAGE &bYou got diamond! +++ give %player% diamond 1
- 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
- AROUND 20 execute at %around_target% run summon lightning_bolt
This gives players slowness in a 10 block radius
- AROUND 10 effect give %around_target% slowness 50 5
Damages nearby players by 20 player damage in a 7 block radius
- AROUND 7 DAMAGE 20
- 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:
- AROUND 10 false CONDITIONS(%::player_health::%>10&%::player_name::%=2Ssomar) SENDMESSAGE &eclick
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"
- Info: Sets the entity target to a specific UUID
- Command: ANGRYAT {UUID}
- {UUID}: UUID of the entity
- Example:
- ANGRYAT %player_uuid%
- Info: Launches mobs to a direction opposite of where they are looking at
- Command: BACKDASH {number}
- {number}: The strength of the launch
- Example:
- BACKDASH 3
- Info: Burns the entity
- Command: BURN {timeinsecs}
- Example:
- BURN 50
- Info: Replaces the mob with a different type
- Command: CHANGETO {entityType}
- {entityType}: Type of entity.
- Example:
- CHANGETO CHICKEN
- Info: Change the mob to a MythicMob mob.
- Command: CHANGETOMYTHICMOB <id>
- Example:
- CHANGETOMYTHICMOB SkeletonHelper
- Info: Launches the entity to a specific location
- Command: CUSTOMDASH1 {x} {y} {z}
- {x}: X-Coordinate
- {y}: Y-Coordinate
- {z}: Z-Coordinate
- NOTE: IT IS POSSIBLE TO USE PLACEHOLDERS ON X,Y,Z VALUES
- Example:
- CUSTOMDASH1 %block_x% %block_y% %block_z% true
- Info: Damages the entity with a specific amount. (Damage dealt with the help of this command is not counted as player damage and more of an indirect damage)
- Command: DAMAGE {amount} {amplified If Strength Effect}
- {amount}: Amount of damage in hitpoints (Not in hearts)
- {amplified If Strength Effect}: true or false, Strength 1 -> + 1.5 damage, ....
- Example:
- DAMAGE 20 true
- This command will deal 20 damage
- DAMAGE 25%
- This command will deal 25% of the mob's hp
- Info: Damages the entity with a specific amount without applying knockback. (Damage dealt with the help of this command is not counted as player damage and more of an indirect damage)
- Command: DAMAGE_NO_KNOCKBACK {amount} {amplified If Strength Effect} {amplified with attack attribute}
- {amount}: Amount of damage in hitpoints (Not in hearts)
- {amplified If Strength Effect}: true or false, Strength 1 -> + 1.5 damage, ....
- {amplified with attack attribute}: true or false, player with 500% bonus damage, the command will do 5 x "<damage>".
- Example:
- DAMAGE_NO_KNOCKBACK 20 true true
- This command will deal 20 damage
- DAMAGE_NO_KNOCKBACK 25%
- This command will deal 25% of the entity's hp
- Info: Allows you to give to an entity custom damage resistance by giving to this entity customized damage intake magnifications
- Command: DAMAGE_RESISTANCE {modification in percentage example 100} {timeinticks}
- {modification in percentage example 100}: Amount of the magnification. Example below:
- 50 = Makes the entity takes +50% damage -80 = Makes the entity takes -80% damage
- {timeinticks}: The duration of the custom damage resistance
- Example: (The command below gives you +50% damage taken for 10s)
- DAMAGE_RESISTANCE 50 200
- 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}
- {quantity}: The amount of the item that will drop
- Example:
- DROPITEM DIAMOND 1
- Info: It applies the freeze of Minecraft 1.18 snow
- Command: GLACIAL_FREEZE {time in ticks}
- Example:
- GLACIAL_FREEZE 160
- Info: Applies glowing to the entity
- Command: {time in ticks} [color]
- {time in ticks}: Duration of the glow in ticks
- [color]: To what color will the glow have
- Example:
- GLOWING 100 BLUE
- Info: Heals the entity with a specific amount
- Command: HEAL {amount}
- {amount}: Per half hearts
- Example:
- HEAL 13
- Info: Launches the entity to the air
- Command: JUMP {number}
- {number}: To how strong the launch will be
- Example:
- JUMP 20
- Info: Kills the mob without the death animation
- Command: KILL
- Example:
- KILL
- 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:
- MOB_AROUND 3 false BURN 10
- MOB_AROUND 5 execute at %around_target_uuid% run summon lightning_bolt
- MOB_AROUND 5 BLACKLIST(ZOMBIE,ARMORSTAND) DAMAGE 20
It supports NBT Tags so you can add for example something like:
ZOMBIE{IsBaby:1}
- MOB_AROUND 7 BLACKLIST(ZOMBIE{CustomName:"Test Test"},ZOMBIE{CustomName:"Miyamoto"}) false BURN 3
- MOB_AROUND 5 WHITELIST(ZOMBIE{IsBaby:1}) DAMAGE 20
- 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
- MOB_NEAREST 10 DAMAGE 5
- 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
- NEAREST 8 DAMAGE 5
- 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:
- PARTICLE FIREWORKS_SPARK 10 0.1 0.5
- Info: Makes the player to ride the entity targeted.
- Command: PLAYER_RIDE_ON_ENTITY
- Example:
entityCommands:
- PLAYER_RIDE_ON_ENTITY
- Info: Removes the glow effect from the entity
- Command: REMOVEGLOW [color]
- Example:
- REMOVEGLOW RED
- Info: Sets the AI state
- Command: SET_AI {true/false}
- Example:
- SET_AI false
- Info: Sets the entity in it's "adult" state
- Command: SETADULT
- Example:
- SETADULT
- 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
- Command: SETBABY
- Example:
- SETBABY
- Example Situation:
- If this command is executed on a adult chicken, it will turn into its baby form.
- Info: Permanently gives the entity the glow effect
- Command: SETGLOW [color]
- Example:
- SETGLOW RED
- Info: Forcefully sets the entity's name
- Command: SETNAME {name}
- {name}: The name you want the entity to have
- Example:
- SETNAME FLAG
- Info: Strikes lightning with no damage on the entity
- Command: STRIKELIGHTNING
- Example:
- STRIKELIGHTNING
- Info: It will enable or disable the stun for the entity (it lays it down and blocks it from moving its camera
- Commands:
- STUN_ENABLE
- STUN_DISABLE
- Example:
- STUN_ENABLE
- DELAY 5
- STUN_DISABLE
- Info: Shear the entity
- Command: SHEAR
- Example:
- SHEAR
- Info: Teleports the entity to the user of the item
- Command: TELEPORT ENTITY TO PLAYER
- Example:
- TELEPORT ENTITY TO PLAYER
- Info: Teleports the user of the item to the entity
- Command: TELEPORT PLAYER TO ENTITY
- Example:
- TELEPORT PLAYER TO ENTITY
- Info: Teleports the entity in a specific location
- Command: TELEPORT POSITION {x} {y} {z}
- {x}: X-Coordinate
- {y}: Y-Coordinate
- {z}: Z-Coordinate
- Example:
- TELEPORT POSITION %target_x% %target_y% %target_z%
Last modified 1mo ago