pufmat / skillsmod

A Minecraft mod that adds a fully configurable skill system to the game.
Other
36 stars 10 forks source link

issue with take dmg #37

Open jopistok opened 1 year ago

jopistok commented 1 year ago

[03:22:10] [Server thread/ERROR]: [puffish_skills] Configuration could not be loaded: Could not read file experience.json.

experience.json

{ "enabled": true, "experience_per_level": { "type": "values", "data": { "values": [ 100, 125, 150, 175, 200, 225, 250, 275, 300, 325, 350, 375, 400, 425, 450, 475, 500, 525, 550, 575, 600, 625, 650, 675, 700, 725 ] } }, "sources": [ { "type": "puffish_skills:take_damage", "data": { "parameters": { "damage": { "type": "minecraft:damage", } }, "experience": [ { "expression": "damage * 0.25" } ] } } ] }

I just copied code from page about take_damage, and it doesn't work. I can't figure out, where is mistake.

jopistok commented 1 year ago

vesion mc: 1.18.2 fabric

pufmat commented 1 year ago

Are you sure you copied it correctly? Instead of "type": "minecraft:damage" it should be "type": "damage", also make sure to remove trailing comma on this line.