Dragon Mounts: Legacy

Dragon Mounts: Legacy

20M Downloads

I can't assign multiple attributes to dragon breeds

CraftingC opened this issue ยท 4 comments

commented

I can't assign multiple attributes to dragon breeds in the .json files, because if I use a comma "," it doesn't change any attributes and If I use nothing to seperate them like in the example addon it refuses to load. I don't really hve much experience coding and am confused, why nothing is working. I would appreciate, if someone told me what I'm doing wrong.
Thanks in advance!

Example comma:
"attributes": {
"minecraft:generic.armor": 8.0,
"minecraft:generic.movement_speed": 0.7
}

Example nothing to seperate:
Screenshot_20240415_085153_Firefox

commented

Yeah.. the wiki there is meant to have comma seperated values.

"attributes": {
  "minecraft:generic.armor": 8.0,
  "minecraft:generic.movement_speed : 0.7
}

Is the correct way of defining it. The last entry DOES NOT have a comma, as per json syntax. Remember if you define more features after attributes you have a comma after the ending curly brace }

If you send here your whole json I'd be happy to look at it and help!

commented
commented

I think I found the Problem
I used generic.movement.speed
instead of generic.movement_speed
It's supposed to have and underscore

commented

that indeed looks to be the case. Glad it's all figured out!

Happy flying!