Default Placeholders
Placeholders dynamically resolve contextual data (such as player statistics or server information) into text. Below is a list of all default placeholders included in AbyssalLib and their required syntax.
Data Placeholders
These placeholders retrieve specific values from the game, the player, or the server.
Placeholder ID | Syntax | Description |
|---|---|---|
|
| Returns the player's username. |
|
| Returns the player's UUID as a string. |
|
| Returns the namespace key of the player's current world. |
|
| Returns the name of the player's current gamemode. |
|
| Returns the player's client language locale setting. |
|
| Returns the player's current connection ping in milliseconds. |
|
| Returns the player's current health. |
|
| Returns the player's maximum health attribute value. |
|
| Returns the player's current food/hunger level. |
|
| Returns the player's current hidden saturation level. |
|
| Returns the player's current experience level. |
|
| Returns the player's exact X coordinate. |
|
| Returns the player's exact Y coordinate. |
|
| Returns the player's exact Z coordinate. |
|
| Returns the server's current 1-minute TPS (Ticks Per Second). |
|
| Returns the current total number of online players. |
|
| Returns the server's configured maximum player capacity. |
|
| Returns true if the player is currently sneaking. |
|
| Returns true if the player is currently sprinting. |
|
| Returns true if the player is currently flying. |
|
| Returns true if the player is a server operator. |
|
| Returns the value of a vanilla entity attribute. |
|
| Returns the integer value of a vanilla server statistic. |
|
| Returns the value of a custom AbyssalLib entity attribute. Syntax rules map identically to the vanilla attribute placeholder. |
|
| Returns the value of a custom AbyssalLib player statistic. |
Expression Operators
These placeholders act as mathematical and logical operators. They require a target Expressionable placeholder (such as abyssallib:player_health) to evaluate against.
Where [argument] is specified, it denotes the value you are applying against the target placeholder (e.g., <placeholder:abyssallib:add:abyssallib:player_health:5>).
Operator ID | Syntax | Description |
|---|---|---|
|
| Adds the argument to the target placeholder's value. |
|
| Subtracts the argument from the target placeholder's value. |
|
| Multiplies the target placeholder's value by the argument. |
|
| Divides the target placeholder's value by the argument. |
|
| Returns the remainder of dividing the target by the argument. |
|
| Raises the target placeholder's value to the power of the argument. |
|
| Returns the lesser value between the target and the argument. |
|
| Returns the greater value between the target and the argument. |
|
| Returns the sine of the target placeholder's value. |
|
| Returns the cosine of the target placeholder's value. |
|
| Returns the tangent of the target placeholder's value. |
|
| Returns the arc sine of the target placeholder's value. |
|
| Returns the arc cosine of the target placeholder's value. |
|
| Returns the arc tangent of the target placeholder's value. |
|
| Rounds the target placeholder's value to the nearest whole number. |
|
| Rounds the target placeholder's value down to the nearest whole number. |
|
| Rounds the target placeholder's value up to the nearest whole number. |
|
| Returns the absolute (positive) value of the target placeholder. |
|
| Returns |
|
| Returns |
|
| Returns |
|
| Returns |
|
| Returns |
|
| Returns |
|
| Returns |
|
| Returns |
|
| Returns |
|
| Inverts the boolean state of the target placeholder. |