McJtyMods / InControl

Be In Control of Mob Spawns and others
MIT License
43 stars 16 forks source link

JSON error when using the new "hasstructure" boolean #427

Closed lozadajobd closed 1 month ago

lozadajobd commented 1 month ago

I am currently trying to use In Control! To make mobs only spawn underground. However, I would also like to make mobs spawn in structures that are above ground like Woodland Mansions and Pillager Outposts.

To accomplish this, I tried using the "hasstructure" boolean like this in spawn.json: image

However, this always results in this error: image

I'm not experienced in java or javascript, so I cannot comment on what this means. However, it seems that I may be using an incompatible data type in the "hasstructure" condition. However, the wiki clearly states that it is a boolean, and I have tried using an array list of structure tags only to get the same error.

I could also confirm that "hasstructure" is the source of the issue because upon deleting it from the code, the config is able to compile without errors.

Attached here is the full spawn.json file for reference spawn.json

McJty commented 1 month ago

Sorry for the slow response but should be fixed in the next release