promotional bannermobile promotional banner

Command Utils

Adds utility commands, and also allows you to create menus with commands. Useful for those who create systems with commands.
1000281544.png

1000281544.png

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.

The Command Utils Team

profile avatar
  • 1
    Followers
  • 1
    Projects
  • 352
    Downloads