Karn's Useful Command - Advanced Tools for Content Creators
This mod provides datapack and command developers with a powerful set of tools for fine-grained control over game mechanics that were previously unavailable through standard Minecraft commands.
Main Features
The mod removes restrictions on player NBT data manipulation, opening access to deep customization of various game aspects. This is an indispensable tool for those creating complex mechanics and systems in their projects.
Command Arsenal
/absorption (entity) get|add|set - control entity's absorption health or get its value
/fire (entity) get|add|set - control entity's burning time
/freeze (entity) get|add|set - control freezing effect from powder snow
/gravity (entity) on|off - toggle gravity for entity
/invulnerable (entity) on|off - toggle invulnerability
/motion (entity) add|set|forward - give motion to entity. "forward" option is calculated considering entity's rotation
/player_abilities fly|flyspeed|walkspeed|instantBreak|allowBuild - modify player's abilities. Instant break enables creative-like block destruction (may not work). Allow build permits block placement in adventure mode and prohibits in creative mode
/heal (entity) - heal entity
/food (entity) hunger|saturation add|get|set - control player's hunger and saturation
/fallfly - enable gliding flight mode (elytra flying). Recommended to use every tick for actual gliding
/cooldown (player) (item) (cooldown) - set item cooldown to prevent usage (e.g., shield, ender pearl, chorus fruit)
/motionupdate (player) - update player's motion value. Useful for /data merge command
/explosion (pos) (power) (exploder) (fire) (explosionType) - create explosion! Can omit exploder, fire, and explosionType parameters for brief usage
/cameraset (target) - spectate target without limitations. Can spectate in any game mode
/hotbar (target) (number) - set target's selected hotbar slot
/rotate (target) add|set (number) - change target's rotation without teleportation
/damagetilt (target) (number) - tilt target's camera as when taking damage
/ptime (target) (time) - set world time for target
/timeflow (target) rate|freeze (number|boolean) - set tick rate for target