Grant Custom XP
The btc_profession_grant_xp action is the primary way to level up players in your custom professions (e.g., granting Mining XP when breaking a rock).
informação
Mechanic: This action automatically handles Level Up events. If the granted XP pushes a player over the threshold, it triggers the registered Level Up rewards for that profession.
Configuration
professionId — String
The unique ID of the profession (e.g., mining, fishing). Must match your Configuration.
amount
" default="0"> Experience points to add.
Supports math and placeholders.
Example Usage
# Give 500 XP to Blacksmithing
btc_profession_grant_xp:
professionId: "blacksmithing"
amount: 500
# Give XP based on a variable
btc_profession_grant_xp:
professionId: "combat"
amount: "%math_{variable_mob_level} * 10%"