CoFH Core adds various commands to the game.
All of CoFH Core’s commands must be prefixed with /cofh
and a space.
Command | Description | Permission level |
---|---|---|
version | Displays the installed version of CoFH Core. | -1 |
help | Displays information about CoFH Core’s commands. | -1 |
syntax | Displays the syntax of CoFH Core’s commands. | -1 |
friend | Allows management of a player’s friend list. | -1 |
hand | Displays information about held items. | 0 |
tps | Displays the server TPS (ticks per second). | 0 |
enchant | Applies enchantments to held items. | 2 |
killall | Removes all loaded entities of a certain type from the server. | 2 |
tpx | Advanced teleport command that allows teleporting to other dimensions. | 2 |
clearblocks | Removes blocks of certain types in an area. | 3 |
countblocks | Displays the amounts of blocks of certain types in an area. | 3 |
replaceblocks | Replaces blocks of certain types with another block type in an area. | 3 |
unloadchunk | Force-unloads the chunk that the command user is looking at. | 4 |
Displays the installed version of CoFH Core.
/cofh version
Displays information about a CoFH Core command.
/cofh help [command | page]
Displays the syntax of a CoFH Core command.
/cofh syntax [command | page]
Allows management of the command user’s friend list. Can be done by either opening the friend list GUI or by adding/removing friends directly.
/cofh friend {gui | list | add <player> | remove <player>}
Displays various kinds of information about a player’s held item. If the player is holding items in both their main hand and their off-hand, information is displayed about the item in their main hand.
/cofh hand [player] [infoType] [infoType] ...
The following types of information are supported:
name
/ generic
: the name of the item. Can be hovered on in chat to display
the item’s tooltip.id
: the internal name (ID) of the item.size
/ amount
/ count
: the amount of items in the stack, if applicable.metadata
/ damage
/ alt
: the metadata or damage value of the item.modifiers
: the modifiers of the item (e.g. Attack Damage).enchants
/ enchant
/ ench
: the enchantments on the item.action
/ use
: the action and use duration of the item, for items like bows
and food.lore
/ flavortext
: the display name and lore of the item, if set.oredict
/ orenames
/ orename
/ ores
/ ore
: the registered Ore
Dictionary names of the item.nbt
/ tag
/ stacktag
/ compoundtag
: the NBT data of the item stack.tostring
/ string
/ text
: a textual representation of the item stack
Java object.Displays the server’s TPS (ticks per second). This is commonly used to measure how smoothly the server is running, or if the server is suffering from heavy load. The optimal rate is 20 ticks per second.
/cofh tps {o | a | <dimension>}
If no arguments are supplied, the overall tick time and the tick time per
dimension will be shown. Using o
, only the overall tick time will be
displayed. Using a
, the amount of loaded worlds, chunks, entities and tile
entities will be shown. Using a dimension ID, the amount of loaded chunks,
entities and tile entities will be shown for that dimension.
Applies enchantments to held items. If the player is holding items in both their main hand and their off-hand, enchantments are applied to the item in their main hand.
/cofh enchant [player] <enchantmentID> [level]
Removes all loaded entities of a certain type from the server, excluding players.
/cofh killall [type]
*
to remove all
loaded entities.When the given type
is item
, only item
entities are removed, even if
there are other entities whose type contains item
.
An advanced teleportation command that allows teleporting to other dimensions.
/cofh tpx [player] {{<playerTo> | <dimension>} | <x> <y> <z> [dimension]}
If a player is teleported to a dimension without using coordinates, they will be teleported to the dimension’s spawn point.
Removes blocks of certain types in an area.
/cofh clearblocks {<player> <xRadius> <yRadius> <zRadius> | <xStart> <yStart> <zStart> <xEnd> <yEnd> <zEnd>} [block[#meta]] [block[#meta]] ...
minecraft:stone
for stone, and ThermalFoundation:Ore
for Thermal Foundation ore blocks. If the
block is from Minecraft itself, the minecraft:
prefix is optional.It is also possible to match blocks using more generic terms:
*fluid
matches any fluid blocks.*tree
matches any kind of wood or leaves.*repl
matches any block that can be replaced when placing blocks, like tall
grass.*stone
matches any block that has the rock
material.*sand
matches any block that has the sand
material.*dirt
matches any block that has the ground
, grass
, clay
, snow
,
craftedSnow
, ice
or packedIce
material.*plant
matches any block that has the plants
, vine
or leaves
material.*fire
matches any block that has the fire
or lava
material, and any
block that is currently on fire.Displays the amounts of blocks of certain types in an area. Syntax is very
similar to clearblocks
.
/cofh countblocks {<player> <xRadius> <yRadius> <zRadius> | <xStart> <yStart> <zStart> <xEnd> <yEnd> <zEnd>} [block[#meta]] [block[#meta]] ...
All arguments are the same as the ones clearblocks
has.
Replaces blocks of certain types with another block type in an area. Very
similar to clearblocks
.
/cofh replaceblocks {<player> <xRadius> <yRadius> <zRadius> | <xStart> <yStart> <zStart> <xEnd> <yEnd> <zEnd>} <replaceBlock[#meta]> [block[#meta]] [block[#meta]] ...
All other arguments are the same as the ones clearblocks
has.
Force-unloads the chunk that the command user is looking at.
/cofh unloadchunk