frengor / UltimateAdvancementAPI

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

Feature Request: Allow negative advancement coordinates #66

Closed GavvyDizzle closed 1 year ago

GavvyDizzle commented 1 year 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 1 year 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.