Block Commands

"Multi-world" compatibility for the vanilla commands.

execute in <<NAMEOFYOUR_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 <<%block_world%>> run summon zombie 100 50 100

In AROUND and MOB_AROUND commands, the true/false argument are not to be included in the command as they serve no purpose.

Enable HIDE USAGE when using a big number in MINEINCUBE as it can shorten the lag that usually happens alot when you use MINEINCUBE 8 for example

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 and MOB_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

<+> (Around Command Connector)

  • Info: Allows you to add more commands in one command line. Will only work well with AROUND and MOB_AROUND.

  • Example:

- AROUND 10 execute at %around_target% run summon lightning_bolt ~ ~ ~ <+> SENDMESSAGE &You got smited!
MOB_AROUND 7 STUN_ENABLE <+> DELAY 5 <+> STUN_DISABLE

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:

- AROUND 20 execute at %around_target% run summon lightning_bolt
  • This summons lightning at players in a 20 block radius around the clicked block.

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:

- AROUND 10 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"

APPLY_BONEMEAL

  • Info: Apply the same effect that happen when a player use bone meal on a block (crop)

  • Command: APPLY_BONEMEAL

  • Example:

- APPLY_BONEMEAL

BREAK

  • Info: Breaks the target block

  • Command: BREAK

  • Example:

 - BREAK

CONTENT_ADD

  • Info: Adds an item into a container

  • Command: CONTENT_ADD {Item} [Amount] [slot]

    • {Item}: Item to add

    • [Amount]: Amount to add (default is 1)

  • Example:

- CONTENT_ADD STONE 1
- CONTENT_ADD EI:Myitem 1
- CONTENT_ADD EI:test{Usage:1,Variables:{var1:"My text",var2:2}} 1

CONTENT_CLEAR

  • Info: Clear a container

  • Command: CONTENT_CLEAR

  • Example:

- CONTENT_CLEAR

CONTENT_REMOVE

  • Info: Removes an item from a container

  • Command: CONTENT_REMOVE {Item} [Amount]

    • {Item}: Item to remove

    • [Amount]: Amount to remove (default is 1)

  • Example:

- CONTENT_REMOVE STONE 1

CONSOLEMESSAGE

  • Info: Sends a message to the console

  • Command: CONSOLEMESSAGE {text}

    • {text}: Text to send tho the console

  • Example:

- CONSOLEMESSAGE This is a debug message

CHANGE_BLOCK_TYPE

  • Info: Changes the block type of the block selected by the activator

  • Command: CHANGE_BLOCK_TYPE {MATERIAL}

  • Example:

- CHANGE_BLOCK_TYPE STONE

It works with ItemsAdder

- CHANGE_BLOCK_TYPE ITEMSADDER:MyIA

CROPS_GROWTH_BOOST

  • Info: It boost the growth of the crops around the block

  • Command: CROPS_GROWTH_BOOST {radius} {delay between two growths in ticks} {total duration in ticks} {chance 0-100}

  • Example:

- CROPS_GROWTH_BOOST 5 10 100 50

DROPEXECUTABLEITEM

  • Info: Drops an Executable Item in the block's location

  • Command: DROPEXECUTABLEITEM {id} {quantity}

    • {id}: Item id of the ExecutableItem

    • {quantity}: The amount of the executable item that will drop

  • Example:

- DROPEXECUTABLEITEM epicsnowball 1

DROPEXECUTABLEBLOCK

  • Info: Drops an Executable Block in the block'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

DRAIN IN CUBE

  • Info: it drains in a cube of "r" radius the source of lava and/or water

  • Command: DRAININCUBE {radius} [LAVA or WATER (no need if you want both)]

    • {radius}: The radius in blocks (9 is the limit), you can bypass the limit by adding a * before your radius (as your own risks).

  • Example:

DRAININCUBE 4 WATER
DRAININCUBE *12 WATER

DROPITEM

  • Info: Drops an item in the block's location

  • Command: DROPITEM {material} {quantity}

    • {material}: The item type.

  • {quantity}: The amount of the item that will drop

  • Example:

- DROPITEM BEDROCK 1

EXPLODE

  • Information: Breaks the block you targeted and spawns a primed tnt on that location

  • Command: EXPLODE

  • Example:

- EXPLODE

FARMINCUBE

  • Information: Breaks all crops in a given radius

  • Command: FARMINCUBE {radius} [drop] [onlyMaxAge] [replant]

    • {radius}: Radius of how big the area of the crops you want to break. (LIMIT IS 9)

    • [drop]: Whether the block drops loot or not

    • [onlyMaxAge]: It will only break crops with max age

    • [replant]: Whether the crop will be replanted or not

    • [event true or false]: Whether the crop will generate the event or not.

  • Example:

- FARMINCUBE 9 true true true false

FERTILIZEINCUBE

  • Info: Fertilizes nearby crops by 1 age

  • Command: FERTILIZEINCUBE {radius}

    • {radius}: Radius of how big the area of the crops you want to fertilize (LIMIT IS 9)

  • Example:

- FERTILIZEINCUBE 9

INLINE_MINEINCUBE

  • Info: Destroys blocks in a radius in a rectangle shape. Each block broken by this command gets counted as a player block break event.

  • Command: INLINE_MINEINCUBE {cube_radius} {depth} {ActiveDrop true or false} {create blockBreakEvent true or false} {optional direction}

    • {cube_radius}: Radius of how big the cube radius will be

    • {depth}: How depth the rectangle will be.

    • {drop}: Whether the block drops loot or not

    • [create blockBreakEvent]: if the plugin will generate a blockBreakEvent for each broken block by the MINEINCUBE (default true)

    • {optional direction}: If you want to force a direction.

  • Example:

- INLINE_MINEINCUBE 1 4 true true

It supports %player_direction_xz% of PlaceholderAPI - Player expansion Example: INLINE_MINEINCUBE 1 1 true true %player_direction_xz%

LAUNCH

  • Info: Makes the target block shoot projectiles

  • Command: LAUNCH {projectile} [speed] [despawnDelay]

    • the despawn delay is in seconds (Default 10)

  • Example:

- LAUNCH ARROW 2 5

The block must be directional to LAUNCH the projectile properly.

Example: Banner, Bed, Button, Chest, CocoaPlant, Comparator, Diode, DirectionalContainer, Dispenser, Door, EnderChest, Furnace, FurnaceAndDispenser, Gate, Hopper, Ladder, Lever, Observer, PistonBaseMaterial, PistonExtensionMaterial, Pumpkin, RedstoneTorch, Sign, SimpleAttachableMaterialData, Skull, Stairs, Torch, TrapDoor, TripwireHook

MINEINCUBE

  • Info: Destroys blocks in a radius in a cuboid shape. Each block broken by this command gets counted as a player block break event.

  • Command: MINEINCUBE {radius} {drop} [generate BlockBreakEvent] {offset default false}

    • {radius}: Radius of how big the area of the crops you want to break (LIMIT IS 9)

    • {drop}: Whether the block drops loot or not

    • [create blockBreakEvent]: if the plugin will generate a blockBreakEvent for each broken block by the MINEINCUBE (default true)

    • {offset default false}: If the area of block starts to break from the block broken, or from the "center" to make the area really works the "radius" selected.

  • Example:

- MINEINCUBE 4 true false

MINEINSPHERE

  • Info: Destroys blocks in a radius in a cuboid shape. Each block broken by this command gets counted as a player block break event.

  • Command: MINEINSPHERE {radius} {drop} [generate BlockBreakEvent]

    • {radius}: Radius of the sphere

    • {drop}: Whether the block drops loot or not

    • [create blockBreakEvent]: if the plugin will generate a blockBreakEvent for each broken block by the command

  • Example:

- MINEINSPHERE 4 true false

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:

- 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
- MOB_AROUND 5 effect give %around_target_uuid% poison 10 10

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_AROUND 7 BLACKLIST(ZOMBIE{CustomName:"Test Test"},ZOMBIE{CustomName:"Miyamoto"}) false BURN 3
- MOB_AROUND 5 WHITELIST(ZOMBIE{IsBaby:1}) DAMAGE 20
- MOB_aROUND 9 WHITELIST(WOLF{Owner:"%player%"}) HEAL 5
- MOB_aROUND 9 WHITELIST(WOLF{Owner:%player_uuid%}) HEAL 5

MOVE

  • Info: Move all entities above the block on the direction of the block (for better understanding is like what a conveyor do)

  • Command: MOVE

  • Example:

- MOVE

This command only works on directionals blocks.

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

- MOB_NEAREST 10 DAMAGE 5

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

- NEAREST 8 DAMAGE 5

OPENDOOR

  • Open or close a block openable.

  • Example:

- OPENDOOR

OPMESSAGE

  • Info: It sends a message to OP online players and the console

  • Command: OPMESSAGE {text}

    • {text}: Text to send

  • Example:

- OPMESSAGE This is my debug message

PARTICLE

  • Info: Spawns particles in the block's location

  • Command: PARTICLE {type} {quantity} {offset} {speed}

    • {type}: The type of particle.

  • {quantity}: The amount of particles that will spawn

  • {offset}: The radius of the area where the particles may spawn in the block's location

  • {speed}: To how fast or how big particles will be

  • Example:

- PARTICLE COMPOSTER 10 0.1 0.5

PLANT_IN_SQUARE

  • Info: Plants in square respect the block selected.

  • Command: PLANT_IN_SQUARE {radius} [takeFromInv] [acceptEI] [cropType]

    • {radius}: Radius of the square

    • [takeFromInv]: Default true, it takes the seeds in the player inv, otherwise it generates the seeds

    • [acceptEI]: Default false, accept EI for the seeds

    • [cropType]: default all seeds accepted (it takes seeds depending of their order in the inventory)

  • Example:

- PLANT_IN_SQUARE 3

REMOVEBLOCK

  • Info: Removes the block, no drops, just remove

  • Command: REMOVEBLOCK

  • Example:

- REMOVEBLOCK

SELL_CONTENT

  • Info: It sells all the content of a chest / furnace / all blocks that has an inventory.

  • Command: SELL_CONTENT [price_boost]

    • [price_boost]: Multiplier for the sold items. For example, the value here is 2 so the sold items will give you twice the selling price.

  • Example:

- SELL_CONTENT 3

It requires ShopGUIPlus (priority) & Vault & CMI prices

SETBLOCK

  • Info: Replaces the target block with another block

  • Command: SETBLOCK {material}

    • {material}: The block id

  • Example:

- SETBLOCK STONE

SETTEMPBLOCK

  • Info: Replaces the target block with a temporary block.

  • Command: SETTEMPBLOCK {material} {time in ticks}

  • Example:

- SETTEMPBLOCK STONE 100

It doesn't replace blocks that have extra datas (inventory, rotation, etc)

SETBLOCKPOS

  • Info: Setblocks in a certain position

  • Command: SETBLOCKPOS {x} {y} {z} {material} [bypassWG true or false]

    • {material}: The block type

    • [bypassWG true or false]: Whether if WorldGuard will interfere with the placement of the block or not

  • Example:

- SETBLOCKPOS %block_x_int% %block_y_int% %block_z_int% STONE true

SETEXECUTABLEBLOCK

  • Info: Setblock command but for Executable Blocks

  • Command: SETEXECUTABLEBLOCK {id} {x} {y} {z} {world} {replace true or false} [bypassProtection true or false] [ownerUUID]

    • {id}: ID of the Executable Block

    • {x}: X coordinates

    • {y}: Y coordinates

    • {z}: Z coordinates

    • {world}: The world you want the Executable Block to be at

    • {replace true or false}: Whether you want to replace a block that exists in that location or not

    • [bypassProtection true or false] (Default false): Whether you want to replace the block even if there is a terrain protection from a plugin there.

    • [ownerUUID]: (Optional) The uuid of the player who would be the owner of the eb

  • Example:

- SETEXECUTABLEBLOCK BLOCKS_001_STONE %block_x_int% %block_y_int% %block_z_int% %block_world% true

SILK_SPAWNER

  • Info: Collects the spawner you clicked

  • Command: SILK_SPAWNER

  • Example:

- SILK_SPAWNER

SMELT

  • Info: It smelts the target block dropping the smelted item, for example iron_ore -> iron_ingot it supports fortune, if it can't be smelted nothing will happen

  • Command: SMELT [generateEvent true or false optional, default true]

  • Example:

- SMELT

STRIKELIGHTNING

  • Info: Strikes a lightning bolt with no damage at the block that runs the command

  • Command: STRIKELIGHTNING

  • Example:

- STRIKELIGHTNING

VEIN_BREAKER

  • Info: Breaks blocks in veins in one block break

  • Command: VEIN_BREAKER [Max_vein_size] [trigger BREAK event, default true]

    • [max_vein_size]: Max amount of blocks the command can break

  • Example:

- VEIN_BREAKER 20

Last updated