frengor / UltimateAdvancementAPI

A powerful API to create custom advancements for your Minecraft server.
https://modrinth.com/plugin/ultimateadvancementapi
GNU General Public License v3.0
74 stars 5 forks source link

Feature Request: Allow negative advancement coordinates #66

Closed GavvyDizzle closed 3 months ago

GavvyDizzle commented 4 months ago

When designing advancement pages, I find it easier to center my advancements on the Y axis and place other advancements above/below that line.

The API doesn't allow negative coordinates, but there should be a relatively easy solution. For an advancement tab you know all of the coordinates when registering them. Just add the minX and minY values (if negative) to all advancements to keep them positive.

EscanorTargaryen commented 4 months ago

Hi! There is already a solution for negative co-ordinates. As cited in the wiki AdvancementDisplay:

UltimateAdvancementAPI supports negative coordinates since 2.1.0 through the CoordAdapter class.

Where you can find an example about it.