![Pufferfish's Skills [Fabric & Forge & NeoForge]](https://media.forgecdn.net/avatars/thumbnails/786/631/256/256/638138098303113835.png)
1.21 "take_damage" experience source doesn't work
Sokario opened this issue ยท 2 comments
I was testing your Take_Damage example on your wiki copy pasting it in game with the lastest mod version on 1.21 Minecraft.
However, players doesn't gain xp when taking damage.
Here is the experience.json file:
{
"experience_per_level": {
"type": "expression",
"data": {
"expression": "min(level + 10, 400)"
}
},
"sources": [
{
"type": "puffish_skills:take_damage",
"data": {
"variables": {
"damage": {
"operations": [
{
"type": "get_taken_damage"
}
]
}
},
"experience": [
{
"expression": "damage"
}
]
}
}
]
}