Commander Lib - Minecraft Command Library
Commander Lib is a convenient datapack library that greatly simplifies working with various entity states and movements in Minecraft.
Core Features
Using the tag system, you can easily track movement states, determine entity gaze direction, and apply various effects. Everything works on tags and scores, making integration extremely straightforward.
Tag System
Vertical Movement Control
commanderlib.up(1-20) - Applies upward vertical impulse with intensity corresponding to the number in the tag (from 1 to 20).
Fall Damage Protection
commander_lib.no_fall_perm - Permanent protection from fall damage while the tag is active
commander_lib.no_fall - One-time protection from fall damage (tag automatically removed when touching ground)
Entity Glow
commander_lib.(color)_glow - Applies colored glow to entity with color selection from:
- Red
- Aqua
- Black
- Blue
- Gold
- Gray
- Green
- Light purple
- Yellow
- Dark aqua
- Dark blue
- Dark gray
- Dark green
- Dark purple
- Dark red
Automatic State Tracking
commander_lib.sneaking - Automatically added/removed when player is sneaking/not sneaking
commander_lib.sprinting - Automatically added/removed when player is sprinting/not sprinting
commander_lib.swimming - Automatically added/removed when player is swimming/not swimming
commander_lib.jumped - Automatically added/removed when player jumps
Gaze Direction Detection
commanderlib.facing(direction) - Automatically shows entity gaze direction with options:
- North
- South
- East
- West
- North-east
- North-west
- South-east
- South-west
- Up
- Down
Score Tracking
commander_lib.sneaking_time - Tracks number of ticks the player has been sneaking
commander_lib.sprinting_time - Tracks number of ticks the player has been sprinting
commander_lib.swimming_time - Tracks number of ticks the player has been swimming
Ease of Use
Commander Lib library is perfect for map creators and mini-game developers, offering an intuitive way to control entity movements and states without needing to write complex command blocks.