Command System - Quick Reference Guide
🔧 Command Syntax Rules
✅ DO:
- Write commands without the
/ prefix
- Use
%player% placeholder for player names
- Test commands manually first (with
/ in chat)
- Use multiple commands for complex setups
❌ DON'T:
- Include
/ at the start of commands
- Hardcode player names
- Forget to test commands manually first
- Use client-side only commands
📝 Quick Examples
Basic Size Modification (Pehkui)
[classes.tank]
commands = ["scale set %player% 1.5"]
Multiple Commands
[classes.warrior]
commands = [
"effect give %player% minecraft:strength infinite 0 true",
"attribute %player% minecraft:generic.attack_damage base set 3.0"
]
Complex Setup
[custom_classes.custom_0]
id = "assassin"
commands = [
"scale set %player% 0.75",
"effect give %player% minecraft:speed infinite 1 true",
"attribute %player% minecraft:generic.movement_speed base set 0.12"
]
-
Size Mods (Pehkui, Chiseled Me, etc.)
# Make bigger
commands = ["scale set %player% 2.0"]
# Make smaller
commands = ["scale set %player% 0.5"]
Permanent Effects
# No particle effects (true at end)
commands = ["effect give %player% minecraft:night_vision infinite 0 true"]
# With particles (false at end)
commands = ["effect give %player% minecraft:speed infinite 1 false"]
Attributes
# Set base value
commands = ["attribute %player% minecraft:generic.max_health base set 30.0"]
# Step height (climb blocks)
commands = ["attribute %player% minecraft:generic.step_height base set 1.5"]
# Knockback resistance
commands = ["attribute %player% minecraft:generic.knockback_resistance base set 0.5"]
Teleportation
# Teleport + set spawn
commands = [
"tp %player% 100 64 200",
"spawnpoint %player% 100 64 200"
]
Teams
# Join a team
commands = ["team join warriors %player%"]
Items
# Give items
commands = [
"give %player% minecraft:diamond_sword 1",
"give %player% minecraft:golden_apple 5"
]
Titles
# Show title
commands = [
"title %player% title {\"text\":\"WARRIOR\",\"color\":\"gold\",\"bold\":true}",
"title %player% subtitle {\"text\":\"Strength and Honor\",\"color\":\"yellow\"}"
]
-
Order Matters: Commands execute in sequence
commands = [
"tp %player% 0 100 0", # Teleport first
"scale set %player% 2.0" # Then scale
]
-
📚 Useful Commands Reference
Vanilla Minecraft
effect give %player% <effect> <duration> <amplifier> <hideParticles>
attribute %player% <attribute> base set <value>
tp %player% <x> <y> <z>
spawnpoint %player% <x> <y> <z>
give %player% <item> <count>
title %player% title <json>
playsound <sound> master %player% ~ ~ ~ <volume> <pitch>
Common Attributes
minecraft:generic.max_health - Health (default: 20.0)
minecraft:generic.movement_speed - Speed (default: 0.1)
minecraft:generic.attack_damage - Damage (default: 1.0)
minecraft:generic.knockback_resistance - Resistance (0.0-1.0)
minecraft:generic.step_height - Block climb (default: 0.6)
Popular Mods
- Pehkui:
scale set %player% <value>
- Origins:
origin set %player% <origin>
- Vampirism:
vampirism level %player% <level>
- (Check your mod's docs for exact commands)
Remember: No / prefix in config, but use it when testing manually!