Thanks to visit codestin.com
Credit goes to github.com

Skip to content

pseudosmp/PlayerBiomes

Repository files navigation

PlayerBiomes

SpigotMC DownloadsModrinth Downloads

  • Use /whatbiome to find what biome you are in
  • Send player-specific translations of biome names to players
  • Get the player's biome name formatted in various ways using PlaceholderAPI placeholders
  • Gives you the exact same name that the client sees which means it supports custom biomes (datapacks like Terralith, Incendium, etc.)

image

Commands

/playerbiomes reload (alias /pb reload):

  Permission: playerbiomes.command.reload (false by default)
  Description: Reloads the configuration of PlayerBiomes, and refreshes the translation cache.

/whatbiome (alias /whereami):

  Permission: playerbiomes.command.whatbiome (true by default)
  Description: Displays the name of the current biome of the player running the command.


image

Configuration: (config.yml)

Options are described in comments beside them. Here is the latest config.yml

Inside the plugins/PlayerBiomes/ folder, a folder named lang can be created and in it, can be multiple json files named <locale>.json that contain translations of biome names for that locale. You can either extract these from the Minecraft Java client .jar file , or download these on the fly from a website that hosts those files. Downloading is disabled by default. Read the config for more info.

Placeholders

image

[Fabric Mod Caxton used on Client to render the Tamil font (Resource Pack Used). Check it out!]

%playerbiomes_biome_raw%:

  Gives the complete namespaced ID of the biome

  Examples:
    "minecraft:jungle"
    "terralith:moonlight_grove"
    "terralith:caves/deep_caves"
    "incendium:weeping_valley"

%playerbiomes_biome_name% and %playerbiomes_biome_name_english%:

  Gives the Capitalized name of the biome (Removes the internal path of biomes from the Namespaced ID)

  Examples:
    minecraft:jungle becomes "Jungle"
    terralith:moonlight_grove becomes "Moonlight Grove"
    terralith:caves/deep_caves becomes "Deep Caves"
    incendium:weeping_valley becomes "Weeping Valley"

%playerbiomes_biome_namespace%:

  Gives the Capitalized nameSPACE of the biome

  Examples:
    minecraft:jungle becomes "Minecraft"
    terralith:moonlight_grove becomes "Terralith"
    terralith:caves/deep_caves becomes "Terralith"
    incendium:weeping_valley becomes "Incendium".

%playerbiomes_biome_formatted% and %playerbiomes_biome_formatted_english%:

  Gives the full namespaced ID of the biome in the format: :

  Examples:
    minecraft:jungle becomes "Minecraft: Jungle"
    terralith:moonlight_grove becomes "Terralith: Moonlight Grove"
    terralith:caves/deep_caves becomes "Terralith: Deep Caves"
    incendium:weeping_valley becomes "Incendium: Weeping Valley"

Placeholders ending with _english use the old method that gets the name from the namespaced key directly using string manipulation.


Support and Feature Requests in SpigotMC Resource Discussion Tab / Discord only! Do NOT use the issues tab for this.

Thanks @mfnalex and @RoughlyUnderscore for helping with the initial version of this plugin! Thanks to @si6gma (Discord) for help with string manipulation (< 6.0.0)!

The plugin utilizes the JeffLib library for getting the biome namespaced key for game versions older than 1.19.3.

Building:

  1. Clone the project (the version/branch of your choice)
  2. Build using mvn install

bStats - PlayerBiomes

image

About

Find player's biome using a PlaceholderAPI placeholder

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages