Commands - gnembon/fabric-carpet GitHub Wiki
This is the commands page explaining the commands in carpet mod. Here all commands are listed and their functions are described.
Manages Carpet rules and settings.
Displays the current version of carpet mod, the current non-vanilla rules and lists the categories in chat
Lists the default configuration for this world stored in carpet.conf
Lists all available carpet rules
Lists all available carpet rules in the specified category
Removes the custom default configuration for the specified carpet rule on that world and restores it back to the vanilla default
Sets the default value for the specified carpet rule to the given value
Sets the specified carpet rule to the specified value. This will be restored to the default configuration for this world stored in carpet.conf if not done with setDefault
As of Carpet 1.4.14 for 1.16, the camera mode commands are no longer built into Carpet. That was made in favour of the vanilla gamemode switcher (F3+F4). If you still want a camera mode for survival servers, check the cam Scarpet app (with install instructions), which is the same but with new "anti-cheat" functions and more features, like keeping position and effects.
Below is the old usage, for Carpet versions below 1.4.14
Sets the player in [C]amera mode (Spectator with night vision and conduit power)
Sets the player back in [S]urvival mode (taking back night vision and conduit power)
Useful to calculate distances between two points. Comes with an accompanying carpet: the brown one.
Returns the Spherical, Cylindrical and Manhattan distance between the specified coordinates. If to
is not specified, uses current executor position
Remembers starting coordinate for the player. If used without coordinates, current executor position is used.
Prints distances to the target position assuming starting position remembered from from
commmand. If used without coordinates, current executor position is used.
Builds simple but painful to build shapes with blocks.
NOTE: Since the last update of this page, many new shapes have been added. Check auto-complete in-game. (TODO: update)
Makes a sphere with the specified radius around the specified center coordinate out of the specified block
Makes a sphere with the specified radius around the specified center coordinate out of the specified block, but only the specified block/blocks that have the specified tag get replaced
Gives useful information about a block. It comes with an accompanying carpet: gray
Gets the info for the block in the specified coordinate
Gets the specific info for the block in the specified coordinate defined in grep
The following usages have been removed from Carpet a long time ago, and no longer return information. They are still here to document older carpet versions.
Gets the info for the block in the specified selector
Gets the specific info for the entity in the specified selector defined in grep
Toggles various Carpet loggers: Information shown in various UI positions
Lists the logging options in chat
Unsubscribes the player from all logs
Subscribes the player to the log of the specified counter color and shows it in their player list menu (TAB by default)
Unsubscribes the player from the counter log
Logs falling blocks history of positions per tick during their lifetime (at the end).
Unsubscibes the player from the fallingBlocks
log.
Subscribes the player to the mobcap log of the specified dimension or the dimension they are in if dynamic is selected. This shows the mobcaps in their player list menu (TAB by default)
Unsubscribes the player from the mobcaps log
Subscribes the player to the packet log and shows incoming and outgoing packets in their player list menu (TAB by default)
Unsubscibes the player from the packets log
This wiki is incomplete. You can help by expanding it.
Unsubscibes the player from the pathfinding log
Logs projectiles history of positions per tick during their lifetime (at the end).
Unsubscibes the player from the projectiles log
When tnt goes boom, tells you where, when, how, why, who and what
Unsubscibes the player from the tnt log
Subscriber the player to the TPS log and shows TPS (Ticks Per Second) and MSPT (MilliSeconds Per Tick) in the player list menu (TAB by default)
Gives various information about a perimeter around a coordinate. Comes with two accompanying carpets: black and pink.
Returns the potential spawning spaces in 128-block radius around the specified coordinate
Returns the potential spawning spaces in 128-block radius around the specified coordinate and also the potential spawning spaces for the specified mob
Gives you various ways to change the way time passes in the game
By default monitors the game for 5 sec/ 100 ticks. Returns the average amount of time per tick spent on various tasks by the game. These include:
- Network
- Autosave
- Off-Tick Tasks
- Mob Spawning
- Chunk Loading
- Chunk Unloading
- Block Updates
- Entity Ticks
- Block Entity Ticks
- Villages & Raids
- Environment The total time per tick should stay below 50ms to keep the world from lagging.
Works like the health command but returns the 10 entities for count and CPU time.
This will stop the processing of entities, world clocks, block updates, and redstone while still letting the player move freely. Typing /tick freeze
again will resume processing of everything.
While frozen you can use this command to advance the world by the given number of ticks. Note: these are game ticks, there are 2 game ticks for every redstone tick. So /tick step 20
would advance the game 1 second because there are 20 game ticks per second even though there are only 10 redstone ticks per second.
Changes the rate at which things happen in the game. The default value is 20.0. Higher values make the game run faster, while lower values make it run slower. You may want to enable smoothClientAnimations
to slow the client side animations as well.
Lets the game run as fast as it can for a set amount of time. 72000 ticks is 1 hour of game time. You can cancel the current warp by typeing /tick warp 0
Makes minecraft work like the game of the same name. Time only advances when you move.
Create fake players that act almost exactly like real players.
Spawn a player with the given name at your current location in your current game mode
The player performs the left click equivalent action
The player performs the right click equivalent action
The player rides a near by thing which is rideable
The player gets off whatever it is currently riding
The player drops the item they are currently holding
The player looks in the given direction
The player moves in the given direction
This will replace you with a fake player on the server. It will continue to perform any scheduled actions that you have set. This only works on servers ( not single player)
The player stops moving and cancels all actions the player is doing
The player swaps the items in their main and off hands
Display information about the hidden state of entities.
Note: mobs display data in the Custom Mob Name area above a mob's head. Enabling this command will overwrite the custom name of any affected mobs.
Villagers display:
- Whether they have a bed
- Amount of food in their inventory
- Breeding cooldown.
Interact the villager with the following items while this command is enabled to display additional information:
- Emerald: Green particles will path to the villager's claimed bed.
- Rotten Flesh: Clears out the villager's food supply.
- Bed: Will mark all beds the villager can recognize as either Free (white particles), Occupied (green particles), or Inaccessible (barrier symbol).
Villagers display:
- Recently Slept status
- Recently Worked status
- Panic status
- Iron Golem Spawning cooldown.
- A barrier symbol each time they make an iron golem spawn attempt.
TODO: /counter, /profile, /script, Finish /player
TODO: Discuss whether this should stay here or be moved there
Returns the latency of the player to the server