Command Utils
Adds utility commands, and also allows you to create menus with commands. Useful for those who create systems with commands.
Description
Command Utils v0.3.0-beta
This add-on adds utility commands, and also allows you to create menus with commands. Useful for those who create systems with commands.
Slash Commands:
/explode - Create an explosion.
Usage:
/explode \<location x y z\> \[force: int\] \[breaks\_blocks: boolean\] \[causes\_fire: boolean\]The maximum force is 1000.
Example:
/explode ~~~ 2 true true- Create a force 2 fire explosion.
/spreadentities - Spreads entities across an area.
Usage:
/spreadentities \<targets: target\> \<location: x y z\> \<horizontal\_radius: int\> \[vertical\_radius: int\]Example:
/spreadentities @p ~~~ 3- Spreads the nearest player to a maximum distance of 3 blocks.
/setnametag - Defines the name of entities.
Usage:
/setnametag \<targets: target\> \<name\_tag: string\>Example:
/setnametag @p "Admin - Player"- Set the name of the nearest player to "Admin - Player".
/setselectedslot - Defines the selected slot in the player hotbar.
Usage:
/setselectedslot \<players: target\> \<slot\_index: int\>The slot index must be at least between 0 and 8.
Example:
/setselectedslot @p 4
/knockback - Applies a knockback to entities.
Usage:
/knockback \<targets: target\> \<force: x y z\> \[location: x y z\]The 'force' parameter is the knockback strength, while 'location' will cause the command to attempt to throw the player to that location.
Example:
/knockback @p 1 1.5 1 ^^1.5^99- Throw the nearest player forward.
/setonfire - Set fire to entities.
Usage:
/setonfire \<targets: target\> \<seconds: int\> \[use\_effects: boolean\]Example:
/setonfire @p 2- Set the player on fire for 2 seconds.
/extinguishfire - Extinguish the fires of entities.
Usage:
/extinguishfire \<targets: target\> \[use\_effects: boolean\]If the 'use_effects' parameter is false, no smoke or sound will be produced when extinguishing the fire.
Example:
/extinguishfire @p- Put out the fire of the nearest player.
/spawnparticle - Generates particles that only certain players can see.
Usage:
/spawnparticle \<players: target\> \<particle\_id: string\> \[location: x y z\]Example:
/spawnparticle @p minecraft:basic\_flame\_particle ^^1.5^1- Generates a fire particle one block ahead, but only the nearest player can see it.
/tame - Tame an entity.
Usage:
/tame \<targets: target\>Example:
/execute as @p at @s run tame @e\[type=wolf, r=3\]- Taming wolves near the nearest player.
/removeentity - Remove entities.
Usage:
/removeentity \<targets: target\>Removes entities without making a sound, producing smoke, or dropping loot. Players cannot be removed, so the command will kill them instead.
Example:
/removeentity @e\[type=slime\]- Remove slime.
/fillcluster - (beta) Fill in a cluster of blocks.
Usage:
/fillcluster \<location: x y z\> \<block: block\_type\>The command will begin searching for blocks that match the location block and replace them with the specified block.
Example:
/fillcluster ~~-1~ tnt
/sethealth - Define the health of entities.
Usage:
/sethealth \<targets: target\> \<health: int\>It is not possible to define a higher level of health than the maximum of entities.
Example:
/sethealth @a 10- Sets half the health of all players.
/leash - Leash entities into a single entity.
Usage:
/leash \<targets: target\> \<source: target\>The 'source' parameter must be a single entity.
If the target is too far away, it cannot be lassoed.
It's not possible to lasso blocks, so you must spawn the leash_knot to lasso it.
Example:
/leash @e\[type=cow\] @e\[type=leash\_knot, c=1\]- Lasso the cows with the leash knot.
/unleash - Remove the entity leash.
Usage:
/unleash \<targets: target\>Example:
/unleash @e\[type=cow\]- Remove the leash from the cows.