Back to 9Minecraft
Wiki 9Minecraft Wiki 9Minecraft
Class Enhancement Wiki › Guides › Modify Player Stats for a Custom Class

Modify Player Stats for a Custom Class

Access the Configuration

Open class_enhancement.toml and navigate to your chosen custom class in the [custom_classes] section.

Use Attribute Commands

Add commands to the commands list that modify player attributes. Use the attribute command format to change base stats:

`

attribute %player% minecraft:generic.max_health base set [value]

attribute %player% minecraft:generic.movement_speed base set [value]

attribute %player% minecraft:generic.attack_damage base set [value]

attribute %player% minecraft:generic.jump_strength base set [value]

`

Replace [value] with your desired number.

Apply Potion Effects

For passive bonuses, use:

`

effect give %player% minecraft:effect_name infinite [level] false

`

Save and Verify

Save your changes and restart. When you select the class, the stat modifications apply instantly. Check your attributes screen or test movement and damage to confirm changes took effect.