PolyhedralDev / Terra

Voxel world generation modding platform
MIT License
638 stars 83 forks source link

[Feature] Add PlaceholderAPI support for common info sharing (without api usage) #423

Open TheGam1ngWizard opened 10 months ago

TheGam1ngWizard commented 10 months ago

Pre-Request Checklist

Feature Description

Provide placeholderAPI support for common tasks such as determining biome player is in.

What Problem Does This Solve?

3rd party plugin makers can develop against placeholderAPI for triggers/effects, and having the biome be a placeholderapi tag makes it so those developers can use preexisting logic (does placerholder = X) to also detect specific biomes or other biome details (such as temperature)

A Solution You'd Like

Add placeholderAPI tags for biomes to use/that pulls information from biomes, such as name, temperature, and other key details.

Alternative Solutions

  1. Devs could develop against the API (time/effort - and documentation is lacking)
  2. Devs could develop against NMS

Additonal Context

https://www.spigotmc.org/resources/placeholderapi.6245/ https://discord.com/channels/715448651786485780/1166164677944934462

AidenJules commented 10 months ago

One example here is pyro fishing, the placeholder below would be a good example that would help with many other plugins, it leaves compatibility very open and is not just limited to pyro fishing. %players_custom_biome_name% = MY_CUSTOM_BIOME