Block 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 <<%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
andMOB_AROUND
.Example:
<+> (Around Command Connector)
Info: Allows you to add more commands in one command line. Will only 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 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:
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:
BREAK
Info: Breaks the target block
Command: BREAK
Example:
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_CLEAR
Info: Clear a container
Command: CONTENT_CLEAR
Example:
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:
CONSOLEMESSAGE
Info: Sends a message to the console
Command: CONSOLEMESSAGE {text}
{text}: Text to send tho the console
Example:
CHANGE_BLOCK_TYPE
Info: Changes the block type of the block selected by the activator
Command: CHANGE_BLOCK_TYPE {MATERIAL}
Example:
It works with ItemsAdder
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:
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:
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:
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:
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:
EXPLODE
Information: Breaks the block you targeted and spawns a primed tnt on that location
Command: EXPLODE
Example:
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:
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:
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:
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:
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:
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:
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}
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:
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
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
OPENDOOR
Open or close a block openable.
Example:
OPMESSAGE
Info: It sends a message to OP online players and the console
Command: OPMESSAGE {text}
{text}: Text to send
Example:
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:
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:
REMOVEBLOCK
Info: Removes the block, no drops, just remove
Command: REMOVEBLOCK
Example:
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:
It requires ShopGUIPlus (priority) & Vault & CMI prices
SETBLOCK
Info: Replaces the target block with another block
Command: SETBLOCK {material}
{material}: The block id
Example:
SETTEMPBLOCK
Info: Replaces the target block with a temporary block.
Command: SETTEMPBLOCK {material} {time in ticks}
Example:
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:
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:
SILK_SPAWNER
Info: Collects the spawner you clicked
Command: SILK_SPAWNER
Example:
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:
STRIKELIGHTNING
Info: Strikes a lightning bolt with no damage at the block that runs the command
Command: STRIKELIGHTNING
Example:
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:
Last updated