Server Command Help
We won't list the commands that come with vanilla Minecraft here. Only commands provided by mods are listed here. This list is not yet complete and is still being expanded.
Teleportation Related
- /tpa
---- Request to teleport to a player - /tpaccept ---- Accept a player's teleport request
- /tpahere
---- Request a player to teleport to you - /tpcancel ---- Cancel a teleport request
- /tpdeny ---- Deny a player's teleport request
In addition, you can also directly click [Accept] or [Deny] instead of using /tpaccept or /tpdeny.
Skin Related
- /skin set
---- Set skin - /skin set url ---- Set skin from a specified image URL
- /skin update ---- Update skin
- /skin clear ---- Clear your skin
You can actually just type /skin in the server to get the help page. So we haven't listed all commands here.
TPS Display Related
- /tabtps toggle actionbar ---- Toggle hotbar TPS display
- /tabtps toggle bossbar ---- Toggle boss bar TPS display
- /tabtps toggle tab ---- Toggle TAB list TPS display (you probably don't need this, since TAB list TPS display is already handled by Carpet Mod)
Sub-Server Related
- /server MainServer ---- Go to the main server (this is actually the default sub-server you join when entering the server)
- /server CreativeServer ---- Go to the creative server
Fake Player Related
The server uses the built-in fake player system from Carpet Mod. The following content is sourced from MC百科.
The /player command can control online players or fake players.
Spawning and Removing
/player <target> spawn
This command will spawn a fake player named <target> at the executor's location, regardless of whether a real player by that name exists, and it will maintain the same view angle and game mode as the executor.
If the spawned player name corresponds to a real player, that player will take over the fake player when they come online, restoring their original game mode.
/player <target> kill
This command will make the fake player leave the current world or server while keeping their inventory.
This command only works on fake players.
If the vanilla game rule keepInventory is set to false, killing a survival-mode fake player will cause it to drop all its items.
/player <target> shadow
This command will kick the target player from the world or server and spawn a fake player with the same name at the same location.
This command only works on real players currently playing.
Items
/player <target> drop [<options>]
/player <target> dropStack [<options>]
Fake players can pick up nearby items normally, and these two commands allow the player to throw items. The drop sub-command throws one item at a time, while the dropStack sub-command throws an entire stack at once.
These two commands can have optional [<options>] appended to specify what to throw or the throwing frequency. [<options>] can be:
- mainhand - Throw the item in the main hand.
- offhand - Throw the item in the off hand.
- An integer from 0~35 - Throw the item from the specified slot, starting from the first hotbar slot to the last inventory slot. Note: This command appears to directly index the player's inventory array, so slot numbers start from 0, meaning 0 corresponds to the first hotbar slot.
- all - Throw items from all slots. Note that using /player
<target>drop all will only make the player throw one of each item type. To throw ALL items from the inventory, use /player<target>dropStack all. - continuous - Make the player continuously throw items, similar to holding down the drop key.
- interval - Make the player throw items at a specified game tick interval. This parameter requires an additional argument specifying the number of game ticks between throws. For example, /player
<target>drop interval 20 will make the player throw an item once every second. - once - Make the player throw items once, useful for resetting continuous or interval dropping.
/player <target> hotbar <slot>
This command allows the player to switch hotbar slots. <slot> can be an integer from 1~9, corresponding to the first through ninth hotbar slots.
/player <target> swapHands
This command allows the player to swap items between main and off hand.
Riding
/player <target> mount [<anything>]
This command will make the player ride a nearby vehicle or directly rideable mob. Default rideable entities include minecarts, boats, horses, donkeys, mules, llamas, and trader llamas. Repeatedly executing this command can even make the fake player tame mobs.
You can add [<anything>] as a parameter, in which case the player will ride the nearest entity of any kind, including other players and non-living entities.
/player <target> dismount
This command will make the player dismount.
Movement
/player <target> look <direction>
This command will make the player look in a specified direction. <direction> can be:
- north, south, west, east, up, down;
- at: Make the player look at a specific position. This requires additional coordinates for the target position.
/player <target> move <direction>
This command will make the player continuously move in the specified direction. <direction> can be backward, forward, left, or right.
/player <target> jump [<option>]
This command will make the player jump once.
You can use the [<option>] parameter to specify the jumping mode. [<option>] can be:
- continuous: Make the player jump continuously.
- interval: Make the player jump once every specified number of game ticks. This parameter requires an additional argument specifying the number of game ticks between jumps.
- once: Make the player jump once, same as the default behavior.
/player <target> sneak
/player <target> unsneak
These two commands will make the player sneak and stop sneaking, respectively.
/player <target> sprint
/player <target> unsprint
These two commands will make the player sprint and stop sprinting, respectively.
/player <target> turn <option>
This command will rotate the player's view. <option> can be:
- back (turn around), left (turn 90° left), right (turn 90° right).
- Two floating-point numbers: Precisely control the rotation angle. The first number controls the pitch (positive = look down, negative = look up), and the second number controls the horizontal angle (positive = turn right, negative = turn left). For example, /player
<target>turn -45 90 will make the player's view tilt up 45° and turn right 90°.
Actions
/player <target> attack [<option>]
This command will make the player attack once or break a block once, equivalent to a left-click.
You can use the [<option>] parameter to specify the attack or break mode. [<option>] can be:
- continuous: Make the player continuously attack or break, equivalent to holding left-click.
- interval: Make the player attack or break once every specified number of game ticks, equivalent to pressing left-click at intervals. This parameter requires an additional argument specifying the number of game ticks between actions.
- once: Same as the default behavior.
/player <target> use [<option>]
This command will make the player use the item in hand once, equivalent to a right-click.
You can use the [<option>] parameter to specify the use mode. [<option>] can be:
- continuous: Make the player continuously use items, equivalent to holding right-click.
- interval: Make the player use an item once every specified number of game ticks, equivalent to pressing right-click at intervals. This parameter requires an additional argument specifying the number of game ticks between actions.
- once: Same as the default behavior.
/player <target> stop
This command will make the player stop attacking, using items, moving, and jumping.