Adapters for mob mods
xorinzor opened this issue ยท 3 comments
Every time that I try to define custom WaterCreatures in my biome config, it gets reset to []
with the following errors in my log:
[18:24:31] [Server thread/INFO]: Creating world "DeepSea"
[18:24:31] [Server thread/INFO]: Loading configs for world "DeepSea"..
[18:24:31] [Server thread/ERROR]: The value "[{"mob": "mocreatures:salmon", "weight": 30, "min": 1, "max": 3},{"mob": "mocreatures:mantaray", "weight": 25, "min": 1, "max": 2},{"mob": "mocreatures:angler", "weight": 25, "min": 1, "max": 2},{"mob": "mocreatures:goldfish", "weight": 28, "min": 2, "max": 4},{"mob": "mocreatures:cod", "weight": 30, "min": 2, "max": 3},{"mob": "mocreatures:angelfish", "weight": 25, "min": 1, "max": 3},{"mob": "mocreatures:dolphin", "weight": 23, "min": 2, "max": 4},{"mob": "mocreatures:jellyfish", "weight": 25, "min": 1, "max": 3},{"mob": "mocreatures:anchovy", "weight": 29, "min": 3, "max": 5},{"mob": "mocreatures:fishy", "weight": 30, "min": 3, "max": 4},{"mob": "mocreatures:stingray", "weight": 23, "min": 1, "max": 2},{"mob": "mocreatures:bass", "weight": 30, "min": 2, "max": 4},{"mob": "mocreatures:hippotang", "weight": 23, "min": 1, "max": 2},{"mob": "mocreatures:manderin", "weight": 26, "min": 4, "max": 4},{"mob": "mocreatures:shark", "weight": 20, "min": 1, "max": 2},{"mob": "mocreatures:piranha", "weight": 20, "min": 2, "max": 3}]" is not valid for the setting SpawnWaterCreatures in Deep Ocean on line 461: Invalid JSON structure near "mob": "mocreatures:salmon"
[18:24:31] [Server thread/ERROR]: The value "[{"mob": "mocreatures:salmon", "weight": 30, "min": 1, "max": 3},{"mob": "mocreatures:mantaray", "weight": 25, "min": 1, "max": 2},{"mob": "mocreatures:angler", "weight": 25, "min": 1, "max": 2},{"mob": "mocreatures:goldfish", "weight": 28, "min": 2, "max": 4},{"mob": "mocreatures:cod", "weight": 30, "min": 2, "max": 3},{"mob": "mocreatures:angelfish", "weight": 25, "min": 1, "max": 3},{"mob": "mocreatures:dolphin", "weight": 23, "min": 2, "max": 4},{"mob": "mocreatures:jellyfish", "weight": 25, "min": 1, "max": 3},{"mob": "mocreatures:anchovy", "weight": 29, "min": 3, "max": 5},{"mob": "mocreatures:fishy", "weight": 30, "min": 3, "max": 4},{"mob": "mocreatures:stingray", "weight": 23, "min": 1, "max": 2},{"mob": "mocreatures:bass", "weight": 30, "min": 2, "max": 4},{"mob": "mocreatures:hippotang", "weight": 23, "min": 1, "max": 2},{"mob": "mocreatures:manderin", "weight": 26, "min": 4, "max": 4},{"mob": "mocreatures:shark", "weight": 20, "min": 1, "max": 2},{"mob": "mocreatures:piranha", "weight": 20, "min": 2, "max": 3}]" is not valid for the setting SpawnWaterCreatures in FrozenOcean on line 461: Invalid JSON structure near "mob": "mocreatures:salmon"
[18:24:31] [Server thread/ERROR]: The value "[{"mob": "mocreatures:salmon", "weight": 30, "min": 1, "max": 3},{"mob": "mocreatures:mantaray", "weight": 25, "min": 1, "max": 2},{"mob": "mocreatures:angler", "weight": 25, "min": 1, "max": 2},{"mob": "mocreatures:goldfish", "weight": 28, "min": 2, "max": 4},{"mob": "mocreatures:cod", "weight": 30, "min": 2, "max": 3},{"mob": "mocreatures:angelfish", "weight": 25, "min": 1, "max": 3},{"mob": "mocreatures:dolphin", "weight": 23, "min": 2, "max": 4},{"mob": "mocreatures:jellyfish", "weight": 25, "min": 1, "max": 3},{"mob": "mocreatures:anchovy", "weight": 29, "min": 3, "max": 5},{"mob": "mocreatures:fishy", "weight": 30, "min": 3, "max": 4},{"mob": "mocreatures:stingray", "weight": 23, "min": 1, "max": 2},{"mob": "mocreatures:bass", "weight": 30, "min": 2, "max": 4},{"mob": "mocreatures:hippotang", "weight": 23, "min": 1, "max": 2},{"mob": "mocreatures:manderin", "weight": 26, "min": 4, "max": 4},{"mob": "mocreatures:shark", "weight": 20, "min": 1, "max": 2},{"mob": "mocreatures:piranha", "weight": 20, "min": 2, "max": 3}]" is not valid for the setting SpawnWaterCreatures in Ocean on line 461: Invalid JSON structure near "mob": "mocreatures:salmon"
Parsing this with a JSON lint tool validates it's valid JSON, so why is this not working? Also tried single quotes, but that didn't change the error.
Hey xorinzor,
I took a look at mob spawning a little while back because there were multiple issues spawning mobs from other mods and spawning mobs underwater. Unfortunately I could not solve these issues since most mob mods use unique spawning mechanics and circumvent the default MC mob spawning mechanics, OTG basically only edits the mob spawning lists of biomes, these are used by the MC mob spawning mechanics. This means that mob spawning with other mods' mobs is quirky and unpredictable at the moment, you'll just have to try to see what works and what doesn't.
In order to fix this properly I'll have to make code for each specific mob spawning mod. At the moment I'm working on some other big improvements though so I don't know when I'll be able to fix this.
See also #109
Will continue with #301