Player & Target Commands
(Click on SUDO or SUDOOP for more infos)
Don't use this option for vanilla commands, to use vanilla commands properly go to FAQ and "How to use vanilla 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 <<%player_world%>> run summon zombie 100 50 100
You want keep the brut HEX form in your command ? add the tag BRUT_HEX in your command. It works anywhere in the command line but it's recommended to put it in the first part of the cmd to make it less confusing
By default all commands aren't executed if the player is offline. (the commands will be executed at the connection of the player)
But you can add the tag [<OFFLINE>] in your commands to remove this restriction.
(Very useful for broadcast, boost, giveall commands, ...)
Example:
- [<OFFLINE>] broadcast hello !
- [<OFFLINE>] execute at %player% run setblock %block_x_int%+3 %block_y_int%-1 %block_z_int%-14 minecraft:air
Sorted by alphabetical order
- Info: Allows you to add more commands in one command line. Should be used only when you use the custom command
RANDOM RUN
. - 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
- RANDOM END
- Info: Allows you to add more commands in one command line. Will only work well with
AROUND
andMOB_AROUND
but also withALL_PLAYERS
,ALL_MOB
,NEAREST
andMOB_NEAREST
. - Example:
- AROUND 10 false execute at %around_target% run summon lightning_bolt ~ ~ ~ <+> SENDMESSAGE &You got smited!
- MOB_AROUND 7 true STUN_ENABLE <+> DELAY 5 <+> STUN_DISABLE
- Info: Gives absorption effect to the player
- Command:
- ABSORPTION {amount} [time in ticks]
- {amount}: amount of absorption half hearts. Supports negative values to remove.
- [time in ticks]: time of the effect. Set it empty or "0" if want to be infinite.
- Example:
- ABSORPTION 5 20
- Info: Targets all players.
- Command:
ALL_PLAYERS {command}
- {command}: The command that will be executed
- Example:
Damages nearest player
- ALL_PLAYERS DAMAGE 5
Run multiple commands : Give a random item to all player, all players will not have the same.
- ALL_PLAYERS RANDOM RUN:1 <+> ei give %around_target% candy1 1 <+> ei give %around_target% candy2 1 <+> ei give %around_target% candy3 1 <+> RANDOM END
- Info: Targets all players.
- Command:
ALL_MOBS {command}
- {command}: The command that will be executed
- Example:
Damages nearest player
- ALL_MOBS DAMAGE 5
- ALL_MOBS BLACKLIST(ZOMBIE,ARMORSTAND) DAMAGE 20
- ALL_MOBS WHITELIST(ZOMBIE) DAMAGE 20
Run multiple commands:
- ALL_MOBS DAMAGE 5 <+> effect give %around_target_uuid% strength 10 1
It supports blacklist and whitelist
- Info: Display the action bar with your text + the time remaining (59, 58, 57...).
- Command:
ACTIONBAR {Your text} {delay}
- Example:- `ACTIONBAR &6Hey &e%player% ! 10`
- Info: It adds an enchantment on an item on a specific slot with certain level
- Command: ADDENCHANTMENT {slot} {enchantment} {level}
- {slot}: The slot where it will be applied. -1 for mainhand
- {enchantment}: The enchantment that you want to be applied, don't use spaces, use the minecraft enchantments not the display ones.
- {level}: The level for the enchantment
- Example:
- ADDENCHANTMENT -1 unbreaking 3
- Info: Targets players in a specific radius and makes them run commands
- Command:
AROUND {distance} {msgPlayerAffected true/false} {command}
- {distance}: To how far in radius the command will select players
- {msgPlayerAffected true/false}: To notify the affected players that they are tagged by the command and to notify the user of the item if it managed to target players or not
- {command}: The command that the targeted players will execute
- Example:
This summons lightning at players in a 20 block radius
- AROUND 20 false execute at %around_target% run summon lightning_bolt
This gives players slowness in a 10 block radius
- AROUND 10 false effect give %around_target% slowness 50 5
Damages nearby players by 20 player damage in a 7 block radius
- AROUND 7 false DAMAGE 20
- The condition looks like AROUND <distance> <msg> 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
(Mainly in blockCommands/entityCommands) where you want the owner of the block/projectile won't harm the user of the item (Requires PlaceholderAPI's Player Expansion)
- AROUND 2 CONDITIONS(%::player_name::%!=%player%) DAMAGE 15
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: Adds a line of lore
- Command: ADDLORE {slot of the player} {text dont need brackets}
- Example:
- ADDLORE %slot% &7Item of %player%
- Info: Launches the player/target at the opposite direction of where they are facing at (YOU CANNOT BE LAUNCHED IN THE AIR)
- Command: BACKDASH {number}
- {amount}: The value to how strong the launch will be
- Example:
- BACKDASH 5
- Info: Puts the item in your main hand to your boots slot. (Will not work if the item has "Curse of Binding")
- Command: BOOTS
- Example:
- BOOTS
- Info: Burns the player/target
- Command: BURN {timeinsecs}
- Example:
- BURN 200
- Info: Disables pickup on a player for a set amount of time
- Command: CANCELPICKUP {time_in_ticks} [material]
- {time_in_ticks}: The duration of how long till the player can pickup items again
- Example:
- CANCELPICKUP 600
#You can also specify a material
- CANCELPICKUP 600 stone
The only wait to RESET this command after setting a time in ticks is reloading or restarting the server. If would like a way to reset this suggest it in #suggestion-bugs channel on Discord.
- Info: Puts the item in your main hand to your chestplate slot. (Will not work if the item has "Curse of Binding")
- Command: CHESTPLATE
- Example:
- CHESTPLATE
- Info: It closes the inventory to the player
- Command: CLOSE_INVENTORY
- Example:
- CLOSE_INVENTORY
- Info: It boost the growth of the crops around you
- Command: CROPS_CROPS_GROWTH {radius} {delay between two growths in ticks} {total duration in ticks} {chance 0-100}
- Example:
- CROPS_GROWTH_BOOST 5 10 100 50
- Info: Launches you to a specific location
- Command: CUSTOMDASH1 {x} {y} {z} {fallDamage}
- {x}: X-Coordinate
- {y}: Y-Coordinate
- {z}: Z-Coordinate
- {fallDamage}: true or false. Whether the player will take fall damage or not after getting launched by it.
- NOTE: IT IS POSSIBLE TO USE PLACEHOLDERS ON X,Y,Z VALUES
- Example:
- CUSTOMDASH1 %block_x% %block_y% %block_z% true
- Info: Damages the player 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} {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 20 true true
- This command will deal 20 damage
- DAMAGE 25%
- This command will deal 25% of the player's hp
- Info: Damages the player 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 player's hp
- Info: Allows you to give yourself custom damage boost
- Command: DAMAGE_BOOST {modification in percentage example 100} {timeinticks}
- {modification in percentage example 100}: Amount of the boost. Example below:
- 50 = Makes you deal +50% damage -80 = Makes you deal -80% damage
- {timeinticks}: The duration of the custom damage boost
- Example: (The command below gives you +50% damage dealen for 10s)
- DAMAGE_BOOST 50 200
It can be used as many times as you want, it will get stacked additively, that means:
8 -> 16 -> 24 -> 32
- Info: Allows you to give yourself custom damage resistance by giving yourself 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 you take +50% damage -80 = Makes you take -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: Deny the usage of the fly for a player (Gliding in Elytra is not considered as flying)
- Command: DISABLE_FLY_ACTIVATION {timeinsecs}
- {timeinsecs}: The duration of the effect
- Example: (The command below disable the activation of the fly during 1 minute)
- DISABLE_FLY_ACTIVATION 60
- Info: Deny the use of elytra for a period of time
- Command: DISABLE_GLIDE_ACTIVATION {timeinsecs}
- Example: (the command below disable the use of elytra for 20 secs)
- DISABLE_GLIDE_ACTIVATION 20
- Info: Replaces VISUALLY (there is no risk for losing items) a equipment slot with certain material
- Command: EQUIPMENT_VISUAL_REPLACE {EquipmentSlot} {material or EI:} {amount} {timeinticks}
- {EquipmentSlot}: The slot
- Options:
- -1
- 40
- 36
- 37
- 38
- 39
- {material}: The item id of the material you want to replace with or the EI id
- {amount}: The stack amount
- {timeinticks}: How long the disguise is gonna last for
- Example:
- EQUIPMENT_VISUAL_REPLACE 39 CARVED_PUMPKIN 1 100
- EQUIPMENT_VISUAL_REPLACE 39 EI:test 1 100
- Info: Cancel the EQUIPMENT_VISUAL_REPLACE command
- Command: EQUIPMENT_VISUAL_CANCEL {EquipementSlot}
- Example:
- EQUIPMENT_VISUAL_CANCEL 39
- Info: It forces the player to drop the item that he has in a specific slot.
- Command: FORCEDROP {slot}
- {slot}: number, -1 for main hand

- Example:
- FORCEDROP -1
- Info: It formats all enchantments in your lore
- Command: FORMAT_ENCHANTMENTS {slot}
- Example:
- FORMAT_ENCHANTMENTS %slot%
->


- FLY ON
- Info: Gives the player creative flight
- Command: FLY ON
- Example:
- FLY ON - FLY OFF
- Info: Disables creative flight on the player and if the player's flight get's disabled midair, the player will be teleported on the possible block under the player.
- Command: FLY OFF {teleportOnTheGround true or false}
- {teleportOnTheGround true or false}: Whether the player would get teleported to the ground or not
- Example:
- FLY OFF true
- Info: Launches the player/target at the direction of where they are facing at
- Command: FRONTDASH {number} [custom_y] [falldamage]
- {number}: The value to how strong the launch will be
- [custom_y] : To set a vertical boost (I advice you to set a little value like 0.5 - 1 if you dont want a big jump.)
- [falldamage]: set to enable or disable the fall damage
- Example:
- FRONTDASH 5 0.5 false
- 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 player
- 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: It stops the gravity for the player, stopping the player to "fall" down or going up.
- Command:
- GRAVITY_ENABLE
- GRAVITY_DISABLE
- Example:
- GRAVITY_DISABLE
- DELAY 5
- GRAVITY_ENABLE
- Info: Puts the item in your main hand to your head slot. (Will not work if the item has "Curse of Binding")
- Command: HEAD
- Example:
- HEAD
- Info: Sets the player invulnerable for a certain amount of time
- Command: INVULNERABILITY {ticks}
- It supports negative values to decrease the invulnerability time, such as the one after being hit.
- Example:
- INVULNERABILITY 60
- Info: Launches the player in the air
- Command: JUMP {number} [fall damage]
- {number}: To how strong the launch will be
- [fall damage]: Select if want the command to have fall damage. Default -> false
- Example:
- JUMP 20
- List:
- Command: LAUNCH {projectile} [angle rotation y] [angle rotation z]
- {projectile}: the type of the projectile
- [angle rotation y]: (only for 1.14 and +) (not necessary) (default = 0) (in degrees) Define the direction where the entity will be launched
- [angle rotation z]: (only for 1.14 and +) (not necessary) (default = 0) (in degrees) Define the direction where the entity will be launched
- Example:
- LAUNCH DRAGONFIREBALL
- Example multiple shoots:
- LAUNCH WITHERSKULL
- LAUNCH WITHERSKULL 20
- LAUNCH WITHERSKULL -20
If you use the LAUNCH COMMAND in the activator PLAYER_LAUNCH_PROJECTILE, and the projectile has been launched by a bow, the projectile launch with the custom LAUNCH command will keep the same velocity.
- Info: Launches an entity to your direction
- Command: LAUNCHENTITY {entityType} {speed} [angle rotation y]
- {entityType}: Mob ID of the launched entity (ALL CAPS)
- {speed}: (number, Double) Define the speed of the entity
- [angle rotation y]: (only for 1.14 and +) (not necessary) (default = 0) (in degrees) Define the direction where the entity will be launched
- Example:
- LAUNCHENTITY PIG 2
- Example to make tri-shoot:
- LAUNCHENTITY PIG 2
- LAUNCHENTITY PIG 2 15
- LAUNCHENTITY PIG 2 -15
- Info: Puts the item in your main hand to your leggings slot. (Will not work if the item has "Curse of Binding")
- Command: LEGGINGS
- Example:
- LEGGINGS
- Info: Launches a projectile at a specific location
- Command: LOCATED_LAUNCH {projectileType} {frontValue positive=front , negative=back} {rightValue right=positive, negative=left} {yValue} {velocity} [vertical rotation] [horizontal rotation]
- {projectileType}: The id of the projectile that you want to launch
- {frontValue positive=front , negative=back}: Front/Back Position. For example, if you want to spawn the projectile 5 blocks far from where you're facing, use a higher positive value
- {rightValue right=positive, negative=left}: Right/Left Position. For example, if you want the projectile to spawn to your left, use a higher negative value
- {yValue}: To how high up from your Y position will the projectile will spawn.
- {velocity}: To how fast will the projectile fly. Set the value to 0 for the projectile to fall downwards upon spawning the projectile.
- [vertical rotation] (Optional) you can add a vetical rotation for your projectile (in degrees)
- [horizontal rotation] (Optional) you can add a horizontal rotation for your projectile (in degrees)
- Example:
- LOCATED_LAUNCH ARROW 3 0 4 2 45 45
- Info: It boost you when riding a minecart (Effect close to when you go up of a powered rail)
- Command: MINECART_BOOST {number boost}
- Example:
MINECART_BOOST 10
- 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 true effect give %around_target_uuid% poison 10 10
- 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
- Modifies the durability of a specific item in a specific slot
- Command: MODIFYDURABILITY {number} {slot} {supportUnbreaking true or false}
- {number}: Positive value to increase the durability. Negative value to decrease the durability
- {slot}: The slot number of the item (-1 for the held slot)
- {supportUnbreaking true or false}: If it supports the unbreaking enchantment or not
- Example:
- MODIFYDURABILITY -1 %slot% true
- Info: it mixes the hotbar of the player
- Command: MIX_HOTBAR
- Example:
- MIX_HOTBAR
- 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: Swaps the current item with your offhand item
- Command: OFFHAND
- Example:
- OFFHAND
- Info: It opens a workbench for the player that runs the activator
- Command: OPEN_WORKBENCH
- Example:
- OPEN_WORKBENCH
- Info: It opens the ender chest for the player that runs the activator
- Command: OPEN_ENDERCHEST
- Example:
- OPEN_ENDERCHEST
- Info: It gives oxygen to the target
- Command: OXYGEN {timeinticks}
- Example:
- OXYGEN 100
- 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: Similar to CUSTOMDASH1 but the xyz will be replaced with the xyz coords of the nearest projectile from you.
- Command: PROJECTILE_CUSTOMDASH1 {fallDamage}
- {fallDamage}: Whether you will get fall damage or not (If you forgot to set whether it's true or false, the default will be false. To get fall damage, set this to true)
- Example: