In Control!

In Control!

72M Downloads

Problem defining Areas with negative coordinate values

Closed this issue · 2 comments

commented

I’m having trouble defining areas in the areas.json file for the inControl mod in Minecraft. When an area is entirely defined with negative coordinates, the system doesn’t seem to detect it properly. I have two areas set up in the JSON file:

An area named "spn" with coordinates in the negative quadrant.
An area named "test" with coordinates in the positive quadrant.
When I run the incontrol area command while the player is within the "test" area, the system detects it correctly and returns the area’s name. However, when I place the player in the "spn" area, the system doesn’t detect the area, and the command doesn’t return its name.

[ { "dimension": "minecraft:overworld", "name": "spn", "type": "box", "x": -684, "y": 103, "z": 606, "dimx": -649, "dimy": 94, "dimz": 597 }, { "dimension": "minecraft:overworld", "name": "test", "type": "box", "x": 0, "y": 80, "z": 0, "dimx": 90, "dimy": 100, "dimz": 90 } ]

commented

A dimension can never be negative. i.e. what do you expect to happen with "dimx" equal to -649? The dim parameters are the size of the area. A size cannot be negative

commented

Touche… 😅
but I suggest to clarify it in the wiki for people like me thinking second coordinate isn’t a size but the second opposite corner of te box area.

thanks for your help ❤️