[1.12] Modifiying abilities doesn't seem to work
Pihrra opened this issue ยท 4 comments
I tried to modify the fish morphs (from Just a Few Fish) to allow them to breathe under water.
I copy/pasted the default squid abilities. But it doesn't seem to work.
Here is my morphs.json file : https://gist.github.com/Pihrra/f57bf7a2997a502f2aa520a3c3524b66
Changing the health seems to work but the rest not.
I'm using the latest 1.12 version of the mod
Edit: Also just noticed after drowning as a fish testing this out it was stuck in the dying animation and didn't really die at all. I tried demorphing but same happened to the human form. I had to /kill to resolve the issue. Perhaps I should open another issue ?
@Pihrra it looks like you you have malformed JSON. Remove all trailing ,
try checking this code against JSON validator online.
Yeah, open a new issue, please :)
I can't believe it was that simple. Sorry I should have thought about that myself.
I'll do the the new issue tomorrow when I'll have more time to document it properly and check if can reproduce it. Thanks for the help.
@Pihrra it's totally ok, no worries! :)
I probably should add this warning to the Wiki, but I'm too busy with my other mods and YT channel, so the blame is on me ๐
Just so you know I wasn't able to reproduce the bug. Maybe it had something to do with my broken JSON config ? I tried with the one I provided earlier in this thread and it did not trigger it but I was constantly changing the file to try and make it work so I don't know in what state it was when it happened.
If I ever encounter this again I'll open an issue but as of now everything seems to work just fine.