➤ Commands - ssomar1607/ExecutableItems GitHub Wiki

With ExecutableItems you can run every commands you want.

  • IMPORTANT INFORMATION, by default all commands are run by the console so if you whant that the player run the command add SUDO or SUDOOP before :D
  • For the "multi-world" compatibility for the execute in command, add <<NAME_OF_YOUR_WORLD>> in the sides. Ex: execute in <<SssomarrrrWorld>> ...
  • Examples:
    • gamemode creative %player%
    • heal %player%
    • SUDO /warp spawn

By default all commands aren't runned if the player is offline but you can add the tag [<OFFLINE>] to remove this restriction, very usefull for broadcast, boost, giveall commands:

- [<OFFLINE>] say Hey %player% active an activator
- giveall diamond 1 [<OFFLINE>]

ExecutableItems has several original pre-recorded commands.

BRUT_HEX

  • Info: Mainly used to keep the brut hex form in your command (to have the hex to work on the luckperms prefix command for example)
  • Command: BRUT_HEX (command)
  • Example:
- BRUT_HEX SENDMESSAGE HI
  • Extra Notes: 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

PARTICLE

  • Info: Spawns particles in the player/target's location
  • Command: PARTICLE {type} {quantity} {offset} {speed}
    • {type}: The type of particle. Reference (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

FLY

  • 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
    

SETBLOCK

  • Info: (FOR ACTIVATORS THAT INVOLVES TARGETTING BLOCKS) Adds blocks in the block's location. (Only replaces air)
  • Command: SETBLOCK {material}
    • {material}: Block ID (Block states are supported) (ALL CAPS)
  • Example:
- SETBLOCK OAK_WOOD
- SETBLOCK FURNACE[LIT=TRUE]

SUDO

  • Info: Forces you to run a command
  • Command: SUDO (command)
  • Example:
- SUDO /sit

SUDOOP

  • Info: Gives the player OP, SUDOs the player and DEOPs it
  • Extra Info: During the OP, the player can only run the specified command after the SUDOOP, all other commands are blocked when the player is OP, and if the server crashes, no problem. The player will be DEOPed when the player reconnects.
  • Command: SUDOOP (command)
  • Example:
- SUDOOP summon zombie

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
  • Example:
- MOB_AROUND 3 false BURN 10
- MOB_AROUND 5 execute at %around_target_uuid% run summon lightning_bolt

SENDMESSAGE

  • Info: Sends you a message
  • Command: SENDMESSAGE (message)
  • Example:
- SENDMESSAGE &fThis is a somewhat random text.

SENDCENTEREDMESSAGE

  • Info: Sends a message but it's positioned in the center based on the default chat settings of your client
  • Command: SENDCENTEREDMESSAGE (message)
  • Example:
- SENDCENTEREDMESSAGE ANNOUNCEMENT

CUSTOMDASH1

  • 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

BURN

  • Info: Burns the player/target
  • Command: BURN {timeinsecs}
  • Example:
- BURN 200

JUMP

  • Info: Launches the player in the air
  • Command: JUMP {number}
    • {number}: To how strong the launch will be
  • Example:
- JUMP 20

REGAIN HEALTH

  • Info: Gives you a specific amount of HP
  • Command: REGAIN HEALTH {amount}
    • {amount}: The amount of HP you want to gain
  • Example:
- REGAIN HEALTH 10

SENDBLANKMESSAGE

  • Info: Sends you a blank message
  • Command: SENDBLANKMESSAGE
  • Example:
- SENDBLANKMESSAGE

REGAIN FOOD

  • Info: Gives you a specific amount of food/saturation
  • Command: REGAIN FOOD {amount}
    • {amount}: The amount of saturation points you want to gain. Use negative values to reduce hunger points
  • Example:
- REGAIN FOOD 5

NOTHING*

  • Info: Mainly used for RANDOM RUN commands as a "dummy" command for RNG adjustments
  • Command: NOTHING*{amount}
  • Example of usage:
- 'RANDOM RUN: 1'
- NOTHING*99
- give %player% diamond 1
- RANDOM END

This command line means that there is a 1/100 chance it will give you a diamond

REPLACEBLOCK

  • Info: Replaces the block the player is looking at into a different one
  • Command: REPLACEBLOCK {material}
    • {material}: Block ID (Block states are supported) (ALL CAPS)
  • Example:
- REPLACEBLOCK STONE_BRICKS
- REPLACEBLOCK WATER[LEVEL=0]

AROUND

  • 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 targetted players will execute
  • Example:
- AROUND 20 false execute at %around_target% run summon lightning_bolt
  • This summons lightning at players in a 20 block radius
- AROUND 10 false effect give %around_target% slowness 50 5
  • This gives players slowness in a 10 block radius
- AROUND 7 false DAMAGE 20
  • Damages nearby players by 20 player damage in a 7 block radius

HEAD

  • 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

CHESTPLATE

  • 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

LEGGINGS

  • 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

BOOTS

  • 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

LAUNCH

  • Info: Launches a custom projectile. Reference
  • List: ARROW, DRAGONFIREBALL, EGG, ENDERPEARL, FIREBALL, LARGEFIREBALL, LINGENRINGPOTION, LLAMASPIT, SHULKERBULLET, SIZEDFIREBALL, SNOWBALL, TRIDENT, WITHERSKULL
  • 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

STRIKELIGHTNING

  • Info: Strikes a lightning bolt with no damage to the one that runs the command
  • Command: STRIKELIGHTNING
  • Example:
- STRIKELIGHTNING
  • THIS IS NOT THE SAME AS ESSENTIAL'S SMITE COMMAND. IF YOU WANT TO SMITE YOUR TARGETS, PUT IT ON TARGET COMMANDS OR ENTITY COMMANDS ALONG WITH THE PROPER ACTIVATORS LIKE PLAYER_CLICK_ON_PLAYER FOR EXAMPLE.

BACKDASH

  • 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

TELEPORTONCURSOR

  • Info: Teleports you on your cursor
  • Command: TELEPORTONCURSOR {range} {acceptAir}
    • {range}: To how far you want to teleport
    • {acceptAir}: To be able to teleport even in air, you need to set this to true
  • Example:
- TELEPORTONCURSOR 8 true

FRONTDASH

  • Info: Launches the player/target at the direction of where they are facing at (YOU CANNOT BE LAUNCHED IN THE AIR)
  • Command: FRONTDASH {number} [custom_y]
    • {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.)
  • Example:
- FRONTDASH 5 0.5

DELAY

  • Info: Delays a command line for seconds
  • Command: DELAY {amount}
    • {amount}: To how long you want commands to be delayed (In seconds)
  • Example:
- DELAY 10

ACTIONBAR

  • Info: Display the action bar with the time remaining to reach the ACTIONBAR OFF (59, 58, 57...).
  • Commands:
    • ACTIONBAR ON
    • ACTIONBAR OFF
  • Example:
- ACTIONBAR ON
- DELAY 10
- ACTIONBAR OFF

ACTIONBAR 2

  • Info: Display the action bar with what you want and for a custom delay.
  • Commands:
    • ACTIONBAR {name / your string} {delay}
  • Example:
 `ACTIONBAR &6Hey &e%player% ! 10`

DAMAGE

  • 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}
    • {amount}: Amount of damage in hitpoints (Not in hearts)
  • Example:
- DAMAGE 20
  • This command will deal 20 damage
- DAMAGE 25%
  • This command will deal 25% of your max hp

RANDOM RUN

  • Info: A command mainly used for rng.
  • RANDOM RUN
    • Info: The first part of the command
    • Command: RANDOM RUN: {amount}
      • {amount}: The amount of commands that will be randomly selected inside of the command line. Placeholders are supported
  • RANDOM END
    • Info: The other part of the command
    • Command: RANDOM END
  • Example:
- 'RANDOM RUN: 1'
- give %player% coal 1
- give %player% iron_ingot 1
- give %player% gold_ingot 1
- RANDOM END

This means that you have a 1/3 chance of getting coal, iron or gold

- 'RANDOM RUN: 2'
- give %player% diamond 1
- give %player% emerald 1
- give %player% diamond_block 1
- RANDOM END

This means that from the 3 give commands, 2 of the randomly chosen command lines will run.

- 'RANDOM RUN: 1'
- NOTHING*9
- give %player% diamond_block 1
- RANDOM END

This means that there's a 10% chance to give you a diamond block.

DELAYTICK

  • Info: Delays a command line for game ticks (20 ticks = 1 second)
  • Command: DELAYTICK {amount}
    • {amount}: To how long you want commands to be delayed (In ticks)
  • Example:
- DELAYTICK 5

WORLDTELEPORT

  • Info: Teleport you to a world
  • Command: WORLDTELEPORT {world}
  • Example:
- WORLDTELEPORT spawn_end

SPAWNENTITYONCURSOR

  • Info: Spawn entities on your cursor
  • Command: SPAWNENTITYONCURSOR {entityType} {amount}
    • {entityType}: Mob ID (ALL CAPS)
    • {amount}: The amount of mobs that will spawn in that spot
  • Example:
- SPAWNENTITYONCURSOR CREEPER 1

REMOVEBURN

  • Info: Extinguishes you from burning
  • Command: REMOVEBURN
  • Example:
- REMOVEBURN

LAUNCHENTITY

  • 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:
- LAUNCENTITY PIG 2
- LAUNCENTITY PIG 2 15
- LAUNCENTITY PIG 2 -15

SETEXECUTABLEBLOCK

  • Info: Setblock but for Executable Blocks. (EXECUTABLE BLOCKS MUST BE INSTALLED)
  • Command: SETEXECUTABLEBLOCK {id} {x} {y} {z} {world} {replace true or false} [ownerUUID]
    • {id}: ID of the executable block you are trying to place down
    • {x}: X-Coordinate
    • {y}: Y-Coordinate
    • {z}: Z-Coordinate
    • {world}: Name of the world
    • {replace true or false}: true or false. Whether it will replace the existing block in the said coordinates or not
    • [ownerUUID]: (Optional) The uuid of the supposed owner of the executable block
  • Example:
- SETEXECUTABLEBLOCK Mithril_Ore %block_x_int% %block_y_int% %block_z_int% %block_world% false %player_uuid%

SETHEALTH

  • Info: Sets your health into a specific amount
  • Command: SETHEALTH {amount}
    • {amount}: The amount of health you want it to set to
  • Example:
SETHEALTH 10

PROJECTILE_CUSTOMDASH1

  • 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:
- PROJECTILE_CUSTOMDASH1 false

SETYAW

  • Info: Forces the player to look in a certain yaw position (360 degrees, left right direction)
  • Command: SETYAW {yaw_number}
    • {yaw_number}: The number that you want to input. Placeholders work too
  • Example:
- SETYAW 10

SETPITCH

  • Info: Forces the player to look in a certain pitch position (-90/90 degrees, up down direction)
  • Command: SETPITCH {pitch_number}
  • Example:
- SETPITCH 0

CANCELPICKUP

  • Info: Disables pickup on a player for a set amount of time
  • Command: CANCELPICKUP {time_in_ticks}
    • {time_in_ticks}: The duration of how long till the player can pickup items again
  • Example:
- CANCELPICKUP 600

LOCATED_LAUNCH

  • Info: Launches a projectile at a specific location
  • Command: LOCATED_LAUNCH {projectileType} {frontValue positive=front , negative=back} {rightValue right=positive, negative=left} {yValue} {velocity}
    • {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.
  • Example:
- LOCATED_LAUNCH ARROW 3 0 4 2

TOTEM_ANIMATION

  • Info: Runs the totem animation that occurs when you pop your totem of undying
  • Command: TOTEM_ANIMATION
  • Example:
- TOTEM_ANIMATION

MODIFYDURABILITY

  • 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
    • {supportUnbreaking true or false}: If it supports the unbreaking enchantment or not
  • Example:
- MODIFYDURABILITY -1 %slot% true

SETMATERIALCOOLDOWN

  • Gives the player/target cooldown on an item
  • Command: SETMATERIALCOOLDOWN {material} {delay in secs}
    • {material}: The type of material
    • {delay in secs}: Cooldown
  • Example:
- SETMATERIALCOOLDOWN ENDER_PEARL 10

Command Utilities

+++

  • Info: To be able to run multiple commands in one command line
  • Example:
- 'RANDOM RUN: 1'
- SENDMESSAGE &cYou lost...
- SENDMESSAGE &aYou Won! +++ give %player% diamond 1
- RANDOM END

LOOP

  • LOOP START
    • Info: First part of the command
    • Command: LOOP START: {amount}
      • {amount}: Number of times a command gets repeated. Placeholders are supported
  • LOOP END
    • Info: Last part of the command
    • Command: LOOP END
  • Example:
- 'RANDOM RUN: 1'
- 'LOOP START: 5'
- SENDMESSAGE &cYOU GOT AN APPLE! +++ give %player% apple 1
- LOOP END
- 'LOOP START: 3'
- SENDMESSAGE &7YOU GOT IRON! +++ give %player% iron_ingot 1
- LOOP END
- 'LOOP START: 2'
- SENDMESSAGE &aYOU GOT DIAMOND! +++ give %player% diamond 1
- LOOP END
- RANDOM END

Explanation:

  • 50% chance to get an apple
  • 30% chance to get iron
  • 20% chance to get diamond

More Examples:

  1. I want to make it so 99% chance it will give me dirt and 1% chance to give me diamond BUT I don't want to write 99 lines of the give dirt command.
  • So here is how to do it.
- 'LOOP START: 99' 
- give %player% dirt 1
- LOOP END
  • The 99 represents that any commands inside the loop command will be duplicated 99 times. You will only see the give command and the loop command but the plugin sees 99 give commands.

  • Here is what the plugin sees

- give %player% dirt 1
- give %player% dirt 1
- give %player% dirt 1
- give %player% dirt 1
- give %player% dirt 1
- give %player% dirt 1
- give %player% dirt 1
- give %player% dirt 1
- give %player% dirt 1
- give %player% dirt 1

(You get the idea.)

  • So let's go back to our main objective. 99% chance to get dirt, 1% chance to get diamond. The RANDOM RUN command evenly gives the same rng rates to all the commands inside the RANDOM RUN command.
- 'RANDOM RUN: 1'
- give %player% dirt (50%)
- give %player% diamond (50%)
- RANDOM END
- 'RANDOM RUN: 1'
- give %player% dirt (33%)
- give %player% diamond (33%)
- give %player% diamond (33%)
- RANDOM END
- 'RANDOM RUN: 1'
- give %player% dirt (25%)
- give %player% dirt (25%)
- give %player% diamond (25%)
- give %player% diamond (25%)
- RANDOM END
  • After seeing these RANDOM RUN examples, we will acknowledge that it would work like this.
- 'RANDOM RUN: 1'
- 'LOOP START: 99' (99%)
- give %player% dirt 1
- LOOP END
- give %player% diamond 1 (1%)
- RANDOM END
  • The total of the supposed lines is 100 so it's going to be (100 command lines / 100% = 1%) rate per command.
⚠️ **GitHub.com Fallback** ⚠️