Commands - TSenter/CommandMobs GitHub Wiki
This page documents the available commands including their syntax and use.
This is the most basic and also most essential command inside CommandMobs. The new command creates a new CommandMob.
/cm new (type)
Parameter | Description | Options | Example |
---|---|---|---|
type |
The type of mob to spawn | See mob types | /cm new Sheep |
Give yourself (or another player) a Customizer.
/cm customizer (player)
Parameter | Description | Options | Example |
---|---|---|---|
player |
The player receiving the Customizer | N/A | /cm customizer MisterIosa |
Warning: the mod
command is very powerful, and as such can have negative consequences if used incorrectly.
The mod
command is meant to be used only by CommandMobs, should you need to change the characteristics of one. Any trait, whether a customization or property, can be modified via this command.
/cm mod [uuid] [path] [value]
The mod
command functions by the following premise: a CommandMob is described by a collection of keys and values. A key corresponds to a certain value. As the mod
command is intended to be used solely by CommandMobs, the uuid
parameter should be filled through the %u
. It is possible, albeit discouraged, to manually enter the 36-character UUID of a mob, although this leaves room for error.
The behavior of CommandMobs are defined by certain properties. Refer to the table below for a detailed list of all properties, as well as all valid values.
Path | Description | Values | Example |
---|---|---|---|
properties.type |
Type of mob | See Mob Type | /cm mod %u properties.type OCELOT |
properties.name |
Display name of mob | See Renaming Tool | /cm mod %u properties.name %s&7Buy&8 1 Iron Sword&7 for &8$15 |
properties.price |
Price of a mob | See Price | /cm mod %u properties.price 15 |
properties.kill |
The killability of a mob | true false |
/cm mod %u properties.kill true |
properties.move |
See Movement | true false |
/cm mod %u properties.move true |
As of v2.2.0, commands and messages cannot be modified via command.
The appearance of CommandMobs are defined by certain properties. Refer to the table below for a detailed list of all customizations, as well as all valid values.
Path | Description | Values | Example |
---|---|---|---|
customs.baby |
See Baby | true false |
/cm mod %u customs.baby true |
customs.cat |
See Cat Fur | WILD TUXEDO ORANGE_TABBY SIAMESE |
/cm mod %u customs.cat TUXEDO |
customs.horseColor |
See Horse Coats | WHITE CREAMY CHESTNUT BROWN BLACK GRAY DARK_BROWN |
/cm mod %u customs.horseColor CREAMY |
customs.horseStyle |
See Horse Styles | NONE WHITE WHITEFIELD WHITE_DOTS BLACK_DOTS |
/cm mod %u customs.horseStyle WHITE_DOTS |
customs.sheep |
See Sheep Wool | WHITE ORANGE MAGENTA LIGHT_BLUE YELLOW LIME PINK GRAY SILVER CYAN PURPLE BLUE BROWN GREEN RED BLACK |
/cm mod %u customs.sheep RED |
customs.profession |
See Villager Professions | FARMER LIBRARIAN PRIEST BLACKSMITH BUTCHER NITWIT |
/cm mod %u customs.profession NITWIT |