Placeholders - TheNewEconomy/PhantomWorlds GitHub Wiki

🌍 PhantomWorlds Placeholders

This page documents the available %pworlds_*% placeholders provided by PhantomWorlds. These placeholders provide context-sensitive information about the player’s current world.


🧩 Available Placeholders

Placeholder Description Example Output
%pworlds_name% Returns the name of the player’s current world. world, spawn_nether
%pworlds_time% Returns the current time (in ticks) of the player’s world. 13250
%pworlds_period% Returns the descriptive time period of the world’s day. sunset, night
%pworlds_environment% Returns the environment type of the world. NORMAL, NETHER, THE_END

🕒 Time Period Tick Ranges

Used by the %pworlds_period% placeholder.

Period Tick Range Description
day 1000–5999 Morning to late morning
noon 6000–11999 Noon to early afternoon
sunset 12000–12999 Evening (sun beginning to set)
night 13000–17999 Early night to late night
midnight 18000–22999 Midnight to pre-dawn
sunrise 23000–23999 or 0–999 Sunrise to early morning

📌 Notes

  • Time is based on Minecraft world ticks. A full Minecraft day is 24000 ticks.
  • %pworlds_period% uses a custom naming system for easier readability compared to raw ticks.
  • %pworlds_environment% returns the enum name of the world’s environment:
    • NORMAL = Overworld
    • NETHER = Nether
    • THE_END = End