Download PlaceholderMaker — Minecraft Mods — MetaMods
PlaceholderMaker

PlaceholderMaker

Active

Downloads

0

Last update

9 months ago

Versions

1.21 — 1.21.4
Server
Fabric
Control
Social
Utils

PlaceholderMaker

PlaceholderMaker is a Minecraft mod for the Fabric platform that opens up new possibilities for creating dynamic text templates. With it, you can develop unique substitution expressions capable of adapting to game conditions using rules and execution conditions.

How the Mod Works

The system operates through configuration files in json format, where you define rules for processing values. Conditions monitor changes in other substitutions used in these configurations, creating complex interconnections between different data.

The mod integrates with Placeholder API and is compatible with all substitution expression systems from other modifications. Created templates are placed in the pmaker/placeholders folder and called in-game using special syntax, for example: %pm:player_health%.

Condition System

Conditional operators allow precise customization of substitution behavior:

  • < — less than
  • > — greater than
  • <= — less than or equal to
  • >= — greater than or equal to
  • = — equal to
  • ! — not equal to
  • % — check for divisibility by a number
  • null — value is absent

Practical Example

Create a health_status.json file in the config/pmaker/placeholders/ directory with the following content:

{
  "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!"
        }
      ]
    }
  ]
}

Formatting Capabilities

Basic Text Styling

  • <b>Bold text</b>
  • <i>Italic text</i>
  • <u>Underlined text</u>
  • <strike>Strikethrough text</strike>
  • <obf>Obfuscated text</obf>

Color Palette

  • <#FF0000>Red text</#>
  • <#00FF00>Green text</#>

Gradient Effects

  • <gradient:#FF0000:#FFFF00:#00FF00>Gradient text!</gradient>

Interactive Elements

  • <click:run_command:'/say Hello'>Click to execute command</click>
  • <click:suggest_command:'/help'>Suggest command in chat</click>
  • <click:open_url:'https://example.com'&gt;Open web page</click>
  • <click:copy_to_clipboard:'Copied!'>Copy to clipboard</click>

Tooltip Hovers

  • <hover:show_text:'Tooltip text'>Hover over me</hover>

Built-in Links

Format Reset

  • <reset> or <r> returns to standard formatting

Standard Formatting Codes

Classic Minecraft codes with the & symbol are supported:

  • &l — bold
  • &o — italic
  • &n — underlined
  • &m — strikethrough
  • &k — obfuscated
  • &r — reset
  • &0-&f — color codes

Commands and Permissions

To reload configurations, use the /pm reload command, available to operators with access level 2 and above.

Project members
Hysocs

Hysocs

Developer

KrripeYT

KrripeYT

Developer

Created: 12 Nov 2024

ID: 70100