PlaceholderMaker is a Fabric mod that allows you to create placeholders that use conditions and rules to create unique and unlimited placeholders and even placeholders that are inside other placeholders that use detect to change during the game using conditions that detect changes from placeholders.
json made for placeholders, conditions detect changes from other placeholders that are used in configs from the placeholder!json file in pmaker/placeholders and can be used in the game like this %pm:player_health%/pm reload
pm.reload (or Operator Level ≥ 2)config/pmaker/placeholders/.| Operator | Meaning | Example |
|---|---|---|
< | Less than | "<3" → if value < 3 |
> | Greater than | ">12" → if value > 12 |
<= | Less than or equal to | "<="5" → if value ≤ 5 |
>= | Greater than or equal to | ">=10" → if value ≥ 10 |
= | Equal to | "=3" → if value == 3 |
! | Not equal to | "!3" → if value != 3 |
% | Checks if value is divisible by | "%5" → if value % 5 == 0 |
null | If it is null | Show the message directly |
Below is a simple JSON file example you might place in config/pmaker/placeholders/health_status.json. This will create a placeholder health_status that references %player:health% and then decides which text to display based on the player’s health.
{
"placeholders": [
{
"placeholderid": "health_status",
"placeholder": "%player:health%",
"rules": [
{
"condition": "<3",
"text": "&cYou're about to die!"
},
{
"condition": "<6",
"text": "&eHang in there, warrior!"
},
{
"condition": null,
"text": "&aYou look perfectly healthy!"
}
]
}
]
}
Examples
Bold, Italic, Underline, Strikethrough, Obfuscated
<b>Bold text</b><i>Italic text</i><u>Underlined text</u><strike>Strikethrough text</strike><obf>Obfuscated text</obf>Hex Colors
<#FF0000>This text is red</#><#00FF00>This text is green</#>Gradient
<gradient:#FF0000:#FFFF00:#00FF00>Hello Gradient!</gradient>#FF0000:#0000FF:#00FF00).Click Events
<click:run_command:'/say Hello'>Click to run a command</click><click:suggest_command:'/help'>Click to suggest a command in chat</click><click:open_url:'https://example.com'>Click to open a website</click><click:copy_to_clipboard:'Copied!'>Click to copy text</click>run_command is executed as if the player typed it in chat, so it requires permissions.Hover Events
<hover:show_text:'Hover message here'>Hover over me</hover>Links
<link:https://google.com>Click to open Google</link>click:open_url event.Reset
<reset> or <r> resets any formatting to default.Vanilla Formatting Codes
& followed by a code (e.g. &a, &l, &r):
&l = bold&o = italic&n = underline&m = strikethrough&k = obfuscated&r = reset&0-&f = color codes
A minecraft mod with which you can make unlimited placeholders on modded mc servers, using the placeholders api and much more!