> This is part 1 of 2 of the full documentation (pages 1–100 of 110).
> The content is paginated: fetch every part to see all of it.
> Next part: https://simple.superiormc.cn/llms-full.txt/1
> Page index: https://simple.superiormc.cn/llms.txt

# Welcome

## Don't you are looking for MythicLibreforge Wiki?

* MythicChanger Wiki has been moved to [here](https://mythicchanger.superiormc.cn/).
* MythicPrefixes Wiki has been moved to [here](https://mythicprefixes.superiormc.cn/).
* EnchantmentSlots Wiki has been moved to [here](https://enchantmentslots.superiormc.cn/).
* For now this wiki page only store MythicLibreforge Wiki.

## Info:

* This plugin is a addon plugin for libreforge.
* Add more effects, triggers, filters, conditions and even effect args to libreforge same as the original one did! No other things changed.<br>
* Your deals? Your ideals will become true. We are happy to add more things for this plugin.

## Added:

* Effect: auto\_plant
* Effect: cast\_mythic\_skill (Require MythicMobs)
* Effect: add\_mmo\_stat (Require MythicLib)
* Effect: open\_enchanting
* Effect: open\_anvil (Require Paper)
* Effect: open\_disposal
* Effect: quick\_equip
* Trigger: highest\_attack (Private use, not recommend use it)
* Trigger: smelt\_result (Different smelt triggier provided by libreforge itself, MythicLibreforge's smelt\_result is triggered after player pickup the result item, so player won't have to always open furance GUI)
* Filter: only\_on\_fire
* Filter: at\_location
* Filter: is\_crit
* Filter: has\_enchantment
* Condition: in\_combat
* Effect Arg: damage\_item

## Which plugins can be used:

* EcoEnchants
* EcoJobs
* EcoSkills
* EcoPets
* EcoMenus
* EcoQuests
* EcoBosses
* EcoArmor
* Boosters
* Talimans
* Reforges
* Actions
* StatTracks
* EcoShop


# Effects

### Open Anvil (Triggered)

Require Paper.

```yaml
effects:
  - id: open_anvil
```

### Open Enchanting Table (Triggered)

```yaml
effects:
  - id: open_enchanting
```

### Open Disposal (Triggered)

```yaml
effects:
  - id: open_disposal
    args:
      title: 'Disposal'
      size: 54
```

### Quick Equip (Triggered)

```yaml
effects:
  - id: quick_equip
```

### Cast MythicMobs skill (Triggered)

```yaml
effects:
  - id: cast_mythic_skill
    args:
      skill: 'Skill ID'
      victim_to_player: false # For passive skill, set it to true.
```

### Auto Replant (Permanent)

```yaml
effects:
  - id: auto_plant
```

### Add MMO Stat (Permanent)

```yaml
effects:
  - id: add_mmo_stat
    args:
      stat: 'MAX_HEALTH'
      amount: 100
```

### Apply Reforge (Triggered)

```yaml
effects:
  - id: apply_reforge
    args:
      reforge: 'Funny'
```

### Apply Random Reforge (Triggered)

```yaml
effects:
  - id: apply_reforge
    args:
      disallowed-reforge:
        - 'Sharppness'
        - 'Funny'
```


# Triggers

### Smelt Result

```yaml
triggers:
  - smelt_result
```

Different smelt triggier provided by libreforge itself, MythicLibreforge's smelt\_result is triggered after player pickup the result item, so player won't have to always open furance GUI.

Much better with EcoQuests, EcoJobs, EcoSkills if you want to make smelt task.

### Highest Attack

```yaml
triggers:
  - highest_attack
```

### Totem Actived (Require MythicTotem)

Called when one totem actived.

```yaml
triggers:
  - totem_actived
```

You can use text filter to specified which totem can be called.

```yaml
triggers:
  - totem_actived
filters:
  text: 
    - "TestTotem"
    - "TotemID2"
```


# Conditions

### In Combat

```yaml
conditions:
  - id: in_combat
```


# Filters

### At Location (Added in 1.1.4)

Will make effect only work at specified location.

Please note: this is not player location, it's effect (or victim) location.

I add this for command block feature with click\_block trigger.

```yaml
filters:
  at_location: 
    - "world,287,24,476"
```

Format: World Name, X Pos, Y Pos, Z Pos.

Pos support intger only.

### Only on Fire (Added in 1.1.2)

Will make effect only work on fired victim.

```yaml
filters:
  only_on_fire: true
```

### Is Cirt (Added in 1.1.5)

Whether the damage is critical.

```yaml
filters:
  is_cirt: true
```

### Has enchantment (Added in 1.3.0)

Whether the item has specified enchantment.

```yaml
filters:
  has_enchantment:
    - smite
```

### Has enchantment (Added in 1.3.1)

Whether the item don't has specified enchantment.

```yaml
filters:
  dont_has_enchantment:
    - smite
```


# Effect Arg

## Damage Item

After add this, plugin will damage item 1 duration.


# Before 1.3.0 (Legacy)

## Triggers

See the Triggers page.

## Conditions

## Filters

### Advancements

```yaml
filters:
  advancements:
    - minecraft:story/mine_stone
```

Get vanilla advancements ID here:

{% embed url="<https://minecraft.fandom.com/wiki/Advancement>" %}

### At Location (Added in 1.1.4)

Will make effect only work at specified location.

Please note: this is not player location, it's effect (or victim) location.

I add this for command block feature with click\_block trigger.

```yaml
filters:
  at_location: 
    - "world,287,24,476"
```

Format: World Name, X Pos, Y Pos, Z Pos.

Pos support intger only.

### Only on Fire (Added in 1.1.2)

Will make effect only work on fired victim.

```yaml
filters:
  only_on_fire: true
```

### Is Cirt (Added in 1.1.5)

Whether the damage is critical.

```yaml
filters:
  is_cirt: true
```


# Removed Effects

### Open Workbenching Table (Triggered, Removed in 1.3.0)

```yaml
effects:
  - id: open_workbench
```


# Removed Triggers

### Smite (Removed in 1.3.0)

```yaml
triggers:
  - smite
```

If this won't work for you, please update your server jar to latest, there is a bug that related to SmiteItemEvent in past version server core.

### Advancement Done (Removed in 1.3.0)

```yaml
triggers:
  - advancement_done
```


# Removed Filters

### Advancements

```yaml
filters:
  advancements:
    - minecraft:story/mine_stone
```

Get vanilla advancements ID here:

{% embed url="<https://minecraft.fandom.com/wiki/Advancement>" %}


# 🎉Welcome

Welcome to **UltimateTweak**, a modular quality-of-life plugin for Spigot, Paper, and Folia\
servers. Every tweak has its own configuration file and can be enabled,\
disabled, and customized independently.

## Links

### Get the plugin <a href="#get-support" id="get-support"></a>

<https://www.spigotmc.org/resources/ultimatetweak-animated-tree-cutter-vein-mine-best-tool-dynamic-light-all-in-1-1-20-5.99542/>

### Get support <a href="#get-support" id="get-support"></a>

* All users have an obligation to comply with our rules after joining the Discord server, which can be viewed in the rules channel. If you do not agree with our rules, you will not be able to receive our service support. Users who violate the rules will be punished according to the situation, including permanent ban.
* Every user is obligated to comply with our plugin terms of use. You can find these in the **LICENSE** file within the JAR file. We do not provide any assistance to users who fail to comply with the terms of use.
* Compared to users who have purchased the paid version, our service support priority for free users will be lower, with more requirements and restrictions. I have invested a lot of time and effort in developing plugins, but despite this, I have provided a free version and the complete plugin source code. I have not closed the source or restricted the number of user IP addresses used. Therefore, better service support is not free, and you should not ask me to provide good service for free. If you want your issue to be taken seriously, please consider purchasing a paid version to support plugin development.
* Support is only available at our [Discord](https://discord.gg/rzajeybhbw) server.
* 因 Discord 在中国大陆区域不可用，如果您在中国大陆购买了此插件，可以凭购买的账号平台、名称，在此QQ群享受售后服务：815351827。


# ✅Requirements

## Java Version

* Basic Requirement: **Java16+**
* **Java 17+** is <mark style="color:red;">recommended</mark>. Java17 and above versions are recommended, but plugins are compiled using **Java16**, so theoretically, you only need Java16 or higher versions.

## Server Software

| Server          | Can work in your server                                                                                                   | Can get offical support                                                                                                                                                                          |
| --------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Spigot          | <p>✅<br>Some features does not provide in Spigot servers</p>                                                              | ✅                                                                                                                                                                                                |
| Paper/Purpur    | <p>✅<br>Can provide subtle performance improvements.</p>                                                                  | ✅                                                                                                                                                                                                |
| Folia           | <p>❓<br>Any problems only occurs in Folia servers may not be solved. Plugin is not designed for multi thread support.</p> | <p>❓</p><p>Folia's support is in the <mark style="color:red;">early testing stage</mark> and may be released in official versions or removed in the future. This support is not a guarantee.</p> |
| Other softwares | ❌                                                                                                                         | ❌                                                                                                                                                                                                |

## Plugin Requirements <a href="#plugin-requirements" id="plugin-requirements"></a>

* Require latest version of **packetevents**!

## Server Version <a href="#server-version" id="server-version"></a>

| Version              | Can work in your server                                                                            | Can get offical support |
| -------------------- | -------------------------------------------------------------------------------------------------- | ----------------------- |
| **Below 1.21.3**     | ❌                                                                                                  | ❌                       |
| **1.21.3 and above** | ✅ Using versions **1.21.5** and above is the most recommended, as you can enjoy the best features. | ✅                       |

* If you encounter errors while using a certain version, <mark style="color:red;">please join our Discord feedback</mark>.


# ⚙️Install

## Install

* Put the `.jar` file into your server's `plugins` folder.
* Stop your server and then restart it. <mark style="color:red;">Cannot load plugins in any other way while the server is starting</mark>.
* When updating plugins, please be sure to remove old versions.
* Previously, you used the free version, but now to upgrade to the paid version, you only need to install the paid version on the server and remove the free version. The configuration file of the plugin does not require any changes.
* Default configs are just helping you understand the config framework, you need modify them that meet your needs.

## Update <a href="#update" id="update"></a>

* When updating plugins, please be sure to remove old versions.
* You should always keep the plugin updated to the latest version.
* To prevent your custom config files from being overwritten or broken, the plugin does not auto-update existing configs. You can manually merge changes from new default configs, or regenerate fresh config files.
* Before every update, read the changelog carefully. If you skip multiple versions, review all changelogs in between. Major breaking changes will be noted there.


# 🔗Compatibility

## **Direct compatibility**

### Model hitbox plugins

* BetterModel 3.5.0
* ModelEngine R4.2.0

These optional core hooks resolve model collision bounds and their owning entities. [Damage Indicator](https://github.com/ManyouTeam/UltimateTweak/tree/master/docs/tweaks/damage-indicator.md) in TweakExpansion uses them for floating damage and healing numbers.

### <mark style="color:red;">Directly</mark> supported item plugins list

* ItemsAdder
* Oraxen
* EcoItems
* EcoArmor
* MMOItems
* MythicMobs
* eco
* NeigeItems
* ExecutableItems
* Nexo
* CraftEngine

You can use ItemBridge as custom item provider which supports more custom item plugins, click [here](https://ultimateshop.superiormc.cn/format/itembridge) to know more.

### <mark style="color:red;">Directly</mark> supported protection plugins list <a href="#directly-supported-protection-plugins-list-premium" id="directly-supported-protection-plugins-list-premium"></a>

If players do not have permission to break block within these protection plugins areas, UltimateTweak can prevent players use some tweaks in these areas.

* BentoBox
* Dominion
* GriefPrevention
* HuskTowns
* HuskClaims
* Lands
* PlotSquared
* Residence
* Towny
* WorldGuard
* SuperiorSkyblock2

### <mark style="color:red;">Directly</mark> supported block plugins list <a href="#directly-supported-block-plugins-list" id="directly-supported-block-plugins-list"></a>

By being compatible with these plugins, UltimateTweak can recognize blocks from these plugins and support custom blocks from those plugins is some tweaks.

{% hint style="warning" %} <mark style="color:red;background-color:red;">**ONLY**</mark> custom block from **CraftEngine** is <mark style="color:red;">offical support</mark>.

Due to the fact that the custom blocks of other plugins have not truly registered new blocks at the server-side level, although we have tried to add some compatibility code, we cannot guarantee that it will be 100% useful on this and **will not make any fixes**. We welcome community users to try to further improve compatibility code, but don't expect us!
{% endhint %}

* ItemsAdder
* Oraxen
* MMOItems
* CraftEngine
* Nexo


# 🛠️Configuration files

The plugin generates the following configuration files:

* `tweaks`: Contains one configuration file for each tweak.
* `tree_determine_settings`: Contains tree recognition definitions.
* `languages`: The location for storing language files. You can set the language file used by the plugin through the `config-files.language` option in the `config.yml` file. You can customize various messages within the plugin game through language files. For per player language, or send action bar/title/boss bar/sound, please view [this page](/ultimatetweak/features/advanced-language-managment).
* `config.yml` file: The location for main common settings for plugins.

## Common tweak options

Every file under `tweaks/` supports the same `enabled` and `worlds` options:

```yaml
enabled: true

worlds:
  mode: blacklist
  list: []
```

* `worlds.mode: blacklist`: the tweak works in every world except those in `worlds.list`.
* `worlds.mode: whitelist`: the tweak works only in worlds in `worlds.list`.
* World names are matched case-insensitively.
* An empty blacklist enables the tweak in all worlds. An empty whitelist disables it in all worlds.

For example, to enable a tweak only in `world` and `resource_world`:

```yaml
worlds:
  mode: whitelist
  list:
    - world
    - resource_world
```


# ⌨️Commands & Permissions

Main command: `/ultimatetweak`\
Aliases: `/ut`, `/tweak`

| Command                               | Permission                  | Description                                                                                                        |
| ------------------------------------- | --------------------------- | ------------------------------------------------------------------------------------------------------------------ |
| `/ut reload`                          | `ultimatetweak.reload`      | Reloads the main config, tweaks, tree definitions, and languages.                                                  |
| `/ut debug <tree definition ID\|off>` | `ultimatetweak.debug`       | Enables or disables tree recognition diagnostics.                                                                  |
| `/ut guide ...`                       | `ultimatetweak.guide.admin` | Manages TweakExpansion Guide targets. See [Guide](/ultimatetweak/tweakexpansion-tweaks/guide) for all subcommands. |

`ultimatetweak.bypass.protection` bypasses checks from all hooked protection plugins. Server operators bypass these checks automatically.

## Tweak permissions

| Permission                          | Description                                         | Default  |
| ----------------------------------- | --------------------------------------------------- | -------- |
| `ultimatetweak.best-tool`           | Allows automatic best-tool selection.               | Everyone |
| `ultimatetweak.double-door`         | Allows opening and closing matching doors together. | Everyone |
| `ultimatetweak.tree-cutter`         | Allows using Tree Cutter.                           | Everyone |
| `ultimatetweak.vein-mine`           | Allows using Vein Mine.                             | Everyone |
| `ultimatetweak.dynamic-light`       | Allows creating dynamic light from held items.      | Everyone |
| `ultimatetweak.biome-announcer`     | Allows receiving biome announcements.               | Everyone |
| `ultimatetweak.structure-announcer` | Allows receiving structure announcements.           | Everyone |

These permission values can be changed with the `permission` option in each tweak's configuration file. An empty value disables the permission check.

## TweakExpansion permissions

| Permission                                         | Description                                         | Default   |
| -------------------------------------------------- | --------------------------------------------------- | --------- |
| `ultimatetweak.container-preview`                  | Allows looking at container previews.               | Everyone  |
| `ultimatetweak.damage-indicator`                   | Allows viewing floating damage and healing numbers. | Everyone  |
| `ultimatetweak.health-bar`                         | Allows viewing overhead entity health bars.         | Everyone  |
| `ultimatetweak.auto-ladder`                        | Allows automatic ladder climbing and sliding.       | Everyone  |
| `ultimatetweak.elevator`                           | Allows using configured elevator blocks.            | Everyone  |
| `ultimatetweak.elevator.bypass.same-block`         | Bypasses the elevator same-block restriction.       | Nobody    |
| `ultimatetweak.elevator.bypass.blocks-between`     | Bypasses the elevator blocks-between restriction.   | Nobody    |
| `ultimatetweak.multi-armor`                        | Allows automatic chestplate and Elytra swapping.    | Everyone  |
| `ultimatetweak.projectile-prediction`              | Allows projectile path and impact prediction.       | Everyone  |
| `ultimatetweak.block-highlighter.treasure`         | Allows the default treasure highlight group.        | Everyone  |
| `ultimatetweak.block-highlighter.bypass.occlusion` | Allows block highlights through obstructions.       | Nobody    |
| `ultimatetweak.guide.admin`                        | Allows managing Guide targets for online players.   | Operators |

Normal use permissions and highlight-group permissions can be changed in their respective tweak files. Bypass permissions are fixed by the plugin and cannot be renamed in configuration.


# ❓FAQ

## How to set disabled worlds or make some players can not use the tweak?

Some tweaks provide `conditions` option and you can use world condition if you want the tweak will not work in some worlds, and use permission condition if you want to only specified players can access to the tweak.


# 🎬Action Format

## Sound

Send sound to player.

```yaml
general-actions:
  1:
    type: sound
    sound: 'ui.button.click'
    volume: 1
    pitch: 1
```

## Message

Send a message to the player, support color code.

```yaml
general-actions:
  1:
    type: message
    message: 'Hello!'
```

## Title <a href="#title" id="title"></a>

Send title to the player, support the color code.

```yaml
general-actions:
  1:
    type: title
    main-title: 'Good day'
    sub-title: 'Not bad'
    fade-in: 10
    stay: 70
    fade-out: 30
```

## Particle <a href="#particle" id="particle"></a>

```yaml
actions:
  1:
    type: particle
    particle: HEART
    count: 20
    offset-x: 0.3
    offset-y: 1.0
    offset-z: 0.3
    speed: 0.01
```

## Effect

Give players potion effect.

```yaml
general-actions:
  1:
    type: effect
    potion: BLINDNESS
    duration: 60
    level: 1
    ambient: true # Optional
    particles: true # Optional
    icon: true # Optional
```

## Teleport

Teleport player to specified location.

```yaml
general-actions:
  1:
    type: teleport
    world: LobbyWorld
    x: 100
    y: 30
    z: 300
    pitch: 90 # Optional
    yaw: 0 # Optional
```

## Player Command

Make the player excutes a command.

```yaml
general-actions:
  1:
    type: player_command
    command: 'tell Hello!'
```

## Op Command

Make the player excutes a command as OP.

```yaml
general-actions:
  1:
    type: op_command
    command: 'tell Hello!'
```

## Console Command

Make the console excutes a command.

```yaml
general-actions:
  1:
    type: console_command
    command: 'op {player}'
```

## Spawn vanilla mobs

Spawn vanilla mobs.

```yaml
general-actions:
  1:
    type: entity_spawn
    entity: ZOMBIE
    world: LOBBY # Optional
    x: 100.0 # Optional
    y: 2.0 # Optional
    z: -100.0 # Optional
```

## MythicMobs spawn

Require MythicMobs.

```yaml
general-actions:
  1:
    type: mythicmobs_spawn
    entity: Super_Skeleton
    level: 1 # Optional
    world: LOBBY # Optional
    x: 100.0 # Optional
    y: 2.0 # Optional
    z: -100.0 # Optional
```

## Delay

Make the action run after X ticks.

```yaml
general-actions:
  1:
    type: delay
    time: 50
    actions:
      1:
        type: entity_spawn
        entity: ZOMBIE
```

## Chance

Set the chance the action will be excuted, up to 100. 50 means this action has 50% chance to excute.

```yaml
genneal-actions:
  1:
    type: chance
    rate: 50
    actions:
      1:
        type: entity_spawn
        entity: ZOMBIE
```

## Any

Randomly choose specified amount of actions to execute.

```yaml
general-actions:
  1:
    type: any
    amount: 2
    actions:
      1:
        type: entity_spawn
        entity: ZOMBIE
      2:
        type: entity_spawn
        entity: SKELETON
      3:
        type: entity_spawn
        entity: WITHER
```

## Conditional

Only players meet the conditions you set here will be able to execute the action.

```yaml
general-actions:
  1:
    type: conditional
    conditions:
      1:
        type: world
        world: lobby
    actions:
      1:
        type: entity_spawn
        entity: ZOMBIE
```


# ⚖️Condition Format

## World

Player must be in the world.

<pre class="language-yaml"><code class="lang-yaml"><strong>  conditions:
</strong>    1:
      type: world
      world: lobby
</code></pre>

## Biome

Player must be in the biome.

```yaml
  conditions:
    1:
      type: biome
      biome: oraxen
```

## Permission

Player must has the permission.

**Remember that OP players will always have all permissions unless plugin set it not by default, so if you want to test this condition, you have to deop yourself.**

```yaml
  conditions:
    1:
      type: permission
      permission: 'group.vip'
```

## Placeholder

Player must be meet the placeholder condition.

Rule can be set to:

* \>=
* <=
* \>
* <
* \== (String)
* \= (Number)
* != (Number or string)
* !\*= (Number or string) Not contains.
* \*= (String) Contains, for example, str \*= string is true, but example \*= ple is false.

```yaml
  conditions:
    1:
      type: placeholder
      placeholder: '%player_health%'
      rule: '<='
      value: 5
```

## Any

```yaml
  conditions:
    1:
      type: any
      conditions:
        1:
          type: placeholder
          placeholder: '%eco_balance%'
          rule: '>='
          value: 200
        2:
          type: placeholder
          placeholder: '%player_points%'
          rule: '>='
          value: 400
```

## Not

```yaml
  conditions:
    1:
      type: not
      conditions:
        1:
          type: placeholder
          placeholder: '%e
```


# ➗Math Calculate Format

The **Math Calculation Format** provided by **UltimateTweak** are almost identical to those in UltimateShop. Therefore, they will not be elaborated on in this wiki. Please refer to UltimateShop's wiki for a detailed introduction about them. Click [here](https://ultimateshop.superiormc.cn/format) to view.


# 🔍Match Item Format

The **Match Item Format** provided by **UltimateTweak** are almost identical to those in MythicChanger. Therefore, they will not be elaborated on in this wiki. Please refer to MythicChanger's wiki for a detailed introduction about them. Click [here](https://mythicchanger.superiormc.cn/match-item-rules/none) to view.

For simple list of them, please view below:

#### material

Match by material key (namespace key, case-insensitive).

```yaml
material:
  - diamond_sword
  - netherite_sword
```

#### material-tag

Match by vanilla item/block tag.

```yaml
material-tag:
  - minecraft:swords
  - minecraft:planks
```

#### material-pattern

Match material keys with case-insensitive `*` and `?` wildcards. A pattern without a namespace matches the key only.

```yaml
material-pattern:
  - "*_slab"
  - "minecraft:*_carpet"
```

#### is-block

Match whether the Bukkit material can be placed as a block.

```yaml
is-block: true
```

#### items

Match by external item system ID (resolved by HookManager).

```yaml
items:
  - mmoitems;;SWORD;;FLAME_BLADE
  - nexo;;legend_blade
```

#### use-tier-identify

Whether item tier is included while parsing item IDs.

```yaml
use-tier-identify: true
```

#### has-name

Require item display name.

```yaml
has-name: true
```

#### contains-name

Item display name must contain any listed text (ignores color/format).

```yaml
contains-name:
  - Epic
  - Flame
```

#### has-lore

Require lore to exist.

```yaml
has-lore: true
```

#### contains-lore

Any lore line containing listed text will pass.

```yaml
contains-lore:
  - Lifesteal
  - Curse
```

#### has-enchants

Require the item to contain any listed enchantment.

* `*` means "has any enchantment"

```yaml
has-enchants:
  - sharpness
  - unbreaking
```

```yaml
has-enchants:
  - "*"
```

#### has-stored-enchants

For enchanted books, require stored enchantments.

* only valid for stored-enchant metadata
* `*` means any stored enchantment

```yaml
has-stored-enchants:
  - mending
```

#### contains-enchants

Check enchant level rules.

* `contains-enchants.<enchant>: <number>` means level `>` number
* `contains-enchants.<enchant>: [list]` means level must be in list

```yaml
contains-enchants:
  sharpness: 3
```

```yaml
contains-enchants:
  protection: [1, 2, 4]
```

#### contains-enchants-amount

Check enchantment count.

* number: `>=`
* list: must match one listed value

```yaml
contains-enchants-amount: 3
```

```yaml
contains-enchants-amount: [1, 2, 5]
```

#### enchantable

Check whether the item can accept listed enchantments.

```yaml
enchantable:
  - sharpness
  - looting
```

#### rarity (1.20.5+)

Match item rarity (`NONE` when no rarity exists).

```yaml
rarity: RARE
```

#### contains-nbt (requires NBTAPI)

Check whether an NBT path exists.

Path format: `parent;;child;;final-key`

```yaml
contains-nbt:
  - CustomModelData
  - PublicBukkitValues;;myplugin:key
```

#### nbt-string (requires NBTAPI)

Match NBT string value.

* top-level: `key;;value`
* nested: `a;;b;;key;;value`

```yaml
nbt-string:
  - PublicBukkitValues;;myplugin:key;;special
```

#### nbt-int / nbt-double / nbt-float / nbt-long / nbt-short / nbt-byte (requires NBTAPI)

Match numeric NBT values with compare rules.

```yaml
nbt-int:
  - CustomModelData;;>=1000
```

#### pdc

Match `PersistentDataContainer` values.

```yaml
pdc:
  myplugin:key: value
```

#### custom-model-data

Match custom model data.

```yaml
custom-model-data: 1001
```

#### amount

Match stack amount.

```yaml
amount: ">=1"
```

#### damage

Match item damage value.

```yaml
damage: "<=10"
```

#### unbreakable

Require unbreakable state.

```yaml
unbreakable: true
```

#### any

OR logic: match any sub-rule group.

```yaml
any:
  1:
    material:
      - diamond_sword
  2:
    has-enchants:
      - sharpness
```

#### not

Negation block: if inner rule matches, this block fails.

```yaml
not:
  material-tag:
    - minecraft:logs
```

#### none

Always fail (useful as placeholder/temporary disable).

```yaml
none: true
```


# 🔍Match Entity Format

The **Match Item Format** provided by **UltimateTweak** are almost identical to those in MythicRewards. Therefore, they will not be elaborated on in this wiki. Please refer to MythicRewards's wiki for a detailed introduction about them. Click [here](https://manyou.gitbook.io/mythicrewards/match-entity-rules/none) to view.

For simple list of them, please view below:

#### **entity-types**

Match by entity type (for example `zombie`, `skeleton`).

```yaml
entity-types:
  - zombie
  - husk
```

#### **entity-tag**

Match by vanilla entity tag.

```yaml
entity-tag:
  - minecraft:undead
  - minecraft:raiders
```

## **entity-contains-name**

Entity custom name contains listed text (ignores color/format).

```yaml
entity-contains-name:
  - Boss
  - Elite
```

#### **entity-health**

Minimum current health check (`>=`).

```yaml
entity-health: 10
```

#### **ranged (Paper only)**

Require ranged or non-ranged entities.

* `true`: must be ranged
* `false`: must be non-ranged

```yaml
ranged: true
```

#### **equip**

Match entity equipment slots (each slot uses Match Item rules).

Available slots:

* `main-hand`
* `off-hand`
* `helmet`
* `chestplate`
* `leggings`
* `boots`

```yaml
equip:
  main-hand:
    material:
      - bow
  helmet:
    has-enchants:
      - protection
```

> Current behavior: any configured slot match can return `true`.

#### **entity-pdc**

Match `PersistentDataContainer` values (string/number/boolean supported).

**String rules**

* exact match
* contains match
* wildcard `*`

```yaml
entity-pdc:
  myplugin:role: boss*
```

**Number rules**

Supports `5~10`, `>=5`, `<=10`, `>5`, `<10`, `=8`, or `8`.

```yaml
entity-pdc:
  myplugin:level: ">=20"
  myplugin:phase: "2~4"
```

**Boolean rules**

```yaml
entity-pdc:
  myplugin:awakened: true
```

#### **mythicmobs (requires MythicMobs)**

Match MythicMobs internal mob names.

```yaml
mythicmobs:
  - FireDemon
  - IceBoss
```

#### **levelled-mobs (requires LevelledMobs)**

Match LevelledMobs level.

Supports:

* exact value: `10`
* range: `5~20`
* comparisons: `>=15`, `<=30`

```yaml
levelled-mobs: ">=25"
```

#### **any**

OR logic (any sub-group can match).

```yaml
any:
  1:
    entity-types:
      - zombie
  2:
    entity-tag:
      - minecraft:raiders
```

or same-level OR:

```yaml
any:
  ranged: true
  entity-health: 30
```

#### **not**

Negation block (if any rule inside `not` matches, overall match fails).

```yaml
not:
  entity-types:
    - villager
```

#### **none**

Always fail (placeholder/temporary disable).

```yaml
none: true
```


# 🛠️Best Tool

## Config

{% code title="tweaks/best-tool.yml" %}

```yaml
enabled: true

worlds:
  mode: blacklist
  list: []

permission: "ultimatetweak.best-tool"

# hotbar: search slots 0-8; inventory: search the entire player storage inventory.
# Please note that use inventory mode will cost ~x5 extra performance, don't recommended to use it.
search-scope: hotbar

# Minimum interval between detections for the same player.
cooldown-ticks: 5

# Candidate score:
# block destroy speed (including efficiency) * multiplier ^ fortune level
# Fortune only receives this bonus when the item is a preferred tool for the block.
fortune-multiplier-per-level: 1.5

trigger:
  require-effective-tool: false
  min-block-hardness: -1.0
  mode: any

conditions: []

# Executed after the held hotbar slot is changed.
switch-actions: []

```

{% endcode %}

* `permission`: permission required to use Best Tool. Leave it blank to disable the permission check.
* `search-scope`: `hotbar` searches slots 0-8; `inventory` searches the whole player storage inventory.
* `cooldown-ticks`: minimum interval between checks for the same player.
* `fortune-multiplier-per-level`: Fortune level multiplier used when scoring candidate tools.
* `trigger.require-effective-tool`: only triggers when the selected candidate is faster than an empty hand for that block.
* `trigger.min-block-hardness`: minimum block hardness required; `-1` disables this filter.
* `trigger.mode`: `any` accepts either enabled trigger filter; `all` requires every enabled filter.
* `conditions`: conditions that must pass to active this tweak. Should use [Condition Format](/ultimatetweak/format/condition-format) here.
* `switch-actions`: actions executed after the held slot changes. Should use [Action Format](/ultimatetweak/format/action-format) here.

## Showcase

<figure><img src="https://raw.githubusercontent.com/ManyouTeam/UltimateTweak/refs/heads/master/show/BestTools.gif" alt=""><figcaption></figcaption></figure>


# 🚪Double Door

Double Door opens or closes adjacent matching doors together. Its optional display animation can also be applied to a single door.

## Config

{% code title="tweaks/double-door.yml" %}

```yaml
enabled: true

worlds:
  mode: blacklist
  list: []

permission: "ultimatetweak.double-door"

animation:
  enabled: true
  single-door: false
  duration-ticks: 16
  interval-ticks: 1
  view-distance: 24

conditions: []
```

{% endcode %}

* `permission`: permission required to use Double Door. Leave it blank to disable the permission check.
* `animation.enabled`: enables the display-entity door animation.
* `animation.single-door`: also animates doors that do not have an adjacent matching door.
* `animation.duration-ticks`: total animation duration.
* `animation.interval-ticks`: interval between animation updates.
* `animation.view-distance`: maximum distance at which players receive the animation.
* `conditions`: conditions that must pass before the tweak can activate. See [Condition Format](/ultimatetweak/format/condition-format).


# 🌲Tree Cutter

## Config

{% code title="tweaks/tree-cuter.yml" %}

```yaml
enabled: true

worlds:
  mode: blacklist
  list: []

permission: "ultimatetweak.tree-cutter"

# Minimum interval between multiblock detections for the same player.
cooldown-ticks: 5

# Maximum number of blocks broken in the same tick.
# Set smaller value if you are running large servers.
blocks-per-tick: 32

require-shift: false

match-item:
  trigger:
    material-tag:
      - 'axes'
  leaf-break:
    has-enchants:
      - 'custom:tree_shears'

animation:
  # If this lag your server, try to disable it.
  enabled: true
  # random, same-as-player, away-from-player
  direction: random
  glow: true
  glow-color: '#FFFFFF'
  duration-ticks: 30
  interval-ticks: 1
  view-distance: 24
  # Will cost extra server performance.
  fall-damage:
    enabled: false
    players: true
    entities: true
    damage: 6.0
    min-angle: 15.0
    hit-radius: 0.5
    check-interval-ticks: 2

damage-glow:
  enabled: true
  hide-breaking-block: true
  glow-color: '#FFFFFF'
  duration-ticks: 40
  view-distance: 24

# Each log compounds the mining time by percent-per-log, limited by max-percent.
mining-time:
  enabled: true
  percent-per-log: 100.0
  max-percent: 5000.0

# Deduct this many food points each time Tree Cutter activates.
# One hunger icon equals 2 food points. The tweak will not activate if the player has too little food.
hunger-cost:
  enabled: false
  amount: 1

damage-actions: []

break-actions:
  1:
    type: sound
    sound: entity.zombie.break_wooden_door
    volume: 1.0
    pitch: 1.0

conditions: []
```

{% endcode %}

All numeric options support PlaceholderAPI placeholders and mathematical expressions. Values containing placeholders or formulas should be quoted as YAML strings.

* `permission`: permission required to use Tree Cutter. Leave it blank to disable the permission check.
* `require-shift`: whether the player must sneak.
* `match-item.trigger`: item rules that can trigger Tree Cutter. Should use [Match Item Format](/ultimatetweak/format/match-item-format) here.
* `match-item.leaf-break`: breaks leaves when the held item matches these rules. Should use [Match Item Format](/ultimatetweak/format/match-item-format) here.
* `animation`: falling direction, glow, duration, and optional falling-tree damage.
* `damage-glow`: visual feedback while the tree is being mined.
* `mining-time`: increases mining time based on the number of logs.
* `hunger-cost`: when enabled, requires and deducts `amount` food points each time Tree Cutter activates. One hunger icon equals 2 food points.
* `damage-actions` / `break-actions`: actions run while mining or after completion. Should use [Action Format](/ultimatetweak/format/action-format) here. Supported placeholders:
  * `{log-amount}`
  * `{leaf-amount}`
  * `{tree-amount}`
  * `{tree-id}`
  * `{block-amount}`
  * `{mining-block-amount}`
* `conditions`: conditions that must pass to active this tweak. Should use [Condition Format](/ultimatetweak/format/condition-format) here.

## Limitation

* The accumulation of **Mining Time** can only be based on the time of the block being mined by the player. For mangrove in the swamp, if the player is destroying mangrove roots, it will also be destroyed very quickly.
* Due to the fact that we can only determine whether a player is digging trees after the client starts digging blocks, enabling the **Mining Time** feature may result in the server attempting to change the player's digging speed only after the client has already started digging. Therefore, you may find that the player starts digging faster and then follows the new digging time, which is a limitation of the game itself and cannot be fixed.
* In order to display the cracks in the blocks that players are destroying, the Damage Glow feature will not glow the blocks that players are mining, which is a limitation of the game itself and cannot be fixed.
* When using tools such as diamond axes (which can quickly cut down mushrooms) destroy custom trees from CraftEngine, there may be a situation where blocks suddenly disappear but immediately recover. This is a limitation of the game itself and cannot be fixed.

## Tree Determine

{% hint style="warning" %}
Only custom trees from **CustomEngine** plugin is supported!
{% endhint %}

Tree recognition rules live in `tree_determine_settings/`. Defaults cover common Overworld trees, Nether fungi, and a CraftEngine palm example.

Example:

```yaml
logs:
  - minecraft:acacia_log
  - minecraft:acacia_wood
leaves:
  - minecraft:acacia_leaves
radius: 6
height: 24
min-log-amount: 4
max-log-amount: 80
min-leaf-amount: 16
max-leaf-amount: 256
player-leave: false
```

For `logs` and `leaves` option, support:

* `minecraft:<Minecraft Block ID>`, like minecraft:stone.
* `itemsadder:<NamespaceID>:<Block ID>`, like `itemsadder:blocks:block_1`.
* `oraxen:<Item ID>`, like `oraxen:block_1`.
* `mmoitems:<Block ID>`, like `mmoitems:10`, **block id (is a number, not item id)** is a number been set by your block configs, not item ID.
* `craftengine:<NamespaceID>:<Block Item ID>`, like `craftengine:default::palm_log`.

Run `/ut debug <tree definition ID>` and try mining a tree to see why a definition passes or fails and can the block ID.

## Showcase

<figure><img src="https://318304461-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAskPQntceV5I52fFjXXd%2Fuploads%2FQnbJDSSHbPQrwLDRguHv%2F%E5%B1%8F%E5%B9%95%E5%BD%95%E5%88%B6%202026-06-12%20233951.gif?alt=media&amp;token=77e56809-85af-459d-9279-f26a8d45c6b6" alt=""><figcaption></figcaption></figure>


# 🌱Tree Replant

## Config

{% code title="tweaks/tree-replant.yml" %}

```yaml
enabled: true

worlds:
  mode: blacklist
  list: []

# Wait before checking a newly dropped sapling.
cooldown-ticks: 20

# How often dropped saplings are checked, and how long they may stay airborne.
check-interval-ticks: 20
max-wait-ticks: 60

# Each group contains its own saplings and valid soils.
rules:
  overworld-trees:
    saplings:
      oak:
        match-item:
          material:
            - oak_sapling
        block: minecraft:oak_sapling
      spruce:
        match-item:
          material:
            - spruce_sapling
        block: minecraft:spruce_sapling
      birch:
        match-item:
          material:
            - birch_sapling
        block: minecraft:birch_sapling
      jungle:
        match-item:
          material:
            - jungle_sapling
        block: minecraft:jungle_sapling
      acacia:
        match-item:
          material:
            - acacia_sapling
        block: minecraft:acacia_sapling
      dark-oak:
        match-item:
          material:
            - dark_oak_sapling
        block: minecraft:dark_oak_sapling
      cherry:
        match-item:
          material:
            - cherry_sapling
        block: minecraft:cherry_sapling
      pale-oak:
        match-item:
          material:
            - pale_oak_sapling
        block: minecraft:pale_oak_sapling
      azalea:
        match-item:
          material:
            - azalea
        block: minecraft:azalea
      flowering-azalea:
        match-item:
          material:
            - flowering_azalea
        block: minecraft:flowering_azalea
    valid-soilds:
      - minecraft:dirt
      - minecraft:grass_block
      - minecraft:podzol
      - minecraft:coarse_dirt
      - minecraft:rooted_dirt
      - minecraft:mycelium
      - minecraft:moss_block
      - minecraft:mud

  mangrove:
    saplings:
      mangrove:
        match-item:
          material:
            - mangrove_propagule
        block: minecraft:mangrove_propagule
    valid-soilds:
      - minecraft:mud
      - minecraft:clay

  custom:
    saplings:
      palm:
        match-item:
          items:
            - palm_sapling
        block: craftengine:default:palm_sapling
    valid-soilds:
      - minecraft:dirt
      - minecraft:grass_block
      - minecraft:sand

```

{% endcode %}

Each rule defines sapling items, the block placed for each sapling, and valid soil blocks. Dropped saplings are checked every `check-interval-ticks` until `max-wait-ticks` is reached.

For each rule `sapling.block` and `valid-soilds` option, supports:

* `minecraft:<Minecraft Block ID>`, like minecraft:stone.
* `itemsadder:<NamespaceID>:<Block ID>`, like `itemsadder:blocks:block_1`.
* `oraxen:<Item ID>`, like `oraxen:block_1`.
* `mmoitems:<Block ID>`, like `mmoitems:10`, **block id (is a number, not item id)** is a number been set by your block configs, not item ID.
* `craftengine:<NamespaceID>:<Block Item ID>`, like `craftengine:default::palm_log`.

For each rule `saplings.match-item` option, should use [Match Item Format](/ultimatetweak/format/match-item-format) here.


# ⛏️Vein Mine

{% hint style="info" %}
Since Vein Mine almost share same code from Tree Cutter, so, please also view **Limitation** section from this [page](/ultimatetweak/tweaks/tree-cutter).
{% endhint %}

## Config

{% code title="tweaks/vein-mine.yml" %}

```yaml
enabled: true

worlds:
  mode: blacklist
  list: []

permission: "ultimatetweak.vein-mine"

# Minimum interval between multiblock detections for the same player.
cooldown-ticks: 5

# Maximum number of blocks broken in the same tick.
# Set smaller value if you are running large servers.
blocks-per-tick: 32

require-shift: true

rules:
  ores:
    match-item:
      material-tag:
        - 'pickaxes'
    match-block:
      - 'minecraft:coal_ore'
      - 'minecraft:deepslate_coal_ore'
      - 'minecraft:iron_ore'
      - 'minecraft:deepslate_iron_ore'
      - 'minecraft:copper_ore'
      - 'minecraft:deepslate_copper_ore'
      - 'minecraft:gold_ore'
      - 'minecraft:deepslate_gold_ore'
      - 'minecraft:redstone_ore'
      - 'minecraft:deepslate_redstone_ore'
      - 'minecraft:emerald_ore'
      - 'minecraft:deepslate_emerald_ore'
      - 'minecraft:lapis_ore'
      - 'minecraft:deepslate_lapis_ore'
      - 'minecraft:diamond_ore'
      - 'minecraft:deepslate_diamond_ore'
      - 'minecraft:nether_gold_ore'
      - 'minecraft:nether_quartz_ore'

search:
  # Whether diagonally touching blocks belong to the same vein.
  diagonal: true
  max-blocks: 64

damage-glow:
  enabled: true
  hide-breaking-block: true
  glow-color: '#FFFFFF'
  duration-ticks: 40
  view-distance: 24

# Each additional block increases mining time by percent-per-block, limited by max-percent.
mining-time:
  enabled: true
  percent-per-block: 100.0
  max-percent: 5000.0

# Deduct this many food points each time Vein Mine activates.
# One hunger icon equals 2 food points. The tweak will not activate if the player has too little food.
hunger-cost:
  enabled: false
  amount: 1

damage-actions: []

break-actions: []

conditions: []
```

{% endcode %}

All numeric options support PlaceholderAPI placeholders and mathematical expressions. Values containing placeholders or formulas should be quoted as YAML strings.

* `permission`: permission required to use Vein Mine. Leave it blank to disable the permission check.
* `require-shift`: requires sneaking by default.
* `search.diagonal`: includes diagonally touching blocks in the same vein.
* `search.max-blocks`: maximum blocks handled in one operation.
* `mining-time`: increases mining time for additional blocks.
* `hunger-cost`: when enabled, requires and deducts `amount` food points each time Vein Mine activates. One hunger icon equals 2 food points.
* `break-actions`: Supported placeholders:
  * `{block}`
  * `{block-amount}`
  * `{mining-block-amount}`

Each entry under `rules` associates item matching rules with block IDs:

```yaml
rules:
  ores:
    match-item:
      material-tag:
        - 'pickaxes'
    match-block:
      - 'minecraft:diamond_ore'
      - 'minecraft:deepslate_diamond_ore'
```

For `match-item` option, should use [Match Item Format](/ultimatetweak/format/match-item-format) here.

For `match-block` option, supports:

* `minecraft:<Minecraft Block ID>`, like minecraft:stone.
* `itemsadder:<NamespaceID>:<Block ID>`, like `itemsadder:blocks:block_1`.
* `oraxen:<Item ID>`, like `oraxen:block_1`.
* `mmoitems:<Block ID>`, like `mmoitems:10`, **block id (is a number, not item id)** is a number been set by your block configs, not item ID.
* `craftengine:<NamespaceID>:<Block Item ID>`, like `craftengine:default::palm_log`.

## Showcase

<figure><img src="https://raw.githubusercontent.com/ManyouTeam/UltimateTweak/refs/heads/master/show/VeinMine.gif" alt=""><figcaption></figcaption></figure>


# 🔦Dynamic Light

## Config

{% code title="tweaks/dynamic-light.yml" %}

```yaml
enabled: true

worlds:
  mode: blacklist
  list: []

permission: "ultimatetweak.dynamic-light"

# How often held items and the player's position are checked.
check-interval-ticks: 2

# Only players within this distance receive fake light block updates, which costs extra server performance.
# Set 0 to send each light only to its owning player.
view-distance: 0

# Every rule is checked against both the main hand and off hand.
rules:
  torches:
    light-level: 14
    match-item:
      material:
        - torch
        - soul_torch
  lanterns:
    light-level: 15
    match-item:
      material:
        - lantern
        - soul_lantern

```

{% endcode %}

Each rule contains `match-item` and `light-level`. Light levels are clamped between `0` and `15`, and both hands are checked.

`permission` is required to create dynamic light. Leave it blank to disable the permission check.

For `match-item` option, should use [Match Item Format](/ultimatetweak/format/match-item-format) here.

## Showcase

<figure><img src="https://318304461-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAskPQntceV5I52fFjXXd%2Fuploads%2FhaZ8D8PYJV5eaRnO7UDO%2F%E5%B1%8F%E5%B9%95%E5%BD%95%E5%88%B6%202026-06-12%20234554.gif?alt=media&amp;token=f9fb5d54-2d7d-4ef5-97d4-84e7fe69884a" alt=""><figcaption></figcaption></figure>


# 🚫Entity Vehicle Restriction

## Config

{% code title="tweaks/entity-vehicle-restriction.yml" %}

```yaml
enabled: false

worlds:
  mode: blacklist
  list: []

# Supported values: boat, minecart
vehicles:
  - boat
  - minecart

# Omit match-entity to match all living entities.
```

{% endcode %}

Set `enabled` to `true`, select `boat` and/or `minecart` under `vehicles`, and optionally add `match-entity`. Omitting `match-entity` matches every living entity.

For `match-entity` option, should use [Match Entity Format](/ultimatetweak/format/match-entity-format) here.


# 🌍Biome Announcer

The configured `permission` is required to receive biome announcements. Leave it blank to disable the permission check.

## Config

```yaml
enabled: true

worlds:
  mode: blacklist
  list: []

permission: "ultimatetweak.biome-announcer"

# Empty list means all biomes.
# Supports names like plains or minecraft:plains.
biomes: []

# How often players' current biomes are checked.
check-interval-ticks: 20

# All conditions must pass before sending the biome change message.
conditions: []

# Default message.
message: "[title]&e{lang:biome-announcer}[/title]"

# Executed after entering a different biome.
# You can use {biome}, {from-biome}, and {to-biome} in action strings.
biome-change-actions:
  1:
    type: sound
    sound: entity.experience_orb.pickup
    volume: 1.0
    pitch: 1.2

# Optional per-biome messages. These override message above.
# Supports names like plains or minecraft:plains.
biome-messages:
  "terralith:alpha_islands": "[title]&e{lang:biome-announcer-terralith-alpha_islands}[/title]"
  "terralith:alpha_islands_winter": "[title]&e{lang:biome-announcer-terralith-alpha_islands_winter}[/title]"
  "terralith:alpine_grove": "[title]&e{lang:biome-announcer-terralith-alpine_grove}[/title]"
  "terralith:alpine_highlands": "[title]&e{lang:biome-announcer-terralith-alpine_highlands}[/title]"
  "terralith:amethyst_canyon": "[title]&e{lang:biome-announcer-terralith-amethyst_canyon}[/title]"
  "terralith:amethyst_rainforest": "[title]&e{lang:biome-announcer-terralith-amethyst_rainforest}[/title]"
  "terralith:ancient_sands": "[title]&e{lang:biome-announcer-terralith-ancient_sands}[/title]"
  "terralith:arid_highlands": "[title]&e{lang:biome-announcer-terralith-arid_highlands}[/title]"
  "terralith:ashen_savanna": "[title]&e{lang:biome-announcer-terralith-ashen_savanna}[/title]"
  "terralith:basalt_cliffs": "[title]&e{lang:biome-announcer-terralith-basalt_cliffs}[/title]"
  "terralith:birch_taiga": "[title]&e{lang:biome-announcer-terralith-birch_taiga}[/title]"
  "terralith:blooming_plateau": "[title]&e{lang:biome-announcer-terralith-blooming_plateau}[/title]"
  "terralith:blooming_valley": "[title]&e{lang:biome-announcer-terralith-blooming_valley}[/title]"
  "terralith:brushland": "[title]&e{lang:biome-announcer-terralith-brushland}[/title]"
  "terralith:bryce_canyon": "[title]&e{lang:biome-announcer-terralith-bryce_canyon}[/title]"
  "terralith:caldera": "[title]&e{lang:biome-announcer-terralith-caldera}[/title]"
  "terralith:cloud_forest": "[title]&e{lang:biome-announcer-terralith-cloud_forest}[/title]"
  "terralith:cold_shrubland": "[title]&e{lang:biome-announcer-terralith-cold_shrubland}[/title]"
  "terralith:desert_oasis": "[title]&e{lang:biome-announcer-terralith-desert_oasis}[/title]"
  "terralith:desert_spires": "[title]&e{lang:biome-announcer-terralith-desert_spires}[/title]"
  "terralith:emerald_peaks": "[title]&e{lang:biome-announcer-terralith-emerald_peaks}[/title]"
  "terralith:forested_highlands": "[title]&e{lang:biome-announcer-terralith-forested_highlands}[/title]"
  "terralith:fractured_savanna": "[title]&e{lang:biome-announcer-terralith-fractured_savanna}[/title]"
  "terralith:frozen_cliffs": "[title]&e{lang:biome-announcer-terralith-frozen_cliffs}[/title]"
  "terralith:glacial_chasm": "[title]&e{lang:biome-announcer-terralith-glacial_chasm}[/title]"
  "terralith:granite_cliffs": "[title]&e{lang:biome-announcer-terralith-granite_cliffs}[/title]"
  "terralith:gravel_beach": "[title]&e{lang:biome-announcer-terralith-gravel_beach}[/title]"
  "terralith:gravel_desert": "[title]&e{lang:biome-announcer-terralith-gravel_desert}[/title]"
  "terralith:haze_mountain": "[title]&e{lang:biome-announcer-terralith-haze_mountain}[/title]"
  "terralith:highlands": "[title]&e{lang:biome-announcer-terralith-highlands}[/title]"
  "terralith:hot_shrubland": "[title]&e{lang:biome-announcer-terralith-hot_shrubland}[/title]"
  "terralith:ice_marsh": "[title]&e{lang:biome-announcer-terralith-ice_marsh}[/title]"
  "terralith:jungle_mountains": "[title]&e{lang:biome-announcer-terralith-jungle_mountains}[/title]"
  "terralith:lavender_forest": "[title]&e{lang:biome-announcer-terralith-lavender_forest}[/title]"
  "terralith:lavender_valley": "[title]&e{lang:biome-announcer-terralith-lavender_valley}[/title]"
  "terralith:lush_valley": "[title]&e{lang:biome-announcer-terralith-lush_valley}[/title]"
  "terralith:mirage_isles": "[title]&e{lang:biome-announcer-terralith-mirage_isles}[/title]"
  "terralith:moonlight_grove": "[title]&e{lang:biome-announcer-terralith-moonlight_grove}[/title]"
  "terralith:moonlight_valley": "[title]&e{lang:biome-announcer-terralith-moonlight_valley}[/title]"
  "terralith:mountain_steppe": "[title]&e{lang:biome-announcer-terralith-mountain_steppe}[/title]"
  "terralith:orchid_swamp": "[title]&e{lang:biome-announcer-terralith-orchid_swamp}[/title]"
  "terralith:painted_mountains": "[title]&e{lang:biome-announcer-terralith-painted_mountains}[/title]"
  "terralith:red_oasis": "[title]&e{lang:biome-announcer-terralith-red_oasis}[/title]"
  "terralith:rocky_jungle": "[title]&e{lang:biome-announcer-terralith-rocky_jungle}[/title]"
  "terralith:rocky_mountains": "[title]&e{lang:biome-announcer-terralith-rocky_mountains}[/title]"
  "terralith:rocky_shrubland": "[title]&e{lang:biome-announcer-terralith-rocky_shrubland}[/title]"
  "terralith:sakura_grove": "[title]&e{lang:biome-announcer-terralith-sakura_grove}[/title]"
  "terralith:sakura_valley": "[title]&e{lang:biome-announcer-terralith-sakura_valley}[/title]"
  "terralith:sandstone_valley": "[title]&e{lang:biome-announcer-terralith-sandstone_valley}[/title]"
  "terralith:savanna_badlands": "[title]&e{lang:biome-announcer-terralith-savanna_badlands}[/title]"
  "terralith:savanna_slopes": "[title]&e{lang:biome-announcer-terralith-savanna_slopes}[/title]"
  "terralith:scarlet_mountains": "[title]&e{lang:biome-announcer-terralith-scarlet_mountains}[/title]"
  "terralith:shield": "[title]&e{lang:biome-announcer-terralith-shield}[/title]"
  "terralith:shield_clearing": "[title]&e{lang:biome-announcer-terralith-shield_clearing}[/title]"
  "terralith:shrubland": "[title]&e{lang:biome-announcer-terralith-shrubland}[/title]"
  "terralith:siberian_grove": "[title]&e{lang:biome-announcer-terralith-siberian_grove}[/title]"
  "terralith:siberian_taiga": "[title]&e{lang:biome-announcer-terralith-siberian_taiga}[/title]"
  "terralith:skylands": "[title]&e{lang:biome-announcer-terralith-skylands}[/title]"
  "terralith:skylands_autumn": "[title]&e{lang:biome-announcer-terralith-skylands_autumn}[/title]"
  "terralith:skylands_spring": "[title]&e{lang:biome-announcer-terralith-skylands_spring}[/title]"
  "terralith:skylands_summer": "[title]&e{lang:biome-announcer-terralith-skylands_summer}[/title]"
  "terralith:skylands_winter": "[title]&e{lang:biome-announcer-terralith-skylands_winter}[/title]"
  "terralith:snowy_badlands": "[title]&e{lang:biome-announcer-terralith-snowy_badlands}[/title]"
  "terralith:snowy_maple_forest": "[title]&e{lang:biome-announcer-terralith-snowy_maple_forest}[/title]"
  "terralith:snowy_shield": "[title]&e{lang:biome-announcer-terralith-snowy_shield}[/title]"
  "terralith:steppe": "[title]&e{lang:biome-announcer-terralith-steppe}[/title]"
  "terralith:stony_spires": "[title]&e{lang:biome-announcer-terralith-stony_spires}[/title]"
  "terralith:temperate_highlands": "[title]&e{lang:biome-announcer-terralith-temperate_highlands}[/title]"
  "terralith:tropical_jungle": "[title]&e{lang:biome-announcer-terralith-tropical_jungle}[/title]"
  "terralith:valley_clearing": "[title]&e{lang:biome-announcer-terralith-valley_clearing}[/title]"
  "terralith:volcanic_crater": "[title]&e{lang:biome-announcer-terralith-volcanic_crater}[/title]"
  "terralith:volcanic_peaks": "[title]&e{lang:biome-announcer-terralith-volcanic_peaks}[/title]"
  "terralith:warm_river": "[title]&e{lang:biome-announcer-terralith-warm_river}[/title]"
  "terralith:warped_mesa": "[title]&e{lang:biome-announcer-terralith-warped_mesa}[/title]"
  "terralith:white_cliffs": "[title]&e{lang:biome-announcer-terralith-white_cliffs}[/title]"
  "terralith:white_mesa": "[title]&e{lang:biome-announcer-terralith-white_mesa}[/title]"
  "terralith:windswept_spires": "[title]&e{lang:biome-announcer-terralith-windswept_spires}[/title]"
  "terralith:wintry_forest": "[title]&e{lang:biome-announcer-terralith-wintry_forest}[/title]"
  "terralith:yellowstone": "[title]&e{lang:biome-announcer-terralith-yellowstone}[/title]"
  "terralith:yosemite_cliffs": "[title]&e{lang:biome-announcer-terralith-yosemite_cliffs}[/title]"
  "terralith:yosemite_lowlands": "[title]&e{lang:biome-announcer-terralith-yosemite_lowlands}[/title]"
  "terralith:cave/andesite_caves": "[title]&e{lang:biome-announcer-terralith-cave-slash-andesite_caves}[/title]"
  "terralith:cave/desert_caves": "[title]&e{lang:biome-announcer-terralith-cave-slash-desert_caves}[/title]"
  "terralith:cave/crystal_caves": "[title]&e{lang:biome-announcer-terralith-cave-slash-crystal_caves}[/title]"
  "terralith:cave/diorite_caves": "[title]&e{lang:biome-announcer-terralith-cave-slash-diorite_caves}[/title]"
  "terralith:cave/frostfire_caves": "[title]&e{lang:biome-announcer-terralith-cave-slash-frostfire_caves}[/title]"
  "terralith:cave/fungal_caves": "[title]&e{lang:biome-announcer-terralith-cave-slash-fungal_caves}[/title]"
  "terralith:cave/granite_caves": "[title]&e{lang:biome-announcer-terralith-cave-slash-granite_caves}[/title]"
  "terralith:cave/infested_Caves": "[title]&e{lang:biome-announcer-terralith-cave-slash-infested_caves}[/title]"
  "terralith:cave/ice_caves": "[title]&e{lang:biome-announcer-terralith-cave-slash-ice_caves}[/title]"
  "terralith:cave/mantle_caves": "[title]&e{lang:biome-announcer-terralith-cave-slash-mantle_caves}[/title]"
  "terralith:cave/thermal_caves": "[title]&e{lang:biome-announcer-terralith-cave-slash-thermal_caves}[/title]"
  "terralith:cave/tuff_caves": "[title]&e{lang:biome-announcer-terralith-cave-slash-tuff_caves}[/title]"
  "terralith:cave.andesite_caves": "[title]&e{lang:biome-announcer-terralith-cave-dot-andesite_caves}[/title]"
  "terralith:cave.desert_caves": "[title]&e{lang:biome-announcer-terralith-cave-dot-desert_caves}[/title]"
  "terralith:cave.diorite_caves": "[title]&e{lang:biome-announcer-terralith-cave-dot-diorite_caves}[/title]"
  "terralith:cave.frostfire_caves": "[title]&e{lang:biome-announcer-terralith-cave-dot-frostfire_caves}[/title]"
  "terralith:cave.fungal_caves": "[title]&e{lang:biome-announcer-terralith-cave-dot-fungal_caves}[/title]"
  "terralith:cave.granite_caves": "[title]&e{lang:biome-announcer-terralith-cave-dot-granite_caves}[/title]"
  "terralith:cave.ice_caves": "[title]&e{lang:biome-announcer-terralith-cave-dot-ice_caves}[/title]"
  "terralith:cave.mantle_caves": "[title]&e{lang:biome-announcer-terralith-cave-dot-mantle_caves}[/title]"
  "terralith:cave.thermal_caves": "[title]&e{lang:biome-announcer-terralith-cave-dot-thermal_caves}[/title]"
  "terralith:cave.tuff_caves": "[title]&e{lang:biome-announcer-terralith-cave-dot-tuff_caves}[/title]"
```


# 🏛️Structure Announcer

The configured `permission` is required to receive structure announcements. Leave it blank to disable the permission check.

## Config

```yaml
enabled: true

worlds:
  mode: blacklist
  list: []

permission: "ultimatetweak.structure-announcer"

# Empty list means all structures.
# Supports names like village_plains or minecraft:village_plains.
structures: []

# How often players' current structures are checked.
check-interval-ticks: 20

# All conditions must pass before sending the structure enter message.
conditions: []

# Default message.
message: "[title]&e{lang:structure-announcer}[/title]"

# Executed after entering a structure.
# You can use {structure}, {from-structure}, and {to-structure} in action strings.
structure-enter-actions:
  1:
    type: sound
    sound: entity.experience_orb.pickup
    volume: 1.0
    pitch: 1.2

# Optional per-structure messages. These override message above.
structure-messages:
  ancient_city: "[title]&e{lang:structure-announcer-ancient-city}[/title]"
  bastion_remnant: "[title]&e{lang:structure-announcer-bastion-remnant}[/title]"
  buried_treasure: "[title]&e{lang:structure-announcer-buried-treasure}[/title]"
  "terralith:desert_outpost": "[title]&e{lang:structure-announcer-desert-outpost}[/title]"
  desert_pyramid: "[title]&e{lang:structure-announcer-desert-pyramid}[/title]"
  end_city: "[title]&e{lang:structure-announcer-end-city}[/title]"
  "terralith:fortified_desert_village": "[title]&e{lang:structure-announcer-fortified-desert-village}[/title]"
  "terralith:fortified_village": "[title]&e{lang:structure-announcer-fortified-village}[/title]"
  fortress: "[title]&e{lang:structure-announcer-fortress}[/title]"
  "terralith:frosted_dungeon": "[title]&e{lang:structure-announcer-frosted-dungeon}[/title]"
  "terralith:giant_bee_hive": "[title]&e{lang:structure-announcer-giant-bee-hive}[/title]"
  "terralith:glacial_hut": "[title]&e{lang:structure-announcer-glacial-hut}[/title]"
  igloo: "[title]&e{lang:structure-announcer-igloo}[/title]"
  jungle_pyramid: "[title]&e{lang:structure-announcer-jungle-pyramid}[/title]"
  "terralith:mage_complex": "[title]&e{lang:structure-announcer-mage-complex}[/title]"
  "terralith:mage_tower": "[title]&e{lang:structure-announcer-mage-tower}[/title]"
  "terralith:mage_tower_autumn": "[title]&e{lang:structure-announcer-mage-tower-autumn}[/title]"
  "terralith:mage_tower_spring": "[title]&e{lang:structure-announcer-mage-tower-spring}[/title]"
  "terralith:mage_tower_summer": "[title]&e{lang:structure-announcer-mage-tower-summer}[/title]"
  "terralith:mage_tower_winter": "[title]&e{lang:structure-announcer-mage-tower-winter}[/title]"
  mansion: "[title]&e{lang:structure-announcer-mansion}[/title]"
  "terralith:mining_outpost": "[title]&e{lang:structure-announcer-mining-outpost}[/title]"
  mineshaft: "[title]&e{lang:structure-announcer-mineshaft}[/title]"
  monument: "[title]&e{lang:structure-announcer-monument}[/title]"
  "terralith:oak_cabin": "[title]&e{lang:structure-announcer-oak-cabin}[/title]"
  "terralith:old_refinery": "[title]&e{lang:structure-announcer-old-refinery}[/title]"
  pillager_outpost: "[title]&e{lang:structure-announcer-pillager-outpost}[/title]"
  "terralith:rubble_desert": "[title]&e{lang:structure-announcer-rubble-desert}[/title]"
  "terralith:rubble_forest": "[title]&e{lang:structure-announcer-rubble-forest}[/title]"
  "terralith:rubble_jungle": "[title]&e{lang:structure-announcer-rubble-jungle}[/title]"
  "terralith:rubble_mesa": "[title]&e{lang:structure-announcer-rubble-mesa}[/title]"
  "terralith:rubble_mountain": "[title]&e{lang:structure-announcer-rubble-mountain}[/title]"
  "terralith:rubble_taiga": "[title]&e{lang:structure-announcer-rubble-taiga}[/title]"
  ruined_portal: "[title]&e{lang:structure-announcer-ruined-portal}[/title]"
  shipwreck: "[title]&e{lang:structure-announcer-shipwreck}[/title]"
  "terralith:spire": "[title]&e{lang:structure-announcer-spire}[/title]"
  stronghold: "[title]&e{lang:structure-announcer-stronghold}[/title]"
  "terralith:sunken_tower": "[title]&e{lang:structure-announcer-sunken-tower}[/title]"
  swamp_hut: "[title]&e{lang:structure-announcer-swamp-hut}[/title]"
  trail_ruins: "[title]&e{lang:structure-announcer-trail-ruins}[/title]"
  trial_chambers: "[title]&e{lang:structure-announcer-trial-chambers}[/title]"
  "terralith:underground_cabin": "[title]&e{lang:structure-announcer-underground-cabin}[/title]"
  "terralith:valley_lodge": "[title]&e{lang:structure-announcer-valley-lodge}[/title]"
  village_desert: "[title]&e{lang:structure-announcer-village-desert}[/title]"
  village_plains: "[title]&e{lang:structure-announcer-village-plains}[/title]"
  village_savanna: "[title]&e{lang:structure-announcer-village-savanna}[/title]"
  village_snowy: "[title]&e{lang:structure-announcer-village-snowy}[/title]"
  village_taiga: "[title]&e{lang:structure-announcer-village-taiga}[/title]"
  "terralith:witch_hut": "[title]&e{lang:structure-announcer-witch-hut}[/title]"
```


# 🛡️Structure Auto Protect

## Config

```yaml
enabled: false

worlds:
  mode: blacklist
  list: []

# The protection hook used for creating regions.
protection-hook: Dominion

# Empty list means all structures.
structures: []

# How often loaded structures around online players are checked.
check-interval-ticks: 100

# Prefix for generated protection region ids.
region-id-prefix: "ut_structure_"

# Expands the created region vertically beyond the generated structure bounding box.
expand-y: 0

# Print create/already-exists results to console.
debug: false
```

For list of supported `protection-hook`, please [click here](/ultimatetweak/info/compatibility). Some plugins does not support this. The Dominion plugin is tested.


# 🪜Auto Ladder

{% hint style="info" %}
This tweak is provided by TweakExpansion.
{% endhint %}

Auto Ladder accelerates climbing and sliding after the player has climbed a short distance normally. Look up to climb, look down to slide, or sneak to stop the automatic movement. At the top of a climbable column, the optional top-exit boost pushes the player onto the floor ahead.

## Permission

`ultimatetweak.auto-ladder` is required by default. Set `permission` to an empty string to allow every player who passes `conditions`.

## Config

{% code title="tweaks/auto-ladder.yml" %}

```yaml
enabled: true

worlds:
  mode: blacklist
  list: []

permission: "ultimatetweak.auto-ladder"

activation-distance: 1.0

movement:
  climb-speed: 0.50
  slide-speed: 0.60

top-exit:
  enabled: true
  forward-speed: 0.38
  vertical-speed: 0.28

look:
  activation-angle: 30.0
  release-angle: 15.0

include-scaffolding: false

conditions: []
```

{% endcode %}

* `activation-distance`: distance the player must first climb normally. Set it to `0` to activate immediately.
* `movement.climb-speed` and `movement.slide-speed`: vertical velocity in blocks per tick.
* `top-exit`: controls the forward and upward boost at the top of a climbable column.
* `look.activation-angle`: how far the player must look up or down to start moving.
* `look.release-angle`: lower threshold used to keep the current direction stable near the activation angle.
* `include-scaffolding`: whether scaffolding is controlled in addition to vanilla climbable blocks.
* `conditions`: conditions that must pass before the tweak can activate. See [Condition Format](/ultimatetweak/format/condition-format).


# 📦Better Drop Display

{% hint style="info" %}
This tweak is provided by TweakExpansion.
{% endhint %}

Better Drop Display replaces the visual model of dropped items with animated packet displays. The original item entity remains authoritative for gravity, movement, merging, despawning, hopper collection, and player pickup.

Items can tumble while moving, settle naturally on the ground, show a name and amount label, and shrink toward the player when picked up. Model profiles allow different transforms and dimensions for selected items.

## Config

{% code title="tweaks/better-drop-display.yml" %}

```yaml
enabled: true

worlds:
  mode: blacklist
  list: []

limits:
  view-distance: 32
  max-tracked: 2048
  max-per-viewer: 128
  max-per-chunk: 64

motion:
  tumble: true
  update-interval-ticks: 1
  interpolation-ticks: 1
  airborne-degrees-per-block: 300
  ground-degrees-per-block: 360
  spin:
    x: 160
    y: 120
    z: 100
  variance: 0.2
  velocity-influence: 0.35
  submerged-multiplier: 0.35

settling:
  delay-ticks: 4
  enter-movement-threshold: 0.03
  wake-threshold: 0.04
  face-attraction: 0.35
  moving-face-attraction: 0.08
  alignment-degrees: 0.5
  poll-interval-ticks: 10

label:
  enabled: true
  show-amount: true
  format: "&f{name} &7×{amount}"
  height: 0.55

pickup-animation:
  duration-ticks: 4
  final-scale: 0.15

render:
  transform: fixed
  landing-duration-ticks: 4
  random-yaw: true
  full-bright: false
  shadow:
    radius: 0.15
    strength: 0.35
  view-range: 1.0
  models:
    blocks:
      priority: 10
      match-item:
        is-block: true
      display: item
      landing-mode: natural
      transform: fixed
      scale:
        x: 0.65
        y: 0.65
        z: 0.65
      dimensions:
        x: 1.0
        y: 1.0
        z: 1.0
      center:
        x: 0.0
        y: 0.0
        z: 0.0
      translation:
        x: 0.0
        z: 0.0
      clearance: 0.02
      rotation:
        x: 0.0
        y: 0.0
        z: 0.0
      landing-start:
        rotation:
          x: 0.0
          y: 0.0
          z: 0.0
        offset-y: 0.0
    default:
      display: item
      landing-mode: natural
      transform: fixed
      scale:
        x: 0.65
        y: 0.65
        z: 0.65
      dimensions:
        x: 1.0
        y: 1.0
        z: 0.0625
      center:
        x: 0.0
        y: 0.0
        z: 0.0
      translation:
        x: 0.0
        z: 0.0
      clearance: 0.02
      rotation:
        x: -90.0
        y: 0.0
        z: 0.0
      landing-start:
        rotation:
          x: -90.0
          y: 0.0
          z: 0.0
        offset-y: 0.0
```

{% endcode %}

### Limits

* `view-distance`: maximum distance at which a player receives a display.
* `max-tracked`: server-wide tracked-item limit.
* `max-per-viewer`: maximum displays sent to one player.
* `max-per-chunk`: maximum tracked items in one chunk.

### Motion and settling

* `motion.tumble`: enables animated item rotation.
* `motion.update-interval-ticks` and `interpolation-ticks`: control update frequency and client interpolation.
* `motion.airborne-degrees-per-block`: compatibility baseline; `300` gives a `1.0` multiplier to the configured spin values.
* `motion.ground-degrees-per-block`: rolling rotation rate while touching the ground.
* `motion.spin`: X, Y, and Z spin rates.
* `motion.variance`: random per-item spin variation.
* `motion.velocity-influence`: how strongly movement affects rotation.
* `motion.submerged-multiplier`: motion multiplier while submerged.
* `settling.delay-ticks`: delay before a nearly stationary item starts settling.
* `settling.enter-movement-threshold` and `wake-threshold`: speed thresholds for entering and leaving the settled state.
* `settling.face-attraction` and `moving-face-attraction`: strength used to rotate an item toward a stable landing face.
* `settling.alignment-degrees`: angular tolerance for considering an item aligned.
* `settling.poll-interval-ticks`: interval between checks for settled items.

### Label and pickup

* `label.show-amount`: makes `{amount}` available in the main label.
* `label.format`: supports `{name}` and `{amount}`.
* `label.height`: vertical label offset.
* `pickup-animation.duration-ticks`: length of the animation toward the collector.
* `pickup-animation.final-scale`: display scale at the end of pickup.

### Rendering and model profiles

* `render.transform`: default Bukkit item display transform.
* `render.landing-duration-ticks`: transition length when an item settles.
* `render.random-yaw`: gives newly tracked items a random horizontal rotation.
* `render.full-bright`: renders models at full brightness.
* `render.shadow.radius` and `strength`: display shadow settings.
* `render.view-range`: display entity view-range multiplier.
* `render.models`: model profiles checked by `priority`. The `default` profile is used when no other profile matches.
* `match-item`: selects items for a profile using [Match Item Format](/ultimatetweak/format/match-item-format).
* `display`: display type used by the profile. The defaults use `item` to preserve resource-pack item models.
* `landing-mode`: controls how the model chooses a resting face.
* `scale`, `dimensions`, `center`, `translation`, `clearance`, and `rotation`: describe the model's geometry and transform. Ground placement automatically includes the vanilla item-display transform scale, so `fixed` models no longer float above their calculated support surface.
* `landing-start.rotation` and `landing-start.offset-y`: starting transform for the landing transition.


# ✨Block Highlighter

{% hint style="info" %}
This tweak is provided by TweakExpansion.
{% endhint %}

Block Highlighter incrementally scans nearby blocks and gives matching blocks a colored glow visible only to the player. Each highlight group has its own block list, color, and optional permission.

## Permissions

* `ultimatetweak.block-highlighter.treasure`: grants access to the default `treasure` group.
* `ultimatetweak.block-highlighter.bypass.occlusion`: keeps highlights visible through obstructing blocks when `highlight-through-blocks` is disabled.

Use an empty group permission to make that group available to everyone.

## Config

{% code title="tweaks/block-highlighter.yml" %}

```yaml
enabled: true

worlds:
  mode: blacklist
  list: []

scan:
  range: 12
  blocks-per-tick: 384
  max-highlights: 12
  rescan-delay-ticks: 10

display:
  view-distance: 32

visibility:
  highlight-through-blocks: false
  check-interval-ticks: 2
  ray-trace:
    ignore-passable-blocks: true
    fluid-collision-mode: NEVER
  target-bounds-overrides: {}

highlight-groups:
  treasure:
    permission: "ultimatetweak.block-highlighter.treasure"
    blocks:
      - CHEST
      - TRAPPED_CHEST
      - BARREL
      - ENDER_CHEST
    glow-color: "#FFD54A"

conditions: []
```

{% endcode %}

* `scan.range`: search radius around the player.
* `scan.blocks-per-tick`: maximum number of blocks checked per tick for each incremental scan.
* `scan.max-highlights`: maximum simultaneously highlighted blocks per player.
* `scan.rescan-delay-ticks`: delay before starting a new nearby-block scan.
* `display.view-distance`: maximum distance at which a highlight is sent to the player.
* `visibility.highlight-through-blocks`: whether matching blocks glow through obstructions.
* `visibility.check-interval-ticks`: interval between line-of-sight checks for existing highlights.
* `visibility.ray-trace.ignore-passable-blocks`: excludes passable blocks from occlusion.
* `visibility.ray-trace.fluid-collision-mode`: Bukkit fluid collision mode: `NEVER`, `SOURCE_ONLY`, or `ALWAYS`.
* `visibility.target-bounds-overrides`: optional local `min-x`, `min-y`, `min-z`, `max-x`, `max-y`, and `max-z` bounds for blocks whose reported geometry is incorrect. Values must be between `0.0` and `1.0`.
* `highlight-groups`: maps group IDs to a `permission`, block material list, and hexadecimal `glow-color`.
* `conditions`: conditions that must pass before the tweak can activate. See [Condition Format](/ultimatetweak/format/condition-format).


# 👁️Container Preview

{% hint style="info" %}
This tweak is provided by TweakExpansion.
{% endhint %}

Container Preview shows the contents of the container the player is looking at. Supported processing blocks can also show live furnace, brewing stand, and beehive status below the inventory panel. The preview uses packet displays and does not create persistent display entities.

## Permission

`ultimatetweak.container-preview` is required by default. Set `permission` to an empty string to allow every player who passes `conditions`.

## Config

{% code title="tweaks/container-preview\.yml" %}

```yaml
enabled: true

worlds:
  mode: blacklist
  list: []

permission: "ultimatetweak.container-preview"
look-distance: 8.0
scan-interval-ticks: 2
protection-check: true

display:
  scale: 1.0
  distance: 1.5
  show-amounts: true
  show-durability: true
  background-color: "50000000"
  max-rows: 6
  status:
    enabled: true
    bar-length: 10
    bar-filled: "&a█"
    bar-partial: "&a{char}"
    bar-empty: "&8░"
    furnace-format: "{lang:container-preview-status-furnace}"
    brewing-format: "{lang:container-preview-status-brewing}"
    beehive-format: "{lang:container-preview-status-beehive}"

conditions: []
```

{% endcode %}

* `look-distance`: maximum targeting distance in blocks.
* `scan-interval-ticks`: interval between target and inventory refreshes.
* `protection-check`: hides the preview when any loaded protection hook denies access.
* `display.scale`: size multiplier for the complete panel.
* `display.distance`: reference distance used to place and proportionally scale the panel in front of nearby blocks.
* `display.show-amounts`: shows stack amounts on item entries.
* `display.show-durability`: shows the vanilla-style durability bar beneath damaged items, including the original green-to-red color transition.
* `display.background-color`: panel color in ARGB hexadecimal format.
* `display.max-rows`: maximum number of inventory rows displayed.
* `display.status.enabled`: shows processing information for supported machine inventories.
* `display.status.bar-length`: number of cells in the progress bar.
* `display.status.bar-filled`, `bar-partial`, and `bar-empty`: progress bar characters and colors. `{char}` is available in `bar-partial`.
* `display.status.furnace-format`: supports `{bar}`, `{percent}`, `{current}`, `{total}`, `{remaining}`, and `{fuel}`.
* `display.status.brewing-format`: supports the same general placeholders; brewing fuel uses its native charge level.
* `display.status.beehive-format`: additionally supports `{honey}`, `{max_honey}`, `{bees}`, and `{max_bees}`.
* `conditions`: conditions that must pass before the tweak can activate. See [Condition Format](/ultimatetweak/format/condition-format).


# 💥Damage Indicator


# ❤️Health Bar


# ↕️Elevator

{% hint style="info" %}
This tweak is provided by TweakExpansion.
{% endhint %}

Elevator turns configured blocks into vertical transport points. Stand above an elevator block and jump to travel upward, or start sneaking to travel downward. The destination must have enough room for the player.

Vanilla material IDs and IDs from supported custom-block hooks can be used in `blocks`.

## Permissions

* `ultimatetweak.elevator`: use elevators. This is the default value of `permission`.
* `ultimatetweak.elevator.bypass.same-block`: ignore `require-same-block`.
* `ultimatetweak.elevator.bypass.blocks-between`: ignore `allow-blocks-between: false`.

Set `permission` to an empty string to allow every player who passes `conditions`.

## Config

{% code title="tweaks/elevator.yml" %}

```yaml
enabled: true

worlds:
  mode: blacklist
  list: []

permission: "ultimatetweak.elevator"

blocks:
  - "minecraft:iron_block"

max-distance: 64
require-same-block: false
allow-blocks-between: true
cooldown-ticks: 10
center-player: true
protection-check: true

effects:
  enabled: true

conditions: []
```

{% endcode %}

* `blocks`: blocks treated as elevator floors, such as `minecraft:iron_block` or `oraxen:my_elevator`.
* `max-distance`: maximum vertical search distance for the next elevator.
* `require-same-block`: requires the source and destination to resolve to the same block ID.
* `allow-blocks-between`: allows elevator floors to connect through solid blocks. When disabled, only air may be between them.
* `cooldown-ticks`: prevents the arrival movement from immediately triggering another teleport.
* `center-player`: moves the player to the center of the destination block.
* `protection-check`: requires the destination to pass all loaded protection hooks.
* `effects.enabled`: enables departure and arrival particles and sounds.
* `conditions`: conditions that must pass before the tweak can activate. See [Condition Format](/ultimatetweak/format/condition-format).


# 🧭Guide

{% hint style="info" %}
This tweak is provided by TweakExpansion.
{% endhint %}

Guide places packet-only, camera-relative markers on the player's screen. Markers show their name, distance, and vertical direction. Targets outside the view, including targets behind the player, stay at a screen edge.

The tweak can display the player's bed spawn and last death location automatically. Administrators can also store custom targets in each player's persistent data.

## Commands and permission

The default management permission is `ultimatetweak.guide.admin`. The player being managed must be online.

| Command                                                  | Description                                                                                                                                       |
| -------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- |
| `/ut guide set <player> <id> <x> <y> <z> [world] [name]` | Creates or updates a target at specified coordinates. The target player's current world and the ID are used when the optional values are omitted. |
| `/ut guide here <player> <id> [name]`                    | Creates or updates a target at the command sender's location. This command must be run by a player.                                               |
| `/ut guide remove <player> <id>`                         | Removes one custom target.                                                                                                                        |
| `/ut guide clear <player>`                               | Removes all custom targets from a player.                                                                                                         |
| `/ut guide list <player>`                                | Lists a player's custom target IDs.                                                                                                               |
| `/ut guide hide`                                         | Hides all Guide markers for yourself, including bed spawn, last death, and administrator targets. The preference is saved across reconnects.      |
| `/ut guide show`                                         | Shows all Guide markers for yourself again.                                                                                                       |
| `/ut guide hide <player>` / `/ut guide show <player>`    | Hides or shows every marker for an online player. Requires the Guide admin permission.                                                            |

Players can use `hide` and `show` with the `ultimatetweak.guide.toggle` permission (granted to everyone by default). Managing another player's markers still requires `ultimatetweak.guide.admin`.

The `toggle-permission` option changes the permission required to hide or show your own markers. `permission` continues to control management of another player's targets and markers.

## Config

{% code title="tweaks/guide.yml" %}

```yaml
enabled: true

permission: "ultimatetweak.guide.admin"
toggle-permission: "ultimatetweak.guide.toggle"

worlds:
  mode: blacklist
  list: []

targets:
  maximum-visible: 5
  maximum-saved-per-player: 32

built-in:
  bed-spawn:
    enabled: true
    count-towards-limit: true
    name: "&aBed Spawn"
  last-death:
    enabled: true
    count-towards-limit: true
    name: "&cLast Death"

display:
  update-interval-ticks: 1
  anchor-distance: 6.0
  horizontal-angle-limit-degrees: 36
  vertical-angle-limit-degrees: 16
  tracking-response: 0.65
  stack-spacing: 0.16
  position-interpolation-ticks: 1
  motion-prediction-factor: 1.0
  near-scale: 0.85
  far-scale: 0.55
  far-distance: 500
  see-through: true
  text-shadow: false
  background-color: "#70000000"
  formats:
    admin: "&b◆ &f{name}\n&7{distance}m {vertical}"
    bed-spawn: "&a⌂ &f{name}\n&7{distance}m {vertical}"
    last-death: "&c✦ &f{name}\n&7{distance}m {vertical}"
```

{% endcode %}

* `targets.maximum-visible`: maximum number of targets that count toward the on-screen limit.
* `targets.maximum-saved-per-player`: maximum number of administrator-created targets stored per player.
* `built-in.*.count-towards-limit`: whether that built-in marker uses one of the visible target slots.
* `display.update-interval-ticks`: marker update interval.
* `display.anchor-distance`: distance of the camera-facing plane onto which markers are projected.
* `display.horizontal-angle-limit-degrees` and `vertical-angle-limit-degrees`: screen-edge limits for off-screen targets.
* `display.tracking-response`: marker response speed. `1.0` reacts immediately; lower values glide more slowly.
* `display.stack-spacing`: vertical separation between multiple markers.
* `display.position-interpolation-ticks`: client position interpolation duration. The default `1` smooths movement between server ticks and prevents sprinting jitter; `0` disables interpolation.
* `display.motion-prediction-factor`: horizontal movement prediction multiplier. The default `1.0` predicts one configured update window; `0` disables prediction.
* `display.near-scale`, `far-scale`, and `far-distance`: scale markers according to target distance.
* `display.see-through`: renders marker text through blocks.
* `display.text-shadow`: enables the vanilla TextDisplay glyph shadow. It is disabled by default because a moving shadow can make the marker look doubled or blurred.
* `display.background-color`: marker background in ARGB hexadecimal format.
* `display.formats`: supports `{name}`, `{distance}`, and `{vertical}`.


# 🪽Multi Armor

{% hint style="info" %}
This tweak is provided by TweakExpansion.
{% endhint %}

Multi Armor automatically swaps between a chestplate and an Elytra. It equips an Elytra from the player's storage inventory after the configured fall distance, then restores the chestplate after the player lands. The item that was replaced is kept in the same inventory slot for the next swap.

## Permission

`ultimatetweak.multi-armor` is required by default. Set `permission` to an empty string to allow every player who passes `conditions`.

## Config

{% code title="tweaks/multi-armor.yml" %}

```yaml
enabled: true

worlds:
  mode: blacklist
  list: []

permission: "ultimatetweak.multi-armor"

minimum-fall-distance: 4.0
cooldown-ticks: 60

switch-actions: []
conditions: []
```

{% endcode %}

* `minimum-fall-distance`: distance the player must fall before a worn chestplate is replaced with an Elytra.
* `cooldown-ticks`: delay after each successful swap. `60` ticks equals 3 seconds.
* `switch-actions`: actions executed after either direction of swap completes. See [Action Format](/ultimatetweak/format/action-format).
* `conditions`: conditions that must pass before the tweak can activate. See [Condition Format](/ultimatetweak/format/condition-format).


# 🏹Projectile Prediction

{% hint style="info" %}
This tweak is provided by TweakExpansion.
{% endhint %}

Projectile Prediction renders a packet-only trajectory made of translucent, camera-facing square displays. The squares grow toward the predicted impact point. Bows are previewed while being drawn. Sneak to preview a loaded crossbow, trident, snowball, egg, ender pearl, splash or lingering potion, or experience bottle.

The path is white by default. When the simulation predicts an entity hit, the entire path changes to yellow.

## Permission

`ultimatetweak.projectile-prediction` is required by default. Set `permission` to an empty string to allow every player who passes `conditions`.

## Config

{% code title="tweaks/projectile-prediction.yml" %}

```yaml
enabled: true

worlds:
  mode: blacklist
  list: []

permission: "ultimatetweak.projectile-prediction"

velocity:
  bow: 3.0
  crossbow: 3.15
  trident: 2.5
  light-throw: 1.5
  heavy-throw: 0.5

collision:
  entity-hitbox-expansion: 0.3

display:
  point-spacing: 0.85
  start-scale: 0.08
  end-scale: 0.75
  glyph: "■"
  color: "#FFFFFF"
  hit-color: "#FFD54A"
  opacity: 112
  glowing: true
  interpolation-ticks: 2
  view-range: 1.0

performance:
  update-interval-ticks: 2
  idle-refresh-ticks: 10
  max-simulation-ticks: 80
  simulation-substeps: 3
  max-points: 64
  max-renders-per-tick: 4
  max-ray-traces-per-tick: 480

conditions: []
```

{% endcode %}

* `velocity`: initial speed used to simulate each projectile category.
* `collision.entity-hitbox-expansion`: extra margin added when detecting predicted entity impacts.
* `display.point-spacing`: approximate distance between rendered path points.
* `display.start-scale` and `end-scale`: display size at the beginning and end of the path.
* `display.glyph`: square character rendered by each packet-only text display.
* `display.color`: normal path color.
* `display.hit-color`: path color used when an entity will be hit.
* `display.opacity`: square opacity from `0` to `255`.
* `display.glowing`: enables the entity glow outline. Its glow color follows `color` and changes to `hit-color` for predicted entity hits.
* `display.interpolation-ticks`: client interpolation duration when the path moves.
* `display.view-range`: display entity view-range multiplier.
* `performance.update-interval-ticks`: interval between active trajectory updates.
* `performance.idle-refresh-ticks`: interval used when no supported projectile is being previewed.
* `performance.max-simulation-ticks`, `simulation-substeps`, and `max-points`: bound the detail and length of each simulation.
* `performance.max-renders-per-tick` and `max-ray-traces-per-tick`: server-wide work limits.
* `conditions`: conditions that must pass before the tweak can activate. See [Condition Format](/ultimatetweak/format/condition-format).


# 🌏Advanced Language Managment

## Default Language

You can set default language at `config.yml` file.

```yaml
config-files:
  language: en_US
  # Premium version only.
  per-player-language: true
```

The input here is the name of the language file (without the suffix). All language files are stored in the "`languages`" folder. You can also create a new language file by simply copying the "`en_US.yml`" file and renaming it to the corresponding language code. For example, `zh_CN.yml`.

## Per Player Language <mark style="color:red;">- Premium</mark>

You can enable `per-player-language` at `config.yml` file. After being enabled, the plugin will determine which language file to display to the player based on their client language. The server must have the relevant language files preloaded; otherwise, it will display content using the default language file.

Let us watch this video to understand it!

{% file src="/files/4RIDV2e1r5cDKMI32bZ9" %}

## Lang Placeholder

You can use `{lang:<langKey>}` placeholder in plugin message to enable players from all over the world to display language settings that match their client.

You can add your desired custom language text under the "`override-lang`" section of each language file, in the format of "`ID: text content`". For example:

```yaml
// ... The content originally present in the language file

# Added content
override-lang:
  # This means shop-title it's language key.
  shop-title: 'Item Shop'
```

```yaml
// ... The content originally present in the language file

# Added content
override-lang:
  # This means shop-title it's language key.
  shop-title: '物品商店'
```

Then use `{lang:shop-title}` in the place you want to use.

In `config.yml`, you can directly use `{lang}` to represent the custom language from the language file to be used. The language ID should be synchronized with the configuration file structure in the `config.yml` file, for example:

In `config.yml` file:

```yaml
placeholder:
  # Premium version only
  compare:
    up: '{lang}'
    down: '{lang}'
    same: '{lang}'
```

In each language file:

```yaml
// ... The content originally present in the language file

override-lang:
  placeholder:
    compare:
      up: '↑'
      down: '↓'
      same: '-'
```

Similarly, if we cannot find this custom language in the corresponding language file, we will search for it in the default language file. If it is still not found, then the plugin will not parse this placeholder.

## Advanced Message Format <mark style="color:red;">- Premium</mark>

The default language text is directly filled into the text content that needs to be output, along with [color codes](/ultimatetweak/features/color-code). However, you can also utilize this feature to enable the plugin to display not only regular chat box messages, but also actionbars, titles, bossbars, sounds, and more!

You can still use color codes (including MiniMessage) while using our advanced message format.

### Common Usage

```yaml
welcome: 'Welcome to the server!'
```

### Chat Message

```yaml
welcome: '[message]&aWelcome![/message]'
```

### Title

<pre class="language-yaml"><code class="lang-yaml"><strong>welcome: '[title=20,60,20]&#x26;6Welcome;;&#x26;eThis is sub title[/title]'
</strong># Format: [title=fadeIn,Stay,fadeOut]title;;subTitle[/title]
</code></pre>

### Both Chat Message and Title will be sent

You can mix and match these different message types, just like this.

```yaml
welcome: '[message]&aGood day![/message][title=20,60,20]&6Welcome;;&eThis is sub title[/title]'
```

### Action Bar

```yaml
welcome: '[actionbar]&7Please wait...[/actionbar]'
```

### Boss Bar - Early Alpha

```yaml
welcome: '[bossbar=GREEN,SOLID,1.0]&aHappy Today[/bossbar]'
```

### Sound

```yaml
welcome: '[sound=ENTITY_EXPERIENCE_ORB_PICKUP,1,1][/sound][sound=ENTITY_PLAYER_LEVELUP,1,1][/sound]'
```


# 🎨Color Code

UltimateTweak provides 2 color code format. The plugin will automatically determine which color code format you are using so you don't need set anything about this.

## MiniMessage

* You can check this format [here](https://docs.advntr.dev/minimessage/format.html).
* Requrie Paper or it's fork and at least 1.17.1 server version.
* Can use many advanced feature like font, hover or more.
* You can almost use it everywhere.

## Built-in Color Parser

* Format:
  * To use hex color, you should use special color code, it should like this: **`&#Hex color code`**
  * For example, `&#ff0000`.
  * To use gradient color, you should use special gradient color code, it should like this: **`&<#Start Color Code> Message &<#End Color Code>`**
  * For example, `&<#666666>UltimateTweak &<#ffffff>`.
  * To use common color, an example is `&b`.
  * For version below 1.16, we will auto teanslate hex color to common color.
* Support all versions and server core.
* Only useful color feature supported.
* You can use it everywhere.
* For Paper users who meet use MiniMessage requirements, we will auto translate built-in color parser to MiniMessage format.


# 🎉Welcome

## Info

* MythicRewards is a plugin that keeps track of the damage taken by entities and dynamically distributes rewards when entities are killed.
* A fully customizable plugin with rules. You have the final say on how rewards are distributed! The plugin comes with 6 common rules, but they are just common ones. You can completely rewrite your own rules!
* It comes with common entity matching rules, and you can also develop new entity matching rules yourself. You can set entity matching rules in reward rule config, such as only some powerful bosses will use the reward.
* Built-in many placeholders that can clearly display the record of each ranked player and the player's personal record, such as how much damage was caused.
* An action-based reward process where you can give items via commands, or by using the give\_item or drop\_item actions.
* Built-in Item Format which allow you make any item you desire, including custom food, custom tool, custom attribute, custom armor, and so on.
* Built-in powerful action and condition system instead of commands and permissions only, and UltimateShop allows you can almost use them everywhere!
* So many custom item plugins plugins support, you can use items from those plugin in rewards.
* High flexibility brings infinite possibilities.
* Highly configurable.
* Many, many, other things...


# ✅Requirements

## Java Version

* Basic Requirement: **Java16+**
* **Java 17+** is <mark style="color:red;">recommended</mark>. Java17 and above versions are recommended, but plugins are compiled using **Java16**, so theoretically, you only need Java16 or higher versions.

## Server Software

* **Paper** and its downstream forks are <mark style="color:red;">recommended</mark>. When the plugin detects that your server software is Paper, it will enable some features that are only available in Paper, some of which can provide subtle performance improvements.
* **Folia** server also supported. Please note: Folia's support is in the <mark style="color:red;">early testing stage</mark> and may be released in official versions or removed in the future. This support is not a guarantee.

## Server Version

| Version              | Can work in your server                                                                                                   | Can ger offical support |
| -------------------- | ------------------------------------------------------------------------------------------------------------------------- | ----------------------- |
| **Below 1.14**       | ❌                                                                                                                         | ❌                       |
| **1.14 \~ 1.20.4**   | <p>❓<br>The plugin can run on these versions, however, any issues caused on these versions will not be resolved.</p>      | ❌                       |
| **1.20.5 and above** | <p>✅<br>Using versions <strong>1.21.5</strong> and above is the most recommended, as you can enjoy the best features.</p> | ✅                       |

* If you encounter errors while using a certain version, <mark style="color:red;">please join our Discord feedback</mark>.


# ⚙️Install

## Install <a href="#install" id="install"></a>

* Put the `.jar` file into your server's `plugins` folder.
* Stop your server and then restart it. <mark style="color:red;">Cannot load plugins in any other way while the server is starting</mark>.
* When updating plugins, please be sure to remove old versions.
* When downgrading from **a new game version** to **an old version** on the server where the plugin is located, it is important to remove the `items` folder from the configuration file.


# 🔗Compatibility

This plugin mainly adds **direct compatibility** for some item plugins. If the item plugin you are using is not in the list, you can also use **indirect compatibility**.

## **Direct compatibility**

You can use items from these plugins in [ItemFormat](https://ultimateshop.superiormc.cn/format/itemformat-tm).

* ItemsAdder
* Oraxen
* EcoItems
* EcoArmor
* MMOItems
* MythicMobs
* eco
* NeigeItems
* ExecutableItems
* Nexo
* CraftEngine

## Indirect compatibility

If you want to use items from other plugins in [ItemFormat](https://ultimateshop.superiormc.cn/format/itemformat-tm) and this plugin is not directly compatible, you can save the item through the **save item** feature and then use it through the `material` option in **ItemFormat**.&#x20;


# 🛠️Configuration files

The plugin generates the following configuration files, some of which will only be generated after you first use this feature.

* `items`: The location for storing saved item files. It will only be generated after save any item with `/mc saveitem` command. <mark style="color:red;">Do not modify any content here</mark>.
* `languages`: The location for storing language files. You can set the language file used by the plugin through the `config-files.language` option in the `config.yml` file. You can customize various messages within the plugin game through language files. It is not supported to display the corresponding language file based on the player client language. You can only display the same language for all players.
* `rules`: The location for storing **reward rule** configuration files.
* `config.yml` file: The location for main common settings for plugins.
* `generated-item-format.yml` file: When using the `/mr generateeitemformat` command, we will parse the item you are holding into an **ItemFormat** and store the parsed **ItemFormat** content in this file.
* `XX_xx.json` file: Localized files automatically generated through [Localized Item Name](broken://pages/kHobouLr87YLYg8FXG4w) feature. The name of this file is determined based on the localized language you have set for this feature, but it usually ends in `. json`.

## Config.yml file content

```yaml
# MythicRewards by @PQguanfang
#
# Read the Wiki here: https://manyou.gitbook.io/mythicrewards

debug: false

# Support value:
# NORL = The number of rules limited (up to 8 reward rules)
# ATL = Action types limited (you can not use drop_item and give_item action)
# FULL = All features without any limits (require server install PREMIUM version of UltimateShop or MythicTotem or MythicPrefixes)
license-type: NORL

config-files:
  force-parse-mini-message: true
  language: 'en_US'

placeholders:
  result:
    unknown-player: 'Unknown'
    damage-format: "%.0f"
    percentage-format: "%.1f"
```


# ⌨️Commands & Permissions

## /mr reload

Reload the plugin. Some changes still need restart the whole server.

Require `mythicrewards.reload` permission.

## /mr saveitem \<itemID>

Save your hold items.

Require `mythicrewards.saveitem` permission.

## /mr givesaveitem \<itemID> \[player] \[amount]

Give saved item to players.

Require `mythicrewards.givesaveitem` permission.

## /mr generateitemformat <a href="#shop-generateitemformat" id="shop-generateitemformat"></a>

Generate hold item into Item Format at `plugins/MythicRewards` folder.

Require `mythicrewards.generateitemformat` permissio


# ❓FAQ

## Which placeholders can I use in Actions or Conditions?

MythicRewards only supports those placeholders in ActionFormat and ConditionFormat.

* {world}
* {player-x}
* {player-y}
* {player-z}
* {player-pitch}
* {player-yaw}
* {player} - Player Name
* {entity-x}
* {entity-y}
* {entity-z}
* {entity-pitch}
* {entity-yaw}
* {entity} - Entity Name
* {entity-health} - Added in 1.0.5.
* {total-damage}
* {rank}
* {damage}&#x20;
* {percentage}
* {player\_\<rank>}, like `{player_1}`. representing the top ranked player.
* {damage\_\<rank>}, like `{damage_1}`.
* {percentage\_\<rank>}, like `{percentage_1}`.

## Can I set 2 or more reward rules for same entity?

No!


# 🆚Compare

|                                                                                                                                                                                                                              | Free | Premium |
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---- | ------- |
| <p><strong>Unlimited Reward Rule Support</strong></p><p>Premium version can create unlimited reward rules while free version can create up to 8 reward rules.</p>                                                            | ❌    | ✅       |
| <p><strong>More Advanced Actions</strong> </p><p>Premium version supports use more advanced actions. For more info, please view <a href="/mythicrewards/format/action-format">Action Format</a> page.</p>                    | ❌    | ✅       |
| **Per Player Language & Advanced Language Message Format (Support send boss bar, action bar, sound, title in message!)** Click [here](https://ultimateshop.superiormc.cn/features/advanced-language-managment) to know more. | ❌    | ✅       |
| <p><strong>More...</strong> <br>Many small differences were not mentioned here or, I forgot them put here, and more features that are only available in the paid version will be added in the future!</p>                    | ❌    | ✅       |


# 📝ItemFormat™

The **Item Format** provided by **MythicRewards** are almost identical to those in UltimateShop. Therefore, they will not be elaborated on in this wiki. Please refer to UltimateShop's wiki for a detailed introduction about them. Click [here](https://ultimateshop.superiormc.cn/format) to view.

## Random Amount

You can use random number in `amount` option, format is `min number~max number`, for example:

```yaml
  2:
    type: chance
    rate: '{percentage}'
    actions:
      1:
        type: give_item
        item:
          material: apple
          name: 'test'
          amount: 64~128 # <--- Random number
```


# 🎬Action Format

The action format will consist of several options.

{% hint style="info" %}
The `general-actions` in the **Action Format** **example** only represent **Action Format** start from here. Please refer to the page description of the corresponding function for specific option names, such as `pack-actions` or `general-actions`.
{% endhint %}

## General Options

### Rank Limits

Actions will only be executed or conditions will be considered if the player's ranking falls within the limit range. Supported format:

* A number: like `5`. The representative will only be in the **N**th place.
* Use two numbers separated by `~` symbol: like `1~5`. All rankings within this range will be considered.
* `>=` symbol before a number: like `>=1`.
* `<=` symbol before a number: like `<=10`.

```yaml
general-actions:
  1:
    type: message
    rank-limit: 1~2
    message: TEST2
```

### Math <a href="#math" id="math"></a>

You can use placeholders and [Math Calculate Format](https://ultimateshop.superiormc.cn/format/math-calculate-format) in number-type option's value! Just set `math.enabled` option to `true` in `config.yml` file and then enjoy!

```yaml
general-actions:
  1:
    type: chance
    rate: '{percentage}/3' # Use math here.
    actions:
      1:
        type: message
        message: TEST
```

## Supported Placeholders

MythicRewards supports those placeholders in ActionFormat and ConditionFormat.

* {world}
* {player-x}
* {player-y}
* {player-z}
* {player-pitch}
* {player-yaw}
* {player} - Player Name
* {entity-x}
* {entity-y}
* {entity-z}
* {entity-pitch}
* {entity-yaw}
* {entity} - Entity Name
* {entity-health} - Added in 1.0.5.
* {total-damage}
* {rank}
* {damage}&#x20;
* {percentage}
* {player\_\<rank>}, like `{player_1}`. representing the top ranked player.
* {damage\_\<rank>}, like `{damage_1}`.
* {percentage\_\<rank>}, like `{percentage_1}`.

## Sound

Send sound to player.

```yaml
general-actions:
  1:
    type: sound
    sound: 'ui.button.click'
    volume: 1
    pitch: 1
```

## Message

Send a message to the player, support color code.

```yaml
general-actions:
  1:
    type: message
    message: 'Hello!'
```

## Messages

Support multi line.

The line starting with **@ plus a number plus a space** represents that it will only be displayed when there are so many reward players, for example, `@5` (Don't miss the space) represents that it must have 5 reward players to display this line. If there aren't as many players who need rewards, we don't need to display data that ranks lower, so this feature is very important for users who want to hide useless data. In this example, if there is no second place, we will not display the information of the second place, and so on.

```yaml
general-actions:
  1:
    type: message
    messages:
      - '&#FFEE00======================='
      - '&#FF5555⚔ &l{entity-name} &r&#FF4444has been defeated11! ⚔'
      - '&#00FFAA✨TOP DAMAGE DEALERS✨'
      - '@1 &#FF4500🥇 &lFirst: &#FF69B4{player_1} &#FFFFFF(&#32CD32{damage_1}&#FFFFFF | &#1E90FF{percentage_1}%&#FFFFFF)'
      - '@2 &#1E90FF🥈 &lSecond: &#00FFFF{player_2} &#FFFFFF(&#32CD32{damage_2}&#FFFFFF | &#FF69B4{percentage_2}%&#FFFFFF)'
      - '@3 &#32CD32🥉 &lThird: &#FFD700{player_3} &#FFFFFF(&#32CD32{damage_3}&#FFFFFF | &#FF4500{percentage_3}%&#FFFFFF)'
      - '&#FFAA00✨Your Rank: &#FF00FF {rank} &#FFFFFF(&#32CD32{damage}/{total-damage}&#FFFFFF | &#1E90FF{percentage}%&#FFFFFF)'
      - '&#FFEE00======================='
```

## Title <a href="#title" id="title"></a>

Send title to the player, support the color code.

```yaml
general-actions:
  1:
    type: title
    main-title: 'Good day'
    sub-title: 'Not bad'
    fade-in: 10
    stay: 70
    fade-out: 30
```

## Particle <a href="#particle" id="particle"></a>

```yaml
actions:
  1: 
    type: particle
    particle: HEART
    count: 20
    offset-x: 0.3
    offset-y: 1.0
    offset-z: 0.3
    speed: 0.01
```

## Effect

Give players potion effect.

```yaml
general-actions:
  1:
    type: effect
    potion: BLINDNESS
    duration: 60
    level: 1
    ambient: true # Optional
    particles: true # Optional
    icon: true # Optional
```

## Teleport

Teleport player to specified location.

```yaml
general-actions:
  1:
    type: teleport
    world: LobbyWorld
    x: 100
    y: 30
    z: 300
    pitch: 90 # Optional
    yaw: 0 # Optional
```

## Player Command

Make the player excutes a command.

```yaml
general-actions:
  1:
    type: player_command
    command: 'tell Hello!'
```

## Op Command

Make the player excutes a command as OP.

```yaml
general-actions:
  1:
    type: op_command
    command: 'tell Hello!'
```

## Console Command

Make the console excutes a command.

```yaml
general-actions:
  1:
    type: console_command
    command: 'op {player}'
```

## Spawn vanilla mobs

Spawn vanilla mobs.

```yaml
general-actions:
  1:
    type: entity_spawn
    entity: ZOMBIE
    world: LOBBY # Optional
    x: 100.0 # Optional
    y: 2.0 # Optional
    z: -100.0 # Optional
```

## MythicMobs spawn

Require MythicMobs.

```yaml
general-actions:
  1:
    type: mythicmobs_spawn
    entity: Super_Skeleton
    level: 1 # Optional
    world: LOBBY # Optional
    x: 100.0 # Optional
    y: 2.0 # Optional
    z: -100.0 # Optional
```

## Delay

Make the action run after X ticks.

```yaml
general-actions:
  1:
    type: delay
    time: 50
    actions:
      1:
        type: entity_spawn
        entity: ZOMBIE
```

## Chance

Set the chance the action will be excuted, up to 100. 50 means this action has 50% chance to excute.

```yaml
genneal-actions:
  1:
    type: chance
    rate: 50
    actions:
      1:
        type: entity_spawn
        entity: ZOMBIE
```

## Any

Randomly choose specified amount of actions to execute.

```yaml
general-actions:
  1:
    type: any
    amount: 2
    actions:
      1:
        type: entity_spawn
        entity: ZOMBIE
      2:
        type: entity_spawn
        entity: SKELETON
      3:
        type: entity_spawn
        entity: WITHER
```

## Conditional

Only players meet the conditions you set here will be able to execute the action.

```yaml
general-actions:
  1:
    type: conditional
    conditions:
      1: 
        type: world
        world: lobby
    actions:
      1:
        type: entity_spawn
        entity: ZOMBIE
```

## Give Item <mark style="color:red;">- Premium</mark>

Should use ItemFormat in `item` option. For more info about Item Format, plaese [click here](https://ultimateshop.superiormc.cn/format/itemformat-tm).

```yaml
general-actions:
  1:
    type: give_item
    item:
      material: apple # Item Format here
```

## Drop Item <mark style="color:red;">- Premium, Paper 1.19.1+ only</mark>

Should use ItemFormat in `item` option. For more info about Item Format, plaese [click here](https://ultimateshop.superiormc.cn/format/itemformat-tm).

```yaml
general-actions:
  1:
    type: drop_item
    item:
      material: apple # Item Format here
      world: world # Optional, support placeholder
      x: 15 # Optional, support placeholder
      y: 12 # Optional, support placeholder
      z: 10 # Optional, support placeholder
```


# ⚖️Condition Format

The condition format will consist of several options.

## Supported Placeholders

MythicRewards supports those placeholders in ActionFormat and ConditionFormat.

* {world}
* {player-x}
* {player-y}
* {player-z}
* {player-pitch}
* {player-yaw}
* {player} - Player Name
* {entity-x}
* {entity-y}
* {entity-z}
* {entity-pitch}
* {entity-yaw}
* {entity} - Entity Name
* {total-damage}
* {rank}
* {damage}&#x20;
* {percentage}
* {player\_\<rank>}, like `{player_1}`. representing the top ranked player.
* {damage\_\<rank>}, like `{damage_1}`.
* {percentage\_\<rank>}, like `{percentage_1}`.

## World

Player must be in the world.

<pre class="language-yaml"><code class="lang-yaml"><strong>  conditions:
</strong>    1:
      type: world
      world: lobby
</code></pre>

## Biome

Player must be in the biome.

```yaml
  conditions:
    1:
      type: biome
      biome: oraxen
```

## Permission

Player must has the permission.

**Remember that OP players will always have all permissions unless plugin set it not by default, so if you want to test this condition, you have to deop yourself.**

```yaml
  conditions:
    1:
      type: permission
      permission: 'group.vip'
```

## Placeholder

Player must be meet the placeholder condition.

Rule can be set to:

* \>=
* <=
* \>
* <
* \== (String)
* \= (Number)
* != (Number or string)
* !\*= (Number or string) Not contains.
* \*= (String) Contains, for example, str \*= string is true, but example \*= ple is false.

```yaml
  conditions:
    1:
      type: placeholder
      placeholder: '%player_health%'
      rule: '<='
      value: 5
```

## Any&#x20;

```yaml
  conditions:
    1:
      type: any
      conditions:
        1:
          type: placeholder
          placeholder: '%eco_balance%'
          rule: '>='
          value: 200
        2:
          type: placeholder
          placeholder: '%player_points%'
          rule: '>='
          value: 400
```

## Not&#x20;

```yaml
  conditions:
    1:
      type: not
      conditions:
        1:
          type: placeholder
          placeholder: '%eco_balance%'
          rule: '>='
          value: 200
```


# ➗Math Calculate Format

The **Math Calculation Format** provided by **MythicRewards** are almost identical to those in UltimateShop. Therefore, they will not be elaborated on in this wiki. Please refer to UltimateShop's wiki for a detailed introduction about them. Click [here](https://ultimateshop.superiormc.cn/format) to view.


# 📌Reward Rules

Reward Rules determines determine which mobs will trigger what rewards after being killed.

{% hint style="danger" %}
Please pay attention to your license type. If your license is **NORL**, you can only use up to 8 reward rules. For more info, please view [here](/mythicrewards/info/compare).
{% endhint %}

## Rule Configs

All reward rules are existed at `rules` folder, you can copy any of them and then try to rename it to other words to create a new rule.

<pre class="language-yaml"><code class="lang-yaml">weight: 15
<strong>
</strong>match-entity:
  mythicmobs:
    - 'Example'

# Means 5 minutes, 20 ticks = 1 second
time-out-ticks: 6000

prevent-vanilla-drops: false
drop-exp: -1

general-actions:
  1:
    type: message
    messages:
      - '&#x26;#FFEE00======================='
      - '&#x26;#FF5555⚔ &#x26;l{entity-name} &#x26;r&#x26;#FF4444has been defeated! ⚔'
      - '&#x26;#00FFAA✨TOP DAMAGE DEALERS✨'
      - '@1 &#x26;#FF4500🥇 &#x26;lFirst: &#x26;#FF69B4{player_1} &#x26;#FFFFFF(&#x26;#32CD32{damage_1}&#x26;#FFFFFF | &#x26;#1E90FF{percentage_1}%&#x26;#FFFFFF)'
      - '@2 &#x26;#1E90FF🥈 &#x26;lSecond: &#x26;#00FFFF{player_2} &#x26;#FFFFFF(&#x26;#32CD32{damage_2}&#x26;#FFFFFF | &#x26;#FF69B4{percentage_2}%&#x26;#FFFFFF)'
      - '@3 &#x26;#32CD32🥉 &#x26;lThird: &#x26;#FFD700{player_3} &#x26;#FFFFFF(&#x26;#32CD32{damage_3}&#x26;#FFFFFF | &#x26;#FF4500{percentage_3}%&#x26;#FFFFFF)'
      - '&#x26;#FFAA00✨Your Rank: &#x26;#FF00FF {rank} &#x26;#FFFFFF(&#x26;#32CD32{damage}/{total-damage}&#x26;#FFFFFF | &#x26;#1E90FF{percentage}%&#x26;#FFFFFF)'
      - '&#x26;#FFEE00======================='
  2:
    type: message
    message: TEST
  3:
    type: message
    message: TEST2
  4:
    type: message
    message: TEST3
</code></pre>

## General Options

* `weight` option represents this rule apply weight.
* `match-entity` option represents which mobs will trigger this rule.

{% hint style="warning" %}
Each entity can only trigger one reward rule! If the entity matches multiple reward rules, only the first detected reward rule will be triggered, and this setting will not be adjusted in subsequent updates.
{% endhint %}

* `time-out-ticks` option represents how long it has been since this mob was not damaged and clears all previous recorded data.

{% hint style="warning" %}
Sometimes, this timer may not reset after causing damage.
{% endhint %}

* `prevent-vanilla-drops`  option reprensent should we prevent the items that MOB was supposed to drop.

{% hint style="warning" %}
Only valid for the vanilla mobs. Some poorly designed plugins did not follow the expected process to set drops for mob, and MythicRewards cannot prevent drops from them. \
Some plugins may also modify mob drops or listen to them, such as dropping items directly into inventorys. In some cases, MythicRewards cannot prevent drops from them too.
{% endhint %}

* `drop-exp` option  reprensent the exp dropped after kill this mob. Set to value less than `0` means we will not modify the mob exp drop value.
* `all-actions` option represents the action will executed to all players online. Use **Action Format** here, for more info, please view [Format](/mythicrewards/format/action-format) page.
* `general-actions` option represents the action will executed to all players who damage the entity. Use **Action Format** here, for more info, please view [Format](/mythicrewards/format/action-format) page.
* `pack-actions` option represents players the action will executed to "packed" players. Use **Action Format** here, for more info, please view [Format](/mythicrewards/format/action-format) page.

## Pack Actions

Pack actions represent automatic execution of actions based on the player's damage percentage.

Each pack action requires setting an `amount` option to determine how many players will be selected to perform the action.

Pack actions support 2 formats:

### Simplify format

This means that you have only set one set of actions, and the `amount` option represents how many players will execute this set of actions.

```yaml
pack-actions:
  amount: 1
  1:
    type: message
    message: TEST
  2:
    type: message
    message: TEST2
  3:
    type: message
    message: TEST3
  4:
    type: message
    message: TEST4
  5:
    type: message
    message: TEST5
  6:
    type: message
    message: TEST6
```

This example represents that all **6** sub actions will be randomly assigned as a whole to the same player. for example:

* Player A deals 50% damage.
* Player B deals 30% damage.
* Player C deals 20% damage.

Randomly based on player damage:

* All actions: 50% chance to be executed by player A, 30% chance to be executed by player B, and 20% chance to be executed by player C.

If you set the value of amount to be different from 1: All actions will be taken as a whole, and the damage percentage will be used as the weight. Select **Amount** for players that you set in `amount` option and execute it multiple times. for example:

* Player A deals 40% damage.
* Player B deals 30% damage.
* Player C deals 20% damage.
* Player D deals 10% damage.
* You set `amount` option value to `3`.

When selecting the first person, player A is selected on 4/10, player B is selected on 3/10, player C is selected on 2/10, and player D is selected on 1/10.\
If the first person is B, the total damage caused by the remaining players changes from 100% to 70%, then:

When selecting the second person, player A is selected on 4/7, player C is selected on 2/7, and player D is selected on 1/7.\
If the second person is D, the total damage caused by the remaining players changes from 70% to 60%, then:\
When selecting a third party, player A is selected on 4/6, player C is selected on 2/6, and player D is selected on 1/6.

### Standard format

The standard format consists of multiple sets of actions. Each action has an amount option representing how many players will be selected. Each group of actions is independent of each other, and the rules of each group of actions are the same as those mentioned above, so I will not repeat them here.

```yaml
pack-actions:
  1:
    amount: 1
    1:
      type: drop_item
      item:
        material: apple
    2:
      type: give_item
      item: 
        material: apple
    3:
      type: message
      message: TEST1-1
    4:
      type: message
      message: TEST1-2
  2:
    amount: 1
    1:
      type: message
      message: TEST2-1
    2:
      type: message
      message: TEST2-2
  3:
    amount: 1
    1:
      type: message
      message: TEST3-1
    2:
      type: message
      message: TEST3-2
  4:
    amount: 1
    1:
      type: message
      message: TEST4-1
    2:
      type: message
      message: TEST4-2
  5:
    amount: 1
    1:
      type: message
      message: TEST5-1
    2:
      type: message
      message: TEST5-2
  6:
    amount: 1
    1:
      type: message
      message: TEST6-1
    2:
      type: message
      message: TEST6-2
```

A showcase provided here:

<figure><img src="https://345242565-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGLJvOhiHQzlgC14HofB4%2Fuploads%2FVqIA0qFfQzwrDfMrjoT7%2F1f64a3f87fcd85c84f238405fea31170.png?alt=media&amp;token=54cb70b3-822f-4b09-adb4-9bdd6e648f9d" alt=""><figcaption></figcaption></figure>


# 📂Tip of examples

There are infinite possibilities for setting rules in this plugin, and the following examples are provided to you.&#x20;

## Example of Combine Usage

You can freely combine the rules you desire. The following is a file that combines ALL and RANK example rules, which allows all players to execute the 2nd to 4th rewards, with the first place executing the 5th reward, the top two executing the 6th reward, and the top three executing the 7th reward.

```yaml
match-entity:
  mythicmobs:
    - 'Example'

# Means 5 minutes, 20 ticks = 1 second
time-out-ticks: 6000

prevent-vanilla-drops: false

general-actions:
  1:
    type: message
    messages:
      - '&#FFEE00======================='
      - '&#FF5555⚔ &l{entity-name} &r&#FF4444has been defeated! ⚔'
      - '&#00FFAA✨TOP DAMAGE DEALERS✨'
      - '@1 &#FF4500🥇 &lFirst: &#FF69B4{player_1} &#FFFFFF(&#32CD32{damage_1}&#FFFFFF | &#1E90FF{percentage_1}%&#FFFFFF)'
      - '@2 &#1E90FF🥈 &lSecond: &#00FFFF{player_2} &#FFFFFF(&#32CD32{damage_2}&#FFFFFF | &#FF69B4{percentage_2}%&#FFFFFF)'
      - '@3 &#32CD32🥉 &lThird: &#FFD700{player_3} &#FFFFFF(&#32CD32{damage_3}&#FFFFFF | &#FF4500{percentage_3}%&#FFFFFF)'
      - '&#FFAA00✨Your Rank: &#FF00FF {rank} &#FFFFFF(&#32CD32{damage}/{total-damage}&#FFFFFF | &#1E90FF{percentage}%&#FFFFFF)'
      - '&#FFEE00======================='
  2:
    type: message
    message: TEST
  3:
    type: message
    message: TEST2
  4:
    type: message
    message: TEST3
  5:
    type: message
    rank-limit: 1
    message: TEST4
  6:
    type: message
    rank-limit: 1~2
    message: TEST5
  7:
    type: message
    rank-limit: 1~3
    message: TEST6
```

## Example of Conditional Usage

Learning more about our action format and condition format will be of great help to you. This page also provides additional evidence in this regard for you.

```yaml
general-actions:
  1:
    type: conditional
    conditions:
      1:
        type: placeholder
        rule: '>='
        placeholder: '{percentage}'
        value: '50'
    actions:
      1:
        type: message
        message: 'Half of the damage is caused by you!'
```

In this example, we used conditional actions to implement the function of only executing actions on players who cause damage at a rate higher than the damage percentage.

* `conditional` action can be found [here](https://ultimateshop.superiormc.cn/format/action-format#conditional-premium). (this link showed you in [Formats](/mythicrewards/format/condition-format) page)
* `{percentage}` placeholder showed you in [Formats](/mythicrewards/format/condition-format) page.

<figure><img src="https://345242565-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGLJvOhiHQzlgC14HofB4%2Fuploads%2FUO5xx1K1vJ8kOTXqFEyg%2Fimage.png?alt=media&amp;token=5f286b49-d1bb-4efe-b2c4-ffccf8c9ef89" alt=""><figcaption></figcaption></figure>

On that page, you will also find other useful placeholders, such as how much damage you must deal to receive useful rewards for being ranked first.


# 📚Reward Rule Example - ALL

## Config

```yaml
match-entity:
  mythicmobs:
    - 'Example'

# Means 5 minutes, 20 ticks = 1 second
time-out-ticks: 6000

prevent-vanilla-drops: false

general-actions:
  1:
    type: message
    messages:
      - '&#FFEE00======================='
      - '&#FF5555⚔ &l{entity-name} &r&#FF4444has been defeated! ⚔'
      - '&#00FFAA✨TOP DAMAGE DEALERS✨'
      - '@1 &#FF4500🥇 &lFirst: &#FF69B4{player_1} &#FFFFFF(&#32CD32{damage_1}&#FFFFFF | &#1E90FF{percentage_1}%&#FFFFFF)'
      - '@2 &#1E90FF🥈 &lSecond: &#00FFFF{player_2} &#FFFFFF(&#32CD32{damage_2}&#FFFFFF | &#FF69B4{percentage_2}%&#FFFFFF)'
      - '@3 &#32CD32🥉 &lThird: &#FFD700{player_3} &#FFFFFF(&#32CD32{damage_3}&#FFFFFF | &#FF4500{percentage_3}%&#FFFFFF)'
      - '&#FFAA00✨Your Rank: &#FF00FF {rank} &#FFFFFF(&#32CD32{damage}/{total-damage}&#FFFFFF | &#1E90FF{percentage}%&#FFFFFF)'
      - '&#FFEE00======================='
  2:
    type: message
    message: TEST
  3:
    type: message
    message: TEST2
  4:
    type: message
    message: TEST3
```

All players who cause damage can receive rewards, regardless of how much damage they inflict.


# 📚Reward Rule Example - Pack

## Config

```yaml
match-entity:
  mythicmobs:
    - 'Example'

# Means 5 minutes, 20 ticks = 1 second
time-out-ticks: 6000

general-actions:
  1:
    type: message
    messages:
      - '&#FFEE00======================='
      - '&#FF5555⚔ &l{entity-name} &r&#FF4444has been defeated! ⚔'
      - '&#00FFAA✨TOP DAMAGE DEALERS✨'
      - '@1 &#FF4500🥇 &lFirst: &#FF69B4{player_1} &#FFFFFF(&#32CD32{damage_1}&#FFFFFF | &#1E90FF{percentage_1}%&#FFFFFF)'
      - '@2 &#1E90FF🥈 &lSecond: &#00FFFF{player_2} &#FFFFFF(&#32CD32{damage_2}&#FFFFFF | &#FF69B4{percentage_2}%&#FFFFFF)'
      - '@3 &#32CD32🥉 &lThird: &#FFD700{player_3} &#FFFFFF(&#32CD32{damage_3}&#FFFFFF | &#FF4500{percentage_3}%&#FFFFFF)'
      - '&#FFAA00✨Your Rank: &#FF00FF {rank} &#FFFFFF(&#32CD32{damage}/{total-damage}&#FFFFFF | &#1E90FF{percentage}%&#FFFFFF)'
      - '&#FFEE00======================='

pack-actions:
  amount: 1
  1:
    type: message
    message: TEST
  2:
    type: message
    message: TEST2
  3:
    type: message
    message: TEST3
```

In this example, randomly select one player from all those who participate in damage to receive a reward, and the more damage caused, the greater the chance of receiving the reward.


# 📚Reward Rule Example - Multi Pack

## Config

```yaml
match-entity:
  mythicmobs:
    - 'Example'

# Means 5 minutes, 20 ticks = 1 second
time-out-ticks: 6000

general-actions:
  1:
    type: message
    messages:
      - '&#FFEE00======================='
      - '&#FF5555⚔ &l{entity-name} &r&#FF4444has been defeated! ⚔'
      - '&#00FFAA✨TOP DAMAGE DEALERS✨'
      - '@1 &#FF4500🥇 &lFirst: &#FF69B4{player_1} &#FFFFFF(&#32CD32{damage_1}&#FFFFFF | &#1E90FF{percentage_1}%&#FFFFFF)'
      - '@2 &#1E90FF🥈 &lSecond: &#00FFFF{player_2} &#FFFFFF(&#32CD32{damage_2}&#FFFFFF | &#FF69B4{percentage_2}%&#FFFFFF)'
      - '@3 &#32CD32🥉 &lThird: &#FFD700{player_3} &#FFFFFF(&#32CD32{damage_3}&#FFFFFF | &#FF4500{percentage_3}%&#FFFFFF)'
      - '&#FFAA00✨Your Rank: &#FF00FF {rank} &#FFFFFF(&#32CD32{damage}/{total-damage}&#FFFFFF | &#1E90FF{percentage}%&#FFFFFF)'
      - '&#FFEE00======================='

pack-actions:
  amount: 3
  1:
    type: message
    message: TEST
  2:
    type: message
    message: TEST2
  3:
    type: message
    message: TEST3
  4:
    type: message
    message: TEST4
  5:
    type: message
    message: TEST5
  6:
    type: message
    message: TEST6
```

In this example, randomly select 3 players from all those who participate in damage to receive a reward, and the more damage caused, the greater the chance of receiving the reward.


# 📚Reward Rule Example - Rank

## Config

```yaml
match-entity:
  mythicmobs:
    - 'Example'

# Means 5 minutes, 20 ticks = 1 second
time-out-ticks: 6000

general-actions:
  1:
    type: message
    messages:
      - '&#FFEE00======================='
      - '&#FF5555⚔ &l{entity-name} &r&#FF4444has been defeated! ⚔'
      - '&#00FFAA✨TOP DAMAGE DEALERS✨'
      - '@1 &#FF4500🥇 &lFirst: &#FF69B4{player_1} &#FFFFFF(&#32CD32{damage_1}&#FFFFFF | &#1E90FF{percentage_1}%&#FFFFFF)'
      - '@2 &#1E90FF🥈 &lSecond: &#00FFFF{player_2} &#FFFFFF(&#32CD32{damage_2}&#FFFFFF | &#FF69B4{percentage_2}%&#FFFFFF)'
      - '@3 &#32CD32🥉 &lThird: &#FFD700{player_3} &#FFFFFF(&#32CD32{damage_3}&#FFFFFF | &#FF4500{percentage_3}%&#FFFFFF)'
      - '&#FFAA00✨Your Rank: &#FF00FF {rank} &#FFFFFF(&#32CD32{damage}/{total-damage}&#FFFFFF | &#1E90FF{percentage}%&#FFFFFF)'
      - '&#FFEE00======================='
  2:
    type: message
    rank-limit: 1
    message: TEST
  3:
    type: message
    rank-limit: 1~2
    message: TEST2
  4:
    type: message
    rank-limit: 1~3
    message: TEST3
```

In this example, only 3 top players will receive rewards in the end, with the first player receiving all rewards, the second player receiving two of them, and the third player receiving the last set reward.


# 📚Reward Rule Example - Separate

## Config

```yaml
match-entity:
  mythicmobs:
    - 'Example'

# Means 5 minutes, 20 ticks = 1 second
time-out-ticks: 6000

general-actions:
  1:
    type: message
    messages:
      - '&#FFEE00======================='
      - '&#FF5555⚔ &l{entity-name} &r&#FF4444has been defeated! ⚔'
      - '&#00FFAA✨TOP DAMAGE DEALERS✨'
      - '@1 &#FF4500🥇 &lFirst: &#FF69B4{player_1} &#FFFFFF(&#32CD32{damage_1}&#FFFFFF | &#1E90FF{percentage_1}%&#FFFFFF)'
      - '@2 &#1E90FF🥈 &lSecond: &#00FFFF{player_2} &#FFFFFF(&#32CD32{damage_2}&#FFFFFF | &#FF69B4{percentage_2}%&#FFFFFF)'
      - '@3 &#32CD32🥉 &lThird: &#FFD700{player_3} &#FFFFFF(&#32CD32{damage_3}&#FFFFFF | &#FF4500{percentage_3}%&#FFFFFF)'
      - '&#FFAA00✨Your Rank: &#FF00FF {rank} &#FFFFFF(&#32CD32{damage}/{total-damage}&#FFFFFF | &#1E90FF{percentage}%&#FFFFFF)'
      - '&#FFEE00======================='
  2:
    type: chance
    rate: {percentage}
    actions:
      1:
        type: message
        message: TEST
  3:
    type: chance
    rate: {percentage}
    actions:
      1:
        type: message
        message: TEST2
  4:
    type: chance
    rate: {percentage}
    actions:
      1:
        type: message
        message: TEST3
```

In this example, all players who cause damage have the potential to receive rewards, and the probability depends entirely on the percentage of damage they cause.


# 📚Reward Rule Example - Separate Pack

## Config

```yaml
match-entity:
  mythicmobs:
    - 'Example'

# Means 5 minutes, 20 ticks = 1 second
time-out-ticks: 6000

general-actions:
  1:
    type: message
    messages:
      - '&#FFEE00======================='
      - '&#FF5555⚔ &l{entity-name} &r&#FF4444has been defeated! ⚔'
      - '&#00FFAA✨TOP DAMAGE DEALERS✨'
      - '@1 &#FF4500🥇 &lFirst: &#FF69B4{player_1} &#FFFFFF(&#32CD32{damage_1}&#FFFFFF | &#1E90FF{percentage_1}%&#FFFFFF)'
      - '@2 &#1E90FF🥈 &lSecond: &#00FFFF{player_2} &#FFFFFF(&#32CD32{damage_2}&#FFFFFF | &#FF69B4{percentage_2}%&#FFFFFF)'
      - '@3 &#32CD32🥉 &lThird: &#FFD700{player_3} &#FFFFFF(&#32CD32{damage_3}&#FFFFFF | &#FF4500{percentage_3}%&#FFFFFF)'
      - '&#FFAA00✨Your Rank: &#FF00FF {rank} &#FFFFFF(&#32CD32{damage}/{total-damage}&#FFFFFF | &#1E90FF{percentage}%&#FFFFFF)'
      - '&#FFEE00======================='

pack-actions:
  1:
    amount: 1
    1:
      type: message
      message: TEST1-1
    2:
      type: message
      message: TEST1-2
  2:
    amount: 1
    1:
      type: message
      message: TEST2-1
    2:
      type: message
      message: TEST2-2
  3:
    amount: 1
    1:
      type: message
      message: TEST3-1
    2:
      type: message
      message: TEST3-2
  4:
    amount: 1
    1:
      type: message
      message: TEST4-1
    2:
      type: message
      message: TEST4-2
  5:
    amount: 1
    1:
      type: message
      message: TEST5-1
    2:
      type: message
      message: TEST5-2
  6:
    amount: 1
    1:
      type: message
      message: TEST6-1
    2:
      type: message
      message: TEST6-2
```

In this example, the rewards are divided into 6 groups, and the allocation of these 6 groups of rewards is completely independent. Players may receive reward A but not reward B. All players who cause damage may receive rewards, and the probability depends entirely on the percentage of damage they cause.


# None

## None

No entity will match.

```yaml
match-entity:
  none: true
```


# Any

## Any

```yaml
match-entity:
  any:
    entity-tag:
      - 'zombies'
    mythicmobs:
      - 'Example'
```

## Any Of

```yaml
match-entity:
  any:
    1: # GROUP 1
      entity-tag:
        - 'zombies'
      mythicmobs:
        - 'Example'
    2: # GROUP 2
      entity-type:
        - 'skeleton'
```


# Entity Health

## Entity Health

The entity health must be greater than the value you set here.

<pre class="language-yaml"><code class="lang-yaml"><strong>match-entity:
</strong><strong>  entity-health: 50
</strong></code></pre>


# Entity Tag

## Entity Tag

Match by vanilla entity tag. For list of entity tags, please view Minecraft wiki.

```yaml
match-entity:
  entity-tag:
    - undead
    - raiders
```


# Entity Contains Name

## Entity Contains Name

Entity custom name contains listed text (ignores color/format).

```yaml
match-entity:
  entity-contains-name:
    - 'test1'
```


# Entity PDC

## EntityPDC

`EntityPDC` allows you to match entities based on values stored in their **PersistentDataContainer (PDC)**.

```yaml
match-entity:
  entity-pdc:
    "myplugin:rank": "10~20"        # Numeric range match
    "myplugin:power": ">=100"       # Numeric comparison
    "myplugin:elite": true          # Boolean match
    "myplugin:type": "boss*"        # Fuzzy match (starts with "boss")
    "myplugin:category": "*elite*"  # Fuzzy match (contains "elite")
```

#### Matching Rules Type

| Type               | Example                          | Description                      |
| ------------------ | -------------------------------- | -------------------------------- |
| Numeric range      | `"10~20"`                        | Matches values between 10 and 20 |
| Numeric comparison | `">=5"`, `"<10"`                 | Supports `>`, `<`, `>=`, `<=`    |
| String wildcard    | `"boss*"`, `"*boss"`, `"*boss*"` | Supports `*` wildcard matching   |
| String exact       | `"Boss"`                         | Case-insensitive exact match     |
| Boolean            | `true` / `false`                 | Matches boolean values           |

#### Notes&#x20;

* Keys must be valid NamespacedKeys (e.g. myplugin:rank).
* The rule reads data from the entity’s PDC and compares it with the provided values.
* If any key matches successfully, the rule returns true.


# MythicMobs

## MythicMobs

Match mob from the [MythicMobs plugin](https://mythiccraft.io/).\
You can specify one or more MythicMob internal names, and the rule will match any entity that corresponds to those IDs.

```yaml
match-entity:
  mythicmobs:
    - "UndeadKnight"
    - "FireDemon"
    - "EliteZombie"
```

This example matches any entity that is a MythicMob with one of the listed internal names.


# LevelledMobs

## LevelledMobs

Match LevelledMobs level.

```yaml
match-entity:
  levelled-mobs: "10~20"     # Matches mobs with levels between 10 and 20
```

#### Matching Rules

| Type                  | Example   | Description                                |
| --------------------- | --------- | ------------------------------------------ |
| Range                 | `"10~20"` | Matches mobs with levels between 10 and 20 |
| Greater than or equal | `">=5"`   | Matches mobs with level ≥ 5                |
| Less than or equal    | `"<=50"`  | Matches mobs with level ≤ 50               |
| Exact match           | `"15"`    | Matches mobs with level = 15               |


# EnchantedMobs

You can now match mobs by their assigned powers in `match-entity`:

#### `entity-powers`

Supports two configuration styles:

1. **Legacy list (default = `any`)**

```yml
match-entity:
  entity-powers:
    - Archer
    - Sprint
```

2. **Mode section (`any` / `all`)**

```yml
match-entity:
  entity-powers:
    mode: any # any | all
    powers:
      - Archer
      - Sprint
```

* `mode: any`: mob matches if it has **at least one** listed power.
* `mode: all`: mob matches only if it has **all** listed powers.

#### `entity-powers-amount`

Match by how many powers a mob already has:

```yml
match-entity:
  entity-powers-amount: 2
```

Supported formats:

* exact: `2`
* range: `1~3`
* compare: `>=2`, `<=4`, `>1`, `<5`
* list: `[1, 3, 5]`

***


# Not

## Not

```yaml
match-entity:
  not:
    entity-tag:
      - 'zombies'
```


# 🌏Advanced Language Managment

## Default Language

You can set default language at `config.yml` file.

```yaml
config-files:
  language: en_US
  # Premium version only.
  per-player-language: true
```

The input here is the name of the language file (without the suffix). All language files are stored in the "`languages`" folder. You can also create a new language file by simply copying the "`en_US.yml`" file and renaming it to the corresponding language code. For example, `zh_CN.yml`.

## Per Player Language <mark style="color:red;">- Premium</mark>

You can enable `per-player-language` at `config.yml` file. After being enabled, the plugin will determine which language file to display to the player based on their client language. The server must have the relevant language files preloaded; otherwise, it will display content using the default language file.

Let us watch this video to understand it!

## Lang Placeholder

You can use `{lang:<langKey>}` placeholder in plugin message to enable players from all over the world to display language settings that match their client.

You can add your desired custom language text under the "`override-lang`" section of each language file, in the format of "`ID: text content`". For example:

```yaml
// ... The content originally present in the language file

# Added content
override-lang:
  # This means shop-title it's language key.
  shop-title: 'Item Shop'
```

```yaml
// ... The content originally present in the language file

# Added content
override-lang:
  # This means shop-title it's language key.
  shop-title: '物品商店'
```

Then use `{lang:shop-title}` in the place you want to use.

In `config.yml`, you can directly use `{lang}` to represent the custom language from the language file to be used. The language ID should be synchronized with the configuration file structure in the `config.yml` file, for example:

In `config.yml` file:

```yaml
placeholder:
  # Premium version only
  compare:
    up: '{lang}'
    down: '{lang}'
    same: '{lang}'
```

In each language file:

```yaml
// ... The content originally present in the language file

override-lang:
  placeholder:
    compare:
      up: '↑'
      down: '↓'
      same: '-'
```

Similarly, if we cannot find this custom language in the corresponding language file, we will search for it in the default language file. If it is still not found, then the plugin will not parse this placeholder.

## Advanced Message Format <mark style="color:red;">- Premium</mark>

The default language text is directly filled into the text content that needs to be output, along with [color codes](https://ultimateshop.superiormc.cn/features/color-code). However, you can also utilize this feature to enable the plugin to display not only regular chat box messages, but also actionbars, titles, bossbars, sounds, and more!

You can still use color codes (including MiniMessage) while using our advanced message format.

#### Common Usage

```yaml
welcome: 'Welcome to the server!'
```

#### Chat Message

```yaml
welcome: '[message]&aWelcome![/message]'
```

#### Title

<pre class="language-yaml"><code class="lang-yaml"><strong>welcome: '[title=20,60,20]&#x26;6Welcome;;&#x26;eThis is sub title[/title]'
</strong># Format: [title=fadeIn,Stay,fadeOut]title;;subTitle[/title]
</code></pre>

#### Both Chat Message and Title will be sent

You can mix and match these different message types, just like this.

```yaml
welcome: '[message]&aGood day![/message][title=20,60,20]&6Welcome;;&eThis is sub title[/title]'
```

#### Action Bar

```yaml
welcome: '[actionbar]&7Please wait...[/actionbar]'
```

#### Boss Bar - Early Alpha

```yaml
welcome: '[bossbar=GREEN,SOLID,1.0]&aHappy Today[/bossbar]'
```

#### Sound

```yaml
welcome: '[sound=ENTITY_EXPERIENCE_ORB_PICKUP,1,1][/sound][sound=ENTITY_PLAYER_LEVELUP,1,1][/sound]'
```


# 🎨Color Code

## Hex Color <a href="#hex-color" id="hex-color"></a>

To use hex color, you should use special color code, it should like this:

**\&#Hex color code**

For example, \&#ff0000.

## Gradient Color <a href="#gradient-color" id="gradient-color"></a>

To use gradient color, you should use special gradient color code, it should like this:

**&<#Start Color Code> Message &<#End Color Code>**

For example, &<#666666>UltimateShop &<#ffffff>


# 💾Saved Item (Item Manager)

## Create your item <a href="#create-your-item" id="create-your-item"></a>

You can create your own item at `items` folder of plugin, just create a **yml** file and then follow [ItemFormat](https://ultimateshop.superiormc.cn/format/itemformat-tm) in this file. The file name is the item ID.

## Save your item <a href="#save-your-item" id="save-your-item"></a>

You can use command `/mr saveitem <saveItemID> <saveItemMethod>` command to save your hold item. There are 2 methods to save item.

* Bukkit
  * If you are using Spigot version of MythicRewards: Use BukkitAPI's method to save item. The method only support saving vanilla data and persistent data stored through BukkitAPI, and other custom NBT data from other plugins will not be saved.
  * If you are using Paper version of MythicRewards: Use PaperAPI's method to save item, this new method can 100% save item data, no data will lose. **(Paper and 1.15+ server only)**
* ItemFormat: will parse item into [Item Format](https://ultimateshop.superiormc.cn/format/itemformat-tm).

An example for item config file that use Bukkit save item method with Paper version of MythicRewards:

```yaml
item: !!binary |-
  H4sIAAAAAAAA/21RzW4TMRCeJd0oWVB/1IIQXILEG/TGpSDxCKhXa2LPbkxsz8qepUlPPAonXoBn6nsw27TaViBZljzz/XmmAZjBy68oeE25eE4Ap3cLeOEdnEWfyGZs5ZPzGDm5GdSWhyQAMG+gsRx7TpSkNHA8gVtmRS7TINnLvSLUNTQFZcg4Fj7/Aqjg2GIyGG5wXwyhVJrj7SQScWeKoN2a4m9pNFw+9QicqdFqtRgj6QuOuoz7BRwJ7QQuvm18WenJhCHsV8lb+qCeHycFSnaDSaLGN13wevMPytk7qhp4819cmT2diVacT90YAhp4PTXsUISjSRhpSrcOAz2me/Vl1emMVuWGs1Pu+3+4kR0F43QrS5i3gVFKPRpd/dR7Ae8mwvdhS2vemT7gHteB4HzqsWzGnTp6th5hDjM4dRixI9NTNuvAdnvY0oWjFocgRvH6OVN6Inf1u22XUOchUHkY+vyeU+Bk0tXgiSo4s5wzWTEtZ+My96WqoT7o/Lm8VDr8BZMVpHJ0AgAA
```

An example for item config file that use ItemFormat save item method with Paper version of MythicRewards:

```yaml
material: DIAMOND
amount: 6
name: <blue>A good sword
lore:
- <gray>This is really nice!
custom-model-data: 1
max-stack: 6
food:
  nutrition: 5
  saturation: 5.0
tool:
  damage-per-block: 5
  mining-speed: 1.3
  rules:
  - STONE, 1.4, true
song: minecraft:otherside
glow: true
enchants:
  mending: 1
```

## Use saved item <a href="#use-saved-item" id="use-saved-item"></a>

You can use saved item in [ItemFormat](https://ultimateshop.superiormc.cn/format/itemformat-tm). In ItemFormat, there is a option called `material`, by default, you need type vanilla item ID there, but, you can also use saved item id to let plugin directly get the saved item instead of generate a whole new item with that type.

```yaml
pack-actions:
  1:
    amount: 1
    1:
      type: drop_item
      item:
        material: superior_sword # If saved item id is 'superior_sword'
```

Saved items will be cached in memory continuously after loading to avoid repeatedly reading the saved item file, which may consume too much server performance. However, the cost is that if you have too many saved items, it may correspondingly consume more memory.


# Add custom rules

## Under working...


# ArcMenu Premium

Build an interface that truly belongs to your Minecraft server.

ArcMenu brings text, images, GIFs, item models, and animations together into custom in-game interfaces. Whether you are building server navigation, shops, daily check-ins, and quest boards, or login screens, guilds, story cutscenes, and music players, everything can share a cohesive visual style and interaction model. Players can use Touch and Mouse modes without any client mods, or install the ArcMenu Editor mod to unlock Vision mode.

<figure><img src="https://260804291-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlX7RyI61CUpESmS9meVT%2Fuploads%2Fgit-blob-4def2443d6f9d9280b6f3e7f81a38811d4ff90bb%2Farcmenu-opening.gif?alt=media" alt="ArcMenu interface demonstration"><figcaption></figcaption></figure>

## What you can do with it

* **Freeform layouts and reusable components**: Arrange text, images, items, blocks, rectangular backgrounds, borders, and lines on a single canvas, with multi-level nested groups and reusable component templates.
* **Three input modes**: Touch mode aims with the crosshair while keeping vanilla world lighting and block occlusion intact, so gameplay looks natural even with shader packs enabled. Mouse mode uses the server resource pack to provide a locked camera view and a local cursor. Vision mode is built into the ArcMenu Editor mod, offering a shader-compatible native cursor, fixed FOV, and dedicated menu rendering.
* **Multi-button clicks and hover feedback**: Every button region can respond independently to left, right, middle, and Shift-modified clicks, and can display custom tooltips and play hover animations when pointed at.
* **Menu navigation and conditional logic**: Clicking a button can run commands, open another menu, or return to the previous page, while permissions, economy balances, or math expressions decide what content appears and where navigation leads.
* **Dynamic content and custom assets**: Render live player heads and PlaceholderAPI values, display custom item models directly from CraftEngine, Nexo, or ItemsAdder, tint images, and play animated GIFs.
* **Keyframe animations and cutscenes**: Set up entry, transition, and exit animations for menus, or use Effect to build cutscenes complete with audio waveform previews, cubic Bézier curves, keyframes, and event tracks.
* **In-game WYSIWYG editing**: Administrators with a matching ArcMenu Editor build for their client version can drag and arrange elements right beside a live 16:9 game viewport, manage layers, browse resource pack images, undo changes, and save immediately.
* **Project packaging and marketplace**: Bundle menus, templates, images, and Effects into ArcPack archives from your workspace, and browse the marketplace inside the editor to download community creations or publish your own designs.
* **Open application API**: Developers can connect custom inventories, card games, music players, social systems, or login flows to ArcMenu, keeping business data in their own plugin while ArcMenu handles the screen, pointer input, text input components (Arcitx), and page history stack.

## Getting started

Before starting your server, check [Requirements](/arcmenu-wiki/getting-started/requirements) to review the server environment, client input modes, and optional companion plugins, then follow [Installation and updates](/arcmenu-wiki/getting-started/install) to drop the plugin into your server and set up the resource pack.

If you prefer learning the structure from configuration files first, follow [Your first menu](/arcmenu-wiki/getting-started/first-menu) to write a welcome screen with a working button, and refer to [Menu document structure](/arcmenu-wiki/menu-configuration/menus) for the full YAML reference.

For day-to-day layout and design work, we recommend pairing the server with the **ArcMenu Editor** client mod so you can drag and adjust elements directly in-game. See [Visual editor](/arcmenu-wiki/feature-configuration/editor) and [Project manager](/arcmenu-wiki/feature-configuration/projects) for details.


# Requirements

Before deploying ArcMenu Premium, review the server requirements below and see how the client input modes and optional companion plugins fit together.

## Server and Java

| Server generation   | Java requirement |
| ------------------- | ---------------- |
| Paper 1.21.x series | Java 21 or later |
| Paper 26.x series   | Java 25 or later |

Paper forks such as Leaf, Folia, and Purpur run the same plugin JAR with full feature support. On Folia, the plugin automatically handles display entities and interactions on each player's owning region thread.

## Player clients and input modes

Players can interact with menus using three modes. You can let players switch freely between them or configure a default mode on the server:

* **Touch mode**: Needs no client mod and does not use ArcMenu shader resources. Menus render with vanilla display entities, scale naturally with the player's FOV, and follow normal world lighting and block occlusion, preserving normal gameplay visuals when players use shader packs.
* **Mouse mode**: Needs no client mod. Once the client loads the companion ArcMenu resource pack, it gets a fixed-FOV view, flat item lighting, and a smooth local cursor. When used alongside ViaVersion, the server automatically matches resources to each player's actual client protocol version.
* **Vision mode**: Requires Fabric, the matching Fabric API for the game version, and the **ArcMenu Editor** mod matching the client version. Vision is built right into the Editor mod, and regular players can use it without administrator permissions. It runs a zero-latency native cursor locally, fixed-FOV projection, independent depth occlusion, and bright UI item rendering while staying compatible with third-party shader packs. For text fields, it also lets players type directly through native text input and their system IME without opening a vanilla anvil screen.

Click detection, hover checks, and menu actions for all three modes are processed uniformly by the server.

## Optional companion plugins

All of the following plugins are optional and can be installed based on what your server needs:

| Plugin                         | Role in ArcMenu                                                                                                                          |
| ------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------- |
| PlaceholderAPI                 | Read player counts, levels, stats, and other placeholders inside text, image paths, player head textures, or conditions.                 |
| Vault (with an economy plugin) | Check currency balances in menu conditions, or charge and reward money in click actions.                                                 |
| PlayerPoints                   | Check point balances, or deduct and grant points.                                                                                        |
| CraftEngine                    | Display custom CE items in menus, and automatically merge ArcMenu images and font assets when building the resource pack.                |
| Nexo                           | Display custom Nexo items, and automatically merge ArcMenu assets into the Nexo resource pack during pack generation.                    |
| ItemsAdder                     | Display custom ItemsAdder items with their original metadata and overlays intact, and automatically merge ArcMenu assets when packaging. |

## Client editor and Vision mod

[ArcMenu Editor](https://github.com/FENTAIIII/ArcMenu-Editor/releases) is the companion client-side Fabric mod. Users with administrator permissions can use it to open the visual menu editor, Effect cutscene workspace, project manager, and menu marketplace, as well as preview menus with dedicated rendering inside the editor. Regular players can install the same mod to enable Vision mode.

<figure><img src="https://260804291-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlX7RyI61CUpESmS9meVT%2Fuploads%2Fgit-blob-b4d4de37899dd0f4b4e2b83816d1fa88212a697b%2Feditor.png?alt=media" alt="ArcMenu Editor"><figcaption></figcaption></figure>

The releases page provides separate builds for each Minecraft version (1.21.x clients require Java 21+, and 26.x clients require Java 25+). To install it, pick the single JAR whose `mc` version in the filename matches your game client, place it into your client's `mods/` folder alongside the matching Fabric API, and make sure you do not keep multiple Editor JARs in `mods/` at the same time. When upgrading or troubleshooting, update both the server plugin and the client Editor to the latest release together.


# Installation and updates

## Install the plugin

Stop your server, place the downloaded ArcMenu plugin JAR into the server's `plugins/` folder, and start the server.

On its first startup, the plugin generates `config.yml`, language files, image assets, and a ready-to-use set of default menus inside `plugins/ArcMenu/` (including the `main` menu, `start`, `cursor-setting`, shop categories, a `teleport` example, and three random teleport Effect examples: `rtp-overworld`, `rtp-nether`, and `rtp-end`). If you later delete any of these bundled example menus, images, or animations, the plugin respects your deletions on future restarts, reloads, and upgrades rather than recreating them.

Once you join the game, run the following command to open the default main menu:

```
/arcmenu open main
```

With the default settings, pressing **Shift+F** (the swap offhand key) in-game opens the main menu. While a menu or application is open, pressing **Shift+F** again or pressing **Space** (jump) closes it (`close-on-shift-f` and `close-on-space` both default to `true` independently for menus and applications), or you can run `/arcmenu close` at any time. To keep the camera angle and screen plane steady, if a player requests a menu while jumping in mid-air, the menu waits until they land before opening; players in Creative mode, Spectator mode, or with flight enabled open it right away in the air.

To open a menu, a player needs both the default `arcmenu.use` permission and any permission configured on that specific menu. Reload, validation, and editing commands are controlled by `arcmenu.admin`, which is granted to server operators by default.

## Configure the resource pack

When your menus use images, animated GIFs, custom tooltip styles, or **Mouse mode**, player clients need a resource pack that includes the generated ArcMenu assets.

### Automatic merging with custom item plugins

If your server runs **CraftEngine**, **Nexo**, or **ItemsAdder**, ArcMenu automatically merges its generated images, fonts, and shaders whenever those plugins build their resource pack—no manual folder copying required:

1. After adding or replacing images in `plugins/ArcMenu/images/`, run `/arcmenu resources` (or `/arcmenu reload all`) to rebuild ArcMenu's own assets.
2. Run the packaging command for your plugin to finish merging and distributing the pack:
   * **CraftEngine**: Run `/ce reload pack` (or `/ce reload all`).
   * **Nexo**: Run `/nexo reload pack`.
   * **ItemsAdder**: Run `/iazip`.

When you install an ArcPack or modify workspace assets through the project manager in the client editor, the server automatically requests a resource pack rebuild (if multiple supported plugins are installed, it checks CraftEngine, then Nexo, then ItemsAdder in order). If you run more than one of these plugins at the same time, we recommend having only one of them send the final resource pack to players.

### Standalone distribution or manual client installation

If your server does not use any of those resource pack plugins, run the following command after updating your assets:

```
/arcmenu reload all
```

The plugin writes the complete generated resource pack to:

```
plugins/ArcMenu/generated/arcmenu-resourcepack.zip
```

You can upload this ZIP file to your resource pack host and configure it in `server.properties`, or share it directly with players to drop into their client `resourcepacks/` folder and enable manually.

In `config.yml`, `mouse.assume-resource-pack-loaded` is set to `true` by default. This means that as long as a player has a matching ArcMenu resource pack enabled manually on their client, Mouse mode will still activate the locked view, flat lighting, local cursor, and client-side GIF playback even if the server did not receive a resource pack download status packet. If you prefer to require a confirmed resource pack load callback from the server before enabling those features, set this option to `false` (see [Images and resource packs](/arcmenu-wiki/feature-configuration/resource-packs) for details).

## Everyday changes and reloading

As you build and tweak menus, pick the command that matches what you changed:

| What you changed                                                                 | How to apply it                                                  |
| -------------------------------------------------------------------------------- | ---------------------------------------------------------------- |
| Edited menu YAML, animations, language files, or `config.yml`                    | Run `/arcmenu reload`                                            |
| Created a blank `.yml` file in `menus/` to auto-generate a canvas skeleton       | Run `/arcmenu reload`                                            |
| Clicked Save in the ArcMenu Editor visual editor                                 | Updates immediately on save; reopen the menu to see the new view |
| Rebuilt only ArcMenu's resource pack files                                       | Run `/arcmenu resources`                                         |
| Reloaded all configuration files and rebuilt the resource pack together          | Run `/arcmenu reload all`                                        |
| Checked all menu configurations for syntax or field errors without writing files | Run `/arcmenu validate`                                          |

Every time you reload, ArcMenu validates the syntax and fields of your configuration files first. If a file has a mistake, the plugin reports the exact error location in the console and chat while keeping the last valid menu state active in memory, so running menus keep working smoothly.

## Updating the plugin and editor

When upgrading to a new release, back up your `plugins/ArcMenu/` directory first, stop the server, replace the old JAR in `plugins/` with the new one, and start the server back up.

On startup or reload, the plugin automatically adds any newly introduced default keys to `config.yml` while preserving all of your existing values (including explicit `false`, `0`, empty strings, and empty lists), custom keys, and comments.

After updating the server:

* If the update includes changes to built-in shaders or image assets, regenerate and redistribute the client resource pack using the steps above.
* Administrators using the editor and players using **Vision mode** should head to the [ArcMenu Editor releases page](https://github.com/FENTAIIII/ArcMenu-Editor/releases), download the latest mod JAR matching their game client version, replace the old file in their client `mods/` folder, and restart the game.


# Your first menu

In this guide, we will build a clean menu with a title and a welcome button. When a player opens the menu, points at the button with their crosshair or cursor, and right-clicks, they will receive a personalized welcome message in chat.

## Create the menu file

Open your server's `plugins/ArcMenu/menus/` directory and create a new file named `welcome.yml`.

> **Tip**: If you create a completely empty `welcome.yml` file and run `/arcmenu reload`, ArcMenu will automatically fill in `schema-version`, `id`, and a default `canvas` block based on the filename. Filenames just need to start with a letter or number and use lowercase letters, numbers, underscores, or hyphens.

Paste the following configuration into `welcome.yml` and save it:

```yaml
schema-version: 1
id: welcome

canvas:
  width: 320
  height: 180
  pixels-per-block: 42.7
  distance: 3

frontend:
  background:
    type: rectangle
    width: 140
    height: 80
    color: '#182031'
    opacity: 235
  title:
    type: text
    content: '&fWelcome to the server'
    offset: {y: 24, z: 1}
    size: 5
  description:
    type: text
    content: '&7Right-click the button below'
    offset: {y: 4, z: 1}
    size: 3
  greeting-button:
    type: rectangle
    width: 60
    height: 18
    color: '#365E91'
    offset: {y: -20, z: 1}
  greeting-label:
    type: text
    content: '&fSay hello'
    offset: {y: -20, z: 2}
    size: 4

backend:
  greeting-area:
    x: 0
    y: -20
    width: 60
    height: 18
    actions:
      right:
        - 'tell: &aWelcome, %player_name%!'
```

After saving the file, run `/arcmenu reload` in-game or from the console, then run `/arcmenu open welcome` to see the menu right in front of you. The `welcome` argument in the command matches the `id: welcome` field at the top of the file.

If you have the client editor mod installed, you can also run `/arcmenu edit welcome` in-game to tweak the layout visually and click Save to apply your changes on the spot.

## How the configuration fits together

A standard ArcMenu file is organized into three main sections: canvas settings, frontend visuals, and backend interactions:

* **Metadata and canvas (`canvas`)**: `schema-version` is always `1`, and `id` is the menu's unique identifier. `canvas` sets up a 16:9 screen measuring `320 × 180` logical pixels, while `distance: 3` and `pixels-per-block: 42.7` establish the design reference distance and scale (the actual in-game viewing distance is controlled by `offset.yml`, which defaults to `0.65` blocks in front of the player's eyes and scales the menu automatically so its apparent size matches your design).
* **Frontend visuals (`frontend`)**: Everything the player sees lives here. This example uses `type: rectangle` to draw a dark blue panel (`background`) and a lighter blue button shape (`greeting-button`), using hex colors like `'#182031'` and an `opacity` value from `0` to `255`. It then uses `type: text` to place the title, subtitle, and button label.
* **Backend hitboxes (`backend`)**: Frontend elements only draw the visuals; actual click detection is handled by regions inside `backend`. Here, `greeting-area` defines a `60 × 18` rectangular hitbox centered at `(0, -20)`, sitting directly over the visual button. When a player right-clicks (`right`) inside that box, the `tell:` action sends them the chat message.

Notice how the coordinates line up: `(0, 0)` is the exact center of the canvas, with positive `y` going up and negative `y` going down. The button rectangle (`greeting-button`), button text (`greeting-label`), and backend click region (`greeting-area`) all place their center at `y: -20` (with `x` omitted so it defaults to `0`), stacking them cleanly on top of one another. Whenever you want to move the button, just update `x` and `y` on all three together. On the frontend, `z` controls layer order—higher numbers appear closer to the player, so giving the text `z: 2` keeps it clearly in front of the `z: 1` button background.

## Try a few changes

With this foundation working, you can experiment with a few quick edits:

* Change the text in `content` to update the title (both `&` color codes and MiniMessage tags work), or edit the text after `tell:` to customize the chat reply.
* Replace the action under `actions.right` with `- 'open: main'` so right-clicking the button takes the player straight to the server's `main` menu. See [Actions and navigation](/arcmenu-wiki/menu-configuration/menus/actions) for running commands, charging currency, playing sounds, and more.
* Only one menu on the server can be marked as the main menu (the one opened by pressing **Shift+F**). If you want `welcome` to become your server's main menu, set `main-menu: false` (or remove the line) in your current main menu (`main.yml` by default), add `main-menu: true` at the top level of `welcome.yml`, and reload.

To explore all available properties for menus, continue to [Menu document structure](/arcmenu-wiki/menu-configuration/menus), or head over to [Visual editor](/arcmenu-wiki/feature-configuration/editor) to arrange elements by dragging them directly in-game.


# Configuration files

All ArcMenu settings, menus, assets, and generated files live under `plugins/ArcMenu/`. Knowing what each file and folder handles makes everyday configuration changes, resource management, and project backups straightforward.

## Directory structure

| File or directory    | Purpose                                                                                                                                           |
| -------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- |
| `config.yml`         | Global configuration for language, shortcuts, input modes, cursor settings, client playback optimizations, marketplace access, and update checks. |
| `offset.yml`         | Global screen distance and coordinate offsets for Touch mode and Mouse/Vision modes.                                                              |
| `menus/`             | YAML menu configurations containing frontend visual elements, backend click regions, and interaction actions.                                     |
| `images/`            | PNG images, animated GIFs, mouse cursor textures (`images/mouse/`), and tooltip backgrounds used by menus.                                        |
| `templates/`         | Reusable frontend component templates shared across multiple menus.                                                                               |
| `animations.yml`     | Entry, switch, and exit transitions for normal menus, along with animation tracks for elements inside menus.                                      |
| `animations/`        | Standalone menu animation files installed from ArcPack packages.                                                                                  |
| `tooltip.yml`        | Size, padding, position, and nine-slice background styling for hover tooltips.                                                                    |
| `languages/`         | Language files for plugin messages and bundled sample text.                                                                                       |
| `effects/`           | Scene configurations and timeline files for Effect cutscenes.                                                                                     |
| `effects/assets/`    | OGG audio and NBS music files played during Effects.                                                                                              |
| `packs/`             | Locally imported or downloaded `.arcpack` files and installation records.                                                                         |
| `backup-menu/`       | Automatic menu backups created before saving changes in the visual editor.                                                                        |
| `workspace-backups/` | Automatic workspace backups created before imports, installations, or deletions in the project manager.                                           |
| `generated/`         | Automatically generated resource pack files, including the ZIP archive for manual distribution.                                                   |

## Core configuration (`config.yml`)

`config.yml` holds the global runtime settings for the plugin, organized into functional sections.

### Language and shortcuts

```yaml
language:
  default: zh_CN
  follow-player-locale: true

shortcuts:
  shift-f: true
  close-on-shift-f: true
  close-on-space: true
```

* **`language.default`**: Set this to a language filename under `plugins/ArcMenu/languages/` without the file extension. It defaults to `zh_CN`, and both `zh_CN` and `en_US` are built in. Console messages and fallback messages for unmatched client locales use this language.
* **`language.follow-player-locale`**: Accepts `true` or `false`. When set to `true`, messages sent to players automatically match the language selected in their Minecraft client.
* **`shortcuts.shift-f`**: Accepts `true` or `false`. When `true`, pressing Shift+F (sneak + swap offhand) while no interface is open directly opens the menu configured with `main-menu: true`.
* **`shortcuts.close-on-shift-f`**: Accepts `true` or `false` (default `true`). Controls whether players can press Shift+F to close an open normal menu or third-party application. This switch works independently of `shift-f`, so you can disable opening the main menu with Shift+F while still letting players press Shift+F to exit an open menu.
* **`shortcuts.close-on-space`**: Accepts `true` or `false` (default `true`). Controls whether pressing the jump key (Space by default) closes the active menu or application.

Both closing shortcuts apply only to normal runtime menus and applications; they will not interrupt the visual editor, Arcitx text input, or Effect cutscenes.

### Input modes and mouse cursor

```yaml
mouse:
  policy: player-choice
  default: touch
  assume-resource-pack-loaded: true
  sample-rate: 40
  cursor:
    interpolation-ticks: 0
    sensitivity-x: 2.0
    sensitivity-y: 2.0
    clamp-margin: 3.0
    size: 5.0
    z: 5.0
```

* **`mouse.policy`**: Controls which interaction modes the server allows. Valid values are:
  * `player-choice`: Lets players switch freely between `touch`, `mouse`, and `vision` using `/arcmenu mode` (legacy names `crosshair` and `cursor` are also accepted).
  * `force-touch`: Locks the entire server to Touch mode (also accepts the legacy name `force-crosshair`).
  * `force-mouse`: Requires cursor-based interaction (also accepts `force-cursor`), supporting Mouse mode as well as Vision mode for players who have the matching ArcMenu Editor client mod installed.
* **`mouse.default`**: Sets the initial mode for players joining the server before they choose a mode themselves. Accepts `touch`, `mouse`, or `vision`. Vision requires the matching ArcMenu Editor mod for the player's game version.
* **`mouse.assume-resource-pack-loaded`**: Boolean (`true` or `false`), defaulting to **`true`**.
  * When **`true`**, ArcMenu trusts that the client already has the companion ArcMenu resource pack loaded and immediately enables Mouse mode interface lighting, menu depth, fixed FOV, the local client cursor, and eligible local GIF playback without waiting for a server resource-pack load receipt. This is ideal when players place the generated resource pack into their client's `resourcepacks` folder manually.
  * When **`false`**, ArcMenu waits until the server receives confirmation that the resource pack finished loading before enabling those Mouse features. If the resource pack is not ready while a menu is running, Mouse menus that rely on those features close cleanly and can be reopened once loading completes.
  * Regardless of this setting, clients need the matching ArcMenu resource pack installed. This option affects only Mouse mode and has no effect on Touch mode, Vision mode, standalone editor previews, or Effect playback.
* **`mouse.cursor.sensitivity-x` / `sensitivity-y`**: Numbers from `0.05` to `50` (both default to `2.0`) that set the base horizontal and vertical cursor sensitivity.
* **`mouse.cursor.clamp-margin`**: A number greater than or equal to `0` (default `3.0`) that defines how far past the canvas edge the cursor is allowed to move.
* **`mouse.cursor.size`**: A positive number (default `5.0`) setting the logical height of the cursor on the canvas. Cursor textures are always read from `images/mouse/mouse.png` (default state) and `images/mouse/choose.png` (hovering over a clickable region).
* **`mouse.cursor.z`**: A number (default `5.0`) setting the cursor's Z-axis depth so it stays in front of menu elements.
* **`mouse.sample-rate`** and **`mouse.cursor.interpolation-ticks`**: Used by the legacy packet-driven cursor when a local client cursor is not active. `sample-rate` accepts an integer from `20` to `60` (default `40`) for samples per second, and `interpolation-ticks` accepts `0`, `1`, or `2` (default `0`) for smoothing ticks. Both the local Mouse cursor and the Vision cursor render directly on the client in real time without packet polling.

### Client playback and marketplace

```yaml
client-playback:
  local-gifs: true
  linear-offsets: true
  local-cursor-choose: true

marketplace:
  url: 'https://market.myarc.icu:10051'
  certificate-sha256: ''
```

* **`client-playback.local-gifs`**: Accepts `true` or `false` (default `true`). When enabled, eligible GIFs in Mouse mode play directly through native client animated textures with zero per-frame packets sent from the server.
* **`client-playback.linear-offsets`**: Accepts `true` or `false` (default `true`). When enabled, eligible linear movement segments in animation timelines are handed off to vanilla display-entity interpolation on the client for smoother motion and lower bandwidth usage.
* **`client-playback.local-cursor-choose`**: Accepts `true` or `false` (default `true`). When enabled, Mouse mode switches between `mouse.png` and `choose.png` locally on the client when hovering over clickable regions, and both Vision mode and Mouse clients with post-processing support (Minecraft 26.3) also run eligible hover color feedback locally without waiting for a server round trip. When set to `false`, cursor state changes and hover feedback are driven by the server.
* **`marketplace.url`**: The HTTPS URL for the menu marketplace (default `'https://market.myarc.icu:10051'`), used for browsing in the visual editor and downloading ArcPacks on the server. Leave it empty (`''`) to disable remote marketplace requests; local development and testing also accept `http://127.0.0.1:<port>`.
* **`marketplace.certificate-sha256`**: When running a self-hosted private HTTPS marketplace without a public CA certificate, enter the certificate's SHA-256 fingerprint here. Leave it empty (`''`) when using the official marketplace.

For more details on these features, see [Touch, Mouse and Vision input](/arcmenu-wiki/feature-configuration/input-modes), [Animated GIFs](/arcmenu-wiki/feature-configuration/gif), and [ArcPack and marketplace](/arcmenu-wiki/feature-configuration/arcpack).

### Usage metrics and update notifications

```yaml
metrics:
  enabled: true

update-check:
  enabled: true
  url: 'https://market.myarc.icu:10051/arcmenu/updates/premium.json'
  notify-on-join: true
```

* **`metrics.enabled`**: Accepts `true` or `false` (default `true`). Controls anonymous bStats metrics (service ID **34690** for Premium and **34691** for Community). The global switch in `plugins/bStats/config.yml` is also respected.
* **`update-check.enabled`**: Accepts `true` or `false` (default `true`). When enabled, the server periodically checks the public version manifest in the background (every 6 hours by default) to see if a newer release is available. Update checks only compare and report version numbers; they never download or replace plugin files automatically.
* **`update-check.url`**: The JSON URL for the version manifest. Keep the default value.
* **`update-check.notify-on-join`**: Accepts `true` or `false` (default `true`). When enabled, administrators with `arcmenu.admin` receive a notification upon joining if a newer version has been detected. Administrators can also run `/arcmenu update` at any time to check manually.

## Applying changes and rebuilding resources

Saving a menu in the visual editor applies your changes to the server immediately. If you edit YAML menu files, `animations.yml`, or `config.yml` by hand, run `/arcmenu reload` after saving. When running `/arcmenu validate`, `/arcmenu reload`, `/arcmenu reload all`, or `/arcmenu resources`, menu, animation, and template checks as well as resource pack builds run in the background with start and completion messages, one task at a time. When `/arcmenu reload` succeeds, it publishes the updated menus and closes any currently open menus; `/arcmenu validate` only checks configurations without publishing.

When you add or modify PNGs, GIFs, tooltip textures, cursor textures or base cursor geometry, or templates under `images/` or `templates/` (or if you change clickable regions for earlier Mouse clients whose local `choose.png` regions are baked into the resource pack), rebuild the resource pack:

1. Run `/arcmenu resources` or `/arcmenu reload all` to rebuild ArcMenu's assets.
2. If your server uses a custom item plugin to merge and distribute packs, run its pack reload command:
   * **CraftEngine**: `/ce reload pack` (or `/ce reload all`)
   * **Nexo**: `/nexo reload pack`
   * **ItemsAdder**: `/iazip`
3. If you do not use those plugins, distribute the generated ZIP archive directly from `plugins/ArcMenu/generated/`.

## Automatic config completion and initial sample files

Whenever ArcMenu starts or reloads, it checks `config.yml` and automatically fills in any missing default keys introduced by newer releases while preserving all of your existing values (including explicit `false`, `0`, empty strings, and empty lists), custom keys, and comments.

On a fresh installation, ArcMenu Premium extracts a ready-to-use set of sample menus and resources: the `main` menu, the `start` onboarding menu, the `cursor-setting` personal cursor and sensitivity menu, a complete set of `shop/` category menus, the `teleport` menu, and three random-teleport Effect cutscenes (`rtp-overworld`, `rtp-nether`, and `rtp-end`), along with the `images/arcmenu.gif` intro animation and `animations.yml` tracks. Text in the sample menus references language files through `%arcmenu_lang_samples.<key>%`, switching automatically between English and Chinese based on your server and player locale settings. The two mouse cursor textures are kept permanently as core runtime assets.

These sample files are extracted only during the initial installation. If you delete sample menus, images, templates, or animations you do not need, future restarts, reloads, and plugin upgrades will respect your deletions and will not recreate them.


# Commands and permissions

All ArcMenu commands live under `/arcmenu` with full in-game Tab completion. In the tables below, `<argument>` indicates a required parameter and `[argument]` indicates an optional one.

## Player commands

Players use these commands during everyday gameplay to open menus, adjust personal cursor settings, and control Effects.

| Command                                           | Required permission                           | Description and arguments                                                                                                                                                                                                                                                                                |
| ------------------------------------------------- | --------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `/arcmenu open <menu-id>`                         | `arcmenu.use` and the menu's own permission   | Opens the menu with the specified ID (such as `/arcmenu open main` for the default main menu) or a registered extension route.                                                                                                                                                                           |
| `/arcmenu close`                                  | None                                          | Closes the player's currently open menu, Effect cutscene, or editor session.                                                                                                                                                                                                                             |
| `/arcmenu mode`                                   | `arcmenu.use`                                 | Displays the player's active input mode and the server's global input policy.                                                                                                                                                                                                                            |
| `/arcmenu mode <touch\|mouse\|vision>`            | `arcmenu.use`                                 | Switches input mode. Accepts `touch`, `mouse`, or `vision` (`vision` requires the matching ArcMenu Editor client mod for the player's game version). Also supports the legacy alias `/arcmenu mouse` and legacy mode names `crosshair` and `cursor`.                                                     |
| `/arcmenu sensitivity [set\|add\|clear] [value]`  | `arcmenu.use`                                 | Views or adjusts personal mouse sensitivity without changing the server's global config. Run without arguments to view the current level and multiplier; `set <1..9>` sets a specific level (default is `5`); `add <delta>` adds or subtracts levels (such as `1` or `-1`); `clear` resets to level `5`. |
| `/arcmenu cursor-scale [set\|add\|clear] [value]` | `arcmenu.use`                                 | Views or adjusts personal cursor size. Uses the exact same arguments as `sensitivity`, supporting levels `1` through `9` and `clear` to reset.                                                                                                                                                           |
| `/arcmenu effect <effect-id>`                     | `arcmenu.effect` and the project's permission | Plays the specified Effect cutscene.                                                                                                                                                                                                                                                                     |
| `/arcmenu effect <stop\|pause\|resume>`           | `arcmenu.effect`                              | Stops (`stop`), pauses (`pause`), or resumes (`resume`) the player's currently playing Effect.                                                                                                                                                                                                           |
| `/arcmenu market`                                 | `arcmenu.market`                              | Opens the in-game ArcPack marketplace interface (requires the companion Editor client mod; `/arcmenu marketplace` is also accepted).                                                                                                                                                                     |

To open a menu, a player must have both `arcmenu.use` and any `permission` configured inside that menu file. For details on personal sensitivity levels, cursor scale multipliers, and their placeholders, see [Touch, Mouse and Vision input](/arcmenu-wiki/feature-configuration/input-modes).

## Administrator commands

All administrator commands require the `arcmenu.admin` permission, which is granted to server operators (OPs) by default.

### Menu control and routine maintenance

| Command                                         | Console allowed | Description and arguments                                                                                                                                                                       |
| ----------------------------------------------- | --------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `/arcmenu force-open <menu-id> <online-player>` | Yes             | Opens a menu for the specified online player, bypassing both `arcmenu.use` and the menu's `permission` check for this opening without altering the player's actual permissions.                 |
| `/arcmenu refresh <online-player> [element-id]` | Yes             | Immediately refreshes placeholders and dynamic content in the target player's open menu. Omit `[element-id]` to refresh the entire menu, or specify an element ID to refresh only that element. |
| `/arcmenu reload`                               | Yes             | Reloads `config.yml`, `offset.yml`, `tooltip.yml`, language files, and all menu and animation configurations; once complete, publishes the updated menus and closes any currently open menus.   |
| `/arcmenu reload all`                           | Yes             | Performs a full reload: includes everything in `reload`, reloads `templates/`, rebuilds the ArcMenu resource pack, and closes open menus once the new menus are published.                      |
| `/arcmenu resources`                            | Yes             | Rescans images, GIFs, and cursor settings and rebuilds the resource pack (alias: `/arcmenu resourcepack`).                                                                                      |
| `/arcmenu validate`                             | Yes             | Validates syntax and geometry rules across all menus, animations, templates, and configuration files without publishing new menus or closing open menus.                                        |
| `/arcmenu list`                                 | Yes             | Lists the IDs of all currently loaded menus.                                                                                                                                                    |
| `/arcmenu templates`                            | Yes             | Lists the IDs of all currently loaded frontend templates.                                                                                                                                       |
| `/arcmenu status`                               | Yes             | Shows a runtime summary including loaded menus, animation tracks, images, templates, active sessions, display entities, input policy, and editor protocol version.                              |
| `/arcmenu update`                               | Yes             | Checks the version manifest immediately and reports if a newer release is available.                                                                                                            |

For `/arcmenu reload`, `/arcmenu reload all`, `/arcmenu resources`, and `/arcmenu validate`, heavy work—parsing and validating menus, animations, and templates, plus building the resource pack—runs in the background with start and completion messages. Only one of these tasks runs at a time.

### Editing, project management, and marketplace installation

| Command                                               | Console allowed | Description and arguments                                                                                                                    |
| ----------------------------------------------------- | --------------- | -------------------------------------------------------------------------------------------------------------------------------------------- |
| `/arcmenu edit <menu-id>`                             | No              | Opens the specified menu in the visual editor (alias: `/arcmenu editor`).                                                                    |
| `/arcmenu edit <new-menu-id> create [source-menu-id]` | No              | Creates a new blank menu and opens it in the editor; if `[source-menu-id]` is provided, copies that menu as the starting point.              |
| `/arcmenu projects`                                   | No              | Opens the visual project manager (alias: `/arcmenu project`).                                                                                |
| `/arcmenu download pack <pack-id> [version]`          | Yes             | Downloads and installs an ArcPack directly from the marketplace. Omit `[version]` to install the latest release.                             |
| `/arcmenu preview <menu-id> [frontend\|backend]`      | No              | Opens an administrator preview of the menu in game. Defaults to `frontend` for visual elements; pass `backend` to inspect clickable regions. |

### Animations, Effects, and diagnostics

| Command                                                 | Console allowed | Description and arguments                                                                                                                                                                                                                |
| ------------------------------------------------------- | --------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `/arcmenu editeffect [effect-id] [source-menu-id]`      | No              | Opens the Effect editor for an existing project, a new blank project, or a new project initialized from `[source-menu-id]`.                                                                                                              |
| `/arcmenu effect <effect-id> <online-player>`           | Yes             | Plays an Effect cutscene for the specified online player.                                                                                                                                                                                |
| `/arcmenu effect <stop\|pause\|resume> <online-player>` | Yes             | Stops, pauses, or resumes Effect playback for the target player.                                                                                                                                                                         |
| `/arcmenu effect list`                                  | Yes             | Lists all loaded Effect project IDs.                                                                                                                                                                                                     |
| `/arcmenu effect reload`                                | Yes             | Reloads all Effect projects under `effects/`.                                                                                                                                                                                            |
| `/arcmenu animations`                                   | Yes             | When run in game, lists animation tracks available on your current menu; when run from the console, lists animation track IDs across all loaded menus.                                                                                   |
| `/arcmenu animate <animation-id>`                       | No              | Plays the specified animation track on your currently open menu.                                                                                                                                                                         |
| `/arcmenu stop-animation <animation-id>`                | No              | Stops the specified animation track on your currently open menu.                                                                                                                                                                         |
| `/arcmenu pointer`                                      | No              | Displays cursor coordinates and hit-detection details for your active menu session.                                                                                                                                                      |
| `/arcmenu pointer debug [on\|off]`                      | No              | Enables (`on`, or when omitted) or disables (`off`) local cursor diagnostics, printing cursor and flat-lighting status to chat and the server log.                                                                                       |
| `/arcmenu performance [reset]`                          | Yes             | Displays a performance report covering per-tick timing, matrix and metadata write/skip rates, entity spawns and removals, active sessions, and estimated bandwidth; pass `reset` to clear collected statistics (alias: `/arcmenu perf`). |

## Permissions

| Permission node       | Default               | Description                                                                                                                               |
| --------------------- | --------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- |
| `arcmenu.use`         | All players           | Allows opening and using normal menus, switching input modes, and adjusting personal sensitivity and cursor size.                         |
| `arcmenu.effect`      | All players           | Allows playing and controlling one's own Effect cutscenes.                                                                                |
| `arcmenu.effect.exit` | Not granted (`false`) | Allows exiting an active Effect cutscene early by pressing Shift+F or the jump key.                                                       |
| `arcmenu.market`      | All players           | Allows opening and browsing the ArcPack marketplace with an authenticated Minecraft account.                                              |
| `arcmenu.admin`       | OP                    | Grants access to all administration, reload, validation, editor, project manager, force-open, refresh, download, and diagnostic commands. |

When a menu defines a root permission such as `permission: myserver.menu.vip`, a player needs both `arcmenu.use` and `myserver.menu.vip` to open it. If you want players who lack `myserver.menu.vip` to be redirected automatically to an informational or upgrade menu, configure `permission-denied-menu` in that menu; see [Menu document structure](/arcmenu-wiki/menu-configuration/menus) for details.


# Platform and plugin compatibility

ArcMenu integrates cleanly into modern server setups, working alongside popular server cores, custom item plugins, economy systems, and cross-version tools.

## Server platforms

Paper, Leaf, Folia, Purpur, and other Paper-based servers share the same plugin JAR and `plugins/ArcMenu/` directory and support the complete ArcMenu feature set. On Folia, ArcMenu automatically follows regionized multithreading rules, scheduling player and display-entity operations on their owning region threads.

| Feature area                                                                       | Paper / Leaf / Folia / Purpur                        |
| ---------------------------------------------------------------------------------- | ---------------------------------------------------- |
| Text, rectangles, borders, lines, vanilla items, and blocks                        | Supported                                            |
| Left-click, right-click, Shift-click combinations, command actions, and navigation | Supported                                            |
| Shift+F main menu shortcut and Space / Shift+F closing shortcuts                   | Supported                                            |
| Images, animated GIFs, and automatic resource pack generation                      | Supported                                            |
| Mouse mode, Vision mode, local cursor, and fixed FOV                               | Supported (Vision requires the companion Editor mod) |
| Hover tooltips, menu animations, and Effect cutscenes                              | Supported                                            |
| CraftEngine, Nexo, and ItemsAdder custom items and pack merging                    | Supported                                            |
| Visual editor, project manager, marketplace, and developer API                     | Supported                                            |

For server versions and Java requirements, see [Requirements](/arcmenu-wiki/getting-started/requirements).

## Custom item and resource pack plugins (CraftEngine / Nexo / ItemsAdder)

ArcMenu works natively with **CraftEngine**, **Nexo**, and **ItemsAdder**, letting you display their custom item models inside menus and automatically merge ArcMenu's generated assets into their resource packs.

### Displaying custom items in menus

In the `material` field of a frontend `type: item` element, enter the item identifier for your plugin:

* **CraftEngine**: Enter `namespace:item_id` (for example, `myitems:ruby_sword`) or use the explicit prefix `craftengine:namespace:item_id`. Unprefixed custom namespaced IDs resolve as CraftEngine items by default.
* **Nexo**: Enter `nexo:item_id` (for example, `nexo:magic_staff`).
* **ItemsAdder**: Enter `ia:namespace:item_id` or `itemsadder:namespace:item_id` (for example, `ia:custom:golden_key`).

If your server runs multiple custom item plugins that share similar item names, use the explicit prefix form. Pair the item with `context: GUI` to render it with its flat inventory icon orientation; see [Frontend element types](/arcmenu-wiki/menu-configuration/menus/frontend) for rotation and scale options. If custom items are still loading while the server starts up, ArcMenu automatically waits for the item plugin to finish initializing and then completes menu loading.

### Automatic resource pack merging

All three plugins can merge the images, GIFs, cursors, and shaders generated by ArcMenu without copying folders by hand or editing their configuration files:

* **Nexo** merges ArcMenu assets automatically during its pre-pack generation event.
* **ItemsAdder** receives ArcMenu assets during its pack merge event while preserving your existing pack metadata and `overlays` structure.
* **CraftEngine** merges ArcMenu's generated output directly whenever it builds its resource pack.

After adding or updating menu images or GIFs, first run `/arcmenu resources` or `/arcmenu reload all` to update ArcMenu's output, then run your item plugin's pack reload command to merge and distribute the updated pack:

* CraftEngine: `/ce reload pack` (or `/ce reload all`)
* Nexo: `/nexo reload pack`
* ItemsAdder: `/iazip`

When you import or modify workspace assets through the project manager, ArcMenu also requests a pack rebuild automatically (when multiple plugins are installed, automatic rebuild triggers prioritize CraftEngine, then Nexo, then ItemsAdder; running any plugin's reload command manually will always merge the assets). If your server has more than one custom content plugin installed, configure only one of them to send the final resource pack to players. In addition, enabling the `allowCe` option when exporting an ArcPack project also permits Nexo and ItemsAdder item references.

For full resource pack setup details, see [Images and resource packs](/arcmenu-wiki/feature-configuration/resource-packs).

## PlaceholderAPI

With PlaceholderAPI and the relevant expansions installed, you can use placeholders from other plugins—such as coin balances, points, levels, guild names, or quest progress—directly inside menu text, tooltips, image paths, item materials, conditions, and actions. ArcMenu's built-in placeholders for player info, coordinates, cursor preferences, and menu data work out of the box without extra dependencies.

## Vault and PlayerPoints

* **Vault**: When paired with any Vault-compatible economy plugin (such as EssentialsX or CMI), you can check player balances in conditions and add, deduct, or set money directly from menu actions.
* **PlayerPoints**: Lets you check, add, deduct, or set player points directly in conditions and actions.

Combining placeholder displays, conditions, and economy actions makes it easy to build shops, paid teleports, and upgrade menus; see [Advanced actions](/arcmenu-wiki/menu-configuration/menus/advanced-actions) for configuration examples.

## Cross-version connections and client rendering (ViaVersion and shaders)

When **ViaVersion** is installed so clients on different Minecraft versions can join, ArcMenu detects each player's actual client protocol version and serves the matching Mouse mode resources automatically.

Each input mode and cutscene renderer uses an approach suited to its visual requirements and shader compatibility:

* **Touch mode**: Requires no client mod and renders entirely with vanilla display entities, respecting the player's normal FOV and world block occlusion. It does not load or activate menu shaders, keeping gameplay rendering completely unchanged with any shader pack enabled.
* **Mouse mode**: Requires no client mod and uses the companion resource pack to provide a local client cursor, fixed FOV, menu depth, and flat lighting.
* **Vision mode**: Available whenever a player installs the matching **ArcMenu Editor** mod for their client version. Vision is built directly into the Editor mod, providing a responsive local cursor and a dedicated menu rendering pass with fixed FOV, bright item lighting, no occlusion from world blocks or entities, and full compatibility with shader packs and system IME text input.
* **Effect cutscenes**: Both live playback and editor previews use vanilla display entities and a native fixed camera without relying on Mouse shaders, so players can watch cutscenes without installing any client mod.

## Integrating with other gameplay plugins

Beyond running commands through `player:` (as the player) and `console:` (from the server console) to connect existing teleport, inventory, crate, or skill plugins to menu buttons, third-party plugins can also register native hosted applications through ArcMenu's developer API.

Once registered, a plugin interface can be opened directly on the current menu plane with the action `open-app: namespace:app-id`, sharing the same screen position, cursor control, and back-navigation history stack as standard YAML menus. See [Developer application API](/arcmenu-wiki/feature-configuration/application-api) for the integration guide.


# FAQ and troubleshooting

This page covers common questions and solutions when configuring menus, setting up resource packs, and working with the visual editor.

## Menu file changes do not show up in game

After editing YAML files in `plugins/ArcMenu/menus/` by hand, run `/arcmenu reload` to apply your changes. When you edit and save a menu inside the visual editor, the server loads the updated menu automatically.

If a configuration fails validation during reload, ArcMenu keeps the previous working version of the menu active and prints the exact file, field, and reason for the failure to chat and the server log. You can also run `/arcmenu validate` at any time to check all configuration files.

For example, `border` elements require `2 * thickness < min(width, height)`. If a border has `width: 2` and keeps the default `thickness: 1`, the two opposite sides touch and leave no interior space, causing validation to fail. Lowering `thickness` (for instance, `thickness: 0.5`) resolves the error; see [Frontend element types](/arcmenu-wiki/menu-configuration/menus/frontend).

## Players cannot open a menu

To open a menu, a player needs both the default `arcmenu.use` permission and any `permission` configured on that menu.

Player movement state also matters: if a player jumps on the ground, normal menus wait until the player lands before opening. Players who are flying, or who are in Creative or Spectator mode, can open menus while airborne. Once a menu is open, physically moving, teleporting, or dying closes the interface automatically so the player regains camera control.

## Pressing Shift+F does not open the main menu

Check these two settings:

1. Open `config.yml` and confirm that `shortcuts.shift-f` is set to `true`.
2. Check the menu files in `plugins/ArcMenu/menus/` and make sure exactly one menu has `main-menu: true` set at its root.

Shift+F corresponds to the in-game Sneak + Swap Item With Offhand keybinds; if a player has rebound either action in their client controls, they should press their custom keys instead. Closing an open menu with Shift+F is controlled separately by `shortcuts.close-on-shift-f`, and closing with Space is controlled by `shortcuts.close-on-space`.

## A button looks fine on screen, but clicking it does nothing

ArcMenu separates visual presentation from click detection: `frontend` draws the elements on screen, while `backend` defines the clickable regions.

If a button does not respond to clicks, check that the corresponding region in `backend` has its center `offset`, `width`, and `height` aligned with the frontend button, and verify whether `events` is listening for `left`, `right`, or a Shift combination such as `shift-left`. When multiple regions overlap, the region with the higher `priority` value handles the click. Administrators can run `/arcmenu preview <menu-id> backend` in game to visualize the exact position and bounds of every click region.

## An image is missing or still shows the old version

First, verify that the image element's `source` path matches the actual file path inside `plugins/ArcMenu/images/`. For example, `source: '/ui/logo.png'` points to `plugins/ArcMenu/images/ui/logo.png`.

Once the path is confirmed, rebuild and reload the resource pack whenever you add or replace images:

* Run `/arcmenu resources` or `/arcmenu reload all` to rebuild ArcMenu's assets.
* If you merge packs through a custom item plugin, run `/ce reload pack` (or `/ce reload all`), `/nexo reload pack`, or `/iazip`, then have the client reload the updated resource pack.
* If players use a manually installed local resource pack, replace the ZIP file in the client's `resourcepacks` folder with the newly generated archive from `plugins/ArcMenu/generated/`.

## Which input mode should I use with shader packs?

When playing with shader packs enabled, two modes work best:

* **Vision mode**: Players with the matching **ArcMenu Editor** mod installed for their client version can switch to Vision mode using `/arcmenu mode vision`. Vision is built right into the Editor mod—no separate mouse mod is required—and provides an instant local cursor, fixed FOV, bright item rendering, and menu rendering that is never occluded by world blocks or entities, even with shaders active.
* **Touch mode**: For players without client mods, run `/arcmenu mode touch`. Touch mode renders purely with vanilla display entities without activating ArcMenu's lighting, depth, or FOV shaders, so it works naturally with any shader pack.

Effect cutscenes also use a vanilla fixed camera and do not rely on Mouse shaders.

## The mouse cursor is missing, Vision will not enable, or cursor alignment is off

If the cursor does not appear in Mouse mode, make sure the client has loaded the latest resource pack containing ArcMenu's assets. Whenever you change cursor settings in `config.yml` or replace textures under `images/mouse/`, regenerate and redistribute the resource pack.

If a player cannot switch to Vision mode, confirm that they have installed the matching **ArcMenu Editor** mod for their Minecraft version and restarted the client. Keeping both the server plugin and the client Editor mod on current matching releases is recommended.

To inspect cursor coordinates or rendering state while a menu is open, administrators can run `/arcmenu pointer` to view hit-test details, or `/arcmenu pointer debug on` to enable live diagnostics (`/arcmenu pointer debug off` turns them off).

## Mouse menus look dark or get blocked by terrain when using a manually installed resource pack

When players drop the generated resource pack into their client's `resourcepacks` folder manually instead of receiving it from the server, the server does not receive a pack-loaded receipt from the client.

Check `mouse.assume-resource-pack-loaded` in `config.yml`:

* Keep it set to the default **`true`** so Mouse mode enables flat lighting, menu depth, fixed FOV, the local cursor, and local GIFs immediately without waiting for a server receipt. After changing the setting, run `/arcmenu reload` and reopen the menu.
* If it is set to **`false`**, you must distribute the pack through the server (via `server.properties`, CraftEngine, Nexo, or ItemsAdder) so the server receives a load confirmation before activating those effects.

## Does pressing Space to close a menu in Vision mode make the player jump?

No. When you press Space to close a menu in Vision mode, the client consumes the jump key's press, repeat, and release events so no jump input reaches your character. Whether Space closes menus is still controlled by `shortcuts.close-on-space` in `config.yml`, and pressing Space while typing in an Arcitx text field simply enters a space character.

## Placeholders in menus are not replaced with values

See [Placeholders and text formatting](/arcmenu-wiki/text-formatting/text-placeholders) for the syntax of ArcMenu's built-in placeholders. If you are using placeholders from third-party plugins (such as `%vault_eco_balance%` or `%player_level%`), make sure **PlaceholderAPI** is installed and that the required PAPI expansions are downloaded and registered (for example, `/papi ecloud download Player` followed by `/papi reload`).

To refresh placeholder values periodically while a menu stays open, set an `update` interval on the text or image element, or trigger a refresh from an action or admin command.

## Changing `alignment` between `left` and `right` does not move a single line of text

On a `text` element, `offset` sets the center point of the entire text block, while `alignment` (`left`, `center`, `right`) controls how multiple lines align relative to each other inside a paragraph. When a text element contains only one line, changing paragraph alignment does not shift its center position. To move a single line of text left or right, adjust its `offset.x` coordinate; see [Frontend element types](/arcmenu-wiki/menu-configuration/menus/frontend).

## Backgrounds and text at different Z depths do not line up near screen edges

In the default perspective mode, layers with a larger Z value (closer to the camera) appear slightly larger due to perspective foreshortening, which becomes more noticeable toward the edges of the screen.

If you are building a flat UI where layers at different Z depths should stay aligned across the entire canvas, set `depth-mode: layered` under `canvas`. Layered depth keeps flat layers visually aligned in both size and position while preserving 3D perspective for tilted planes and 3D items; see [Canvas, coordinates and screen position](/arcmenu-wiki/menu-configuration/menus/canvas).

## How do I calculate `quantity × unit price` inside a condition?

Condition expressions evaluate arithmetic and comparisons directly, so you can write the formula right inside `condition`:

```yaml
condition: '%vault_eco_balance% >= {meta:input-x} * 24'
```

To display a calculated result in frontend text or pass it into an action parameter, wrap the formula in `{math: ...}` (for example, `{math: {meta:input-x} * 24}`). See [Math expressions](/arcmenu-wiki/menu-configuration/menus/math-expressions) for all supported operators and functions.

## The visual editor will not open or reports an error when saving

* **Editor will not open**: Make sure your client has both **Fabric API** and the matching **ArcMenu Editor** mod for your Minecraft version installed, and that your account has the `arcmenu.admin` permission. If you see a connection or protocol message, update both the server plugin and the client Editor mod to current matching builds. Once in game, run `/arcmenu edit <menu-id>` to open the menu editor or `/arcmenu projects` to open the project manager.
* **Oversized text or packet message**: A single editor text field can transfer up to **256 KiB**, and a complete logical packet can transfer up to **1 MiB** (measured in UTF-8 bytes). Because an entire action configuration block can be transmitted as a single field, its size is measured across the whole block rather than a single line. The error message names the exact field, its byte size, and the limit so you can trim or split the content; see [Visual editor](/arcmenu-wiki/feature-configuration/editor).
* **File changed on disk message when saving**: Another administrator or an external text editor modified and reloaded the menu's YAML file on the server while you had it open in the editor. Reopen the menu to load the latest version and continue editing; pre-save backups are also stored automatically in `plugins/ArcMenu/backup-menu/`.

## How marketplace login and downloads work

When you open the visual editor or project manager, the client automatically verifies your marketplace session using your active **authenticated Minecraft account**. The marketplace screen displays your login status and provides a retry button if a network hiccup occurs.

Installing marketplace packages onto the server requires `arcmenu.admin`. In addition to clicking install inside the marketplace UI, administrators can run `/arcmenu download pack <pack-id> [version]` in game or from the server console.


# Menu document structure

Every menu is a YAML file inside `plugins/ArcMenu/menus/`. You can place files directly in the root directory or organize them into subfolders by feature, such as `menus/shop/weapons.yml` or `menus/system/settings.yml`. Commands and navigation actions always reference the menu `id` defined inside the file, so you are free to name and organize the files themselves however you like.

## Creating a new menu with auto-completion

When creating a new menu, you do not need to write the boilerplate by hand. Create an empty `.yml` file (or a file containing only comments) anywhere under `menus/` and run `/arcmenu reload`. ArcMenu automatically fills in the standard header and saves the file. For example, an empty `shop.yml` becomes:

```yaml
schema-version: 1
id: 'shop'
canvas:
  width: 320
  height: 180
  pixels-per-block: 42.7
  distance: 3
```

The generated `id` defaults to the filename without the `.yml` extension. If another menu on the server already uses that ID, ArcMenu appends a number (`shop1`, `shop2`, and so on) to avoid conflicts. If an existing menu file is missing its entire `canvas` section, reloading also inserts the default canvas settings while preserving your comments and other configuration.

## Complete structure overview

A complete menu typically consists of five parts: basic metadata, canvas settings, frontend visuals, backend interaction regions, and lifecycle events:

```yaml
schema-version: 1
id: menu-guide
permission: ''
main-menu: false

canvas:
  width: 320
  height: 180
  pixels-per-block: 42.7
  distance: 3

frontend:
  title:
    type: text
    content: '&fMenu Guide'
    offset: {y: 20, z: 1}
    size: 5
  close-button:
    type: rectangle
    width: 60
    height: 18
    offset: {y: -20, z: 1}
    color: '#365E91'
  close-label:
    type: text
    content: '&fClose'
    offset: {y: -20, z: 2}
    size: 4

backend:
  close-area:
    x: 0
    y: -20
    width: 60
    height: 18
    actions:
      right: close

events:
  open:
    - 'sound: BLOCK_CHEST_OPEN-1-1'
  close:
    - 'sound: BLOCK_CHEST_CLOSE-1-1'
```

## Top-level fields

The root of a menu file accepts only the fields listed below. Misspelled or unknown root keys produce a clear error when the menu loads:

| Field                    | Valid values and description                                                                                                                         | Default when omitted                    |
| ------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------- |
| `schema-version`         | Configuration format version. Always set this to the integer `1`.                                                                                    | Required                                |
| `id`                     | Unique menu identifier. Must start with a lowercase letter or digit and may contain lowercase letters, digits, underscores (`_`), and hyphens (`-`). | Required                                |
| `permission`             | Additional permission node (string) required to open the menu. When empty or omitted, players only need the base `arcmenu.use` permission.           | `''` (no extra permission)              |
| `permission-denied-menu` | ID of another menu to open automatically when the player lacks the required `permission`. Uses the same format rules as `id`.                        | `''` (block access without redirecting) |
| `open-commands`          | Custom commands registered specifically to open this menu. Accepts a single string or a list of strings.                                             | Empty list                              |
| `main-menu`              | `true` or `false`. Determines whether pressing `Shift+F` opens this menu as the server's main menu.                                                  | `false`                                 |
| `canvas`                 | Object defining the logical canvas dimensions, scale, design distance, and depth mode.                                                               | Default canvas settings                 |
| `frontend`               | Map of all visible elements (text, images, rectangles, items, blocks, and groups).                                                                   | Empty (no visual elements)              |
| `backend`                | Map of all clickable hitboxes, tooltips, and text input components.                                                                                  | Empty (no interaction regions)          |
| `events`                 | Actions executed when the menu opens (`open`) or closes (`close`).                                                                                   | Empty (no lifecycle actions)            |

## Custom open commands and the main menu

Beyond `/arcmenu open <menu-id>`, you can bind short, direct commands to frequently used menus or designate a menu as the server-wide main menu:

```yaml
open-commands:
  - servermenu
  - guide
main-menu: true
```

With this configuration, players can type `/servermenu` or `/guide`, or press `Shift+F`, to open the menu directly.

When configuring `open-commands`, keep these rules in mind:

* Do not include a leading slash (`/`) in the command name.
* Use only lowercase letters, digits, underscores (`_`), and hyphens (`-`), starting with a letter or digit, up to 64 characters long.
* Do not list duplicate command names within the same menu.

Only one menu file on your server should have `main-menu: true` (such as the default `main` menu created on first install). When switching to a different main menu, set `main-menu: false` in the previous one.

## Permission checks and fallback menus

To open a menu, a player must have both `arcmenu.use` and any node configured in `permission`.

If a menu is reserved for VIP members or players who have reached a specific stage, a plain "permission denied" message can feel abrupt. You can pair `permission` with `permission-denied-menu` to redirect unauthorized players to an introduction or unlock guide instead:

```yaml
permission: myserver.vip
permission-denied-menu: vip-intro
```

When a player tries to open this menu:

* Players with `myserver.vip` enter the menu normally.
* Players without `myserver.vip` do not trigger this menu's `open` event. Instead, they are automatically sent to `vip-intro` along with any navigation arguments originally passed in (the target menu still checks its own permissions).
* Administrators running `/arcmenu force-open <menu-id> <player>` bypass permission checks and open the target menu directly for that player.

## How frontend visuals and backend regions work together

ArcMenu separates what players see from what they click into `frontend` and `backend`:

* **`frontend`** handles layout and presentation. Elements can be combined inside groups (`group`) and support 3D translation, rotation, and scaling.
* **`backend`** handles cursor clicks, hover detection, and tooltips. Interaction regions stay aligned with the horizontal and vertical axes of the canvas and define their own coordinates, width, and height.

Every element and group key under `frontend`, as well as every region and group key under `backend`, **must be unique across the entire menu file**. Keys cannot be duplicated and cannot contain slashes (`/`, `\`) or control characters.

## Open and close events

The `events` section runs actions at key points in the menu lifecycle and supports two keys, `open` and `close`:

```yaml
events:
  open:
    - 'tell: &aWelcome, %player_name%!'
    - 'sound: BLOCK_CHEST_OPEN-1-1'
  close:
    - 'sound: BLOCK_CHEST_CLOSE-1-1'
```

Lifecycle events use the exact same action syntax and conditional action groups as buttons. To trigger effects when a player moves the cursor onto or off a specific button, use `on-hover` and `on-leave` inside that button's `backend` region instead.

Next, explore each part of a menu in detail:

* [Canvas, coordinates and screen position](/arcmenu-wiki/menu-configuration/menus/canvas)
* [Frontend element types](/arcmenu-wiki/menu-configuration/menus/frontend)
* [Backend regions and click events](/arcmenu-wiki/menu-configuration/menus/backend)
* [Actions and navigation](/arcmenu-wiki/menu-configuration/menus/actions)


# Canvas, coordinates and screen position

Understanding ArcMenu's coordinate system makes laying out menus straightforward. Whether you write YAML by hand or drag elements around in the visual editor, every element follows the same directional rules:

* **Origin `(0, 0)`** sits at the exact center of the canvas.
* **`x` axis** controls horizontal position: positive values move right, negative values move left.
* **`y` axis** controls vertical position: positive values move up, negative values move down.
* **`z` axis** controls depth: positive values move closer to the player's eyes (in front), and negative values move farther away (behind).

Internal menu layout uses logical canvas units (virtual pixels), while the physical distance between the menu and the player in the game world is measured in Minecraft blocks.

## Canvas configuration (`canvas`)

Each menu's `canvas` section defines the size and proportions of its virtual screen:

```yaml
canvas:
  width: 320
  height: 180
  pixels-per-block: 42.7
  distance: 3
  depth-mode: perspective
```

| Field              | Valid values and description                                                              | Default when omitted |
| ------------------ | ----------------------------------------------------------------------------------------- | -------------------- |
| `width`            | Logical canvas width. Must be a number greater than `0`.                                  | `320`                |
| `height`           | Logical canvas height. Must be a number greater than `0`.                                 | `180`                |
| `pixels-per-block` | Number of canvas units per block length. Must be a number greater than `0`.               | `42.7`               |
| `distance`         | Design reference distance of the menu in blocks. Must be a number greater than `0`.       | `3`                  |
| `depth-mode`       | Depth rendering mode: `perspective` (3D perspective) or `layered` (flat layer alignment). | `perspective`        |

The default `320 × 180` canvas forms a standard 16:9 screen. Because `(0, 0)` is at the center, the left edge is `x: -160`, the right edge is `x: 160`, the top edge is `y: 90`, and the bottom edge is `y: -90`.

To change how large the entire menu appears on screen, adjust `pixels-per-block` or `distance`:

* **Decrease `pixels-per-block`** (for example, to `32`): each canvas unit takes up more space, making the entire menu appear **larger**.
* **Increase `pixels-per-block`** (for example, to `60`): canvas units pack more tightly together, making the entire menu appear **smaller**.
* **Change `distance`**: a larger design distance makes the menu look smaller in the player's view, while a shorter design distance makes it look larger.

Note that `canvas.distance` is the design reference distance used to calculate visual proportions. The actual physical distance at which the menu spawns in front of the player at runtime is controlled by `offset.yml` (which defaults to `0.65` blocks). ArcMenu automatically scales the menu to match that physical distance so your intended visual size stays the same.

## Aligning element coordinates and click regions

Frontend elements set their position inside `offset`, whereas backend click regions use `x` and `y` directly. In both cases, the coordinates specify the **center of the element or region**:

```yaml
frontend:
  button-bg:
    type: rectangle
    width: 60
    height: 18
    color: '#365E91'
    offset: {x: 0, y: -20, z: 1}
  button-label:
    type: text
    content: '&fClose'
    size: 4
    offset: {x: 0, y: -20, z: 2}

backend:
  close-area:
    x: 0
    y: -20
    width: 60
    height: 18
    actions:
      right: close
```

In this example, the background rectangle, text label, and clickable region are all centered at `(0, -20)` with dimensions of `60 × 18` (extending 30 units left and right, and 9 units up and down). Setting the text's `z` to `2` places it closer to the player than the background at `z: 1`, so the label renders cleanly on top of the button background.

When a frontend element is placed inside a `group`, its `offset` becomes relative to the group's center. Whenever you move or scale a frontend button, remember to update the matching `backend` region so the clickable area lines up with the final visual position and size.

## Depth modes: perspective vs. flat layered alignment

When stacking backgrounds, borders, images, and text, you assign different `z` values to control which layer appears in front. `depth-mode` controls how elements at different `z` depths are projected onto the screen:

### `perspective` (default 3D perspective)

Follows natural 3D perspective where closer objects appear larger. Increasing an element's `z` value moves it closer to the player, which makes it look slightly larger on screen and shifts it outward toward the edges of the view. This mode works well for menus designed with a sense of three-dimensional depth.

### `layered` (flat layer alignment)

```yaml
canvas:
  width: 320
  height: 180
  pixels-per-block: 42.7
  distance: 3
  depth-mode: layered
```

For clean, flat 2D interfaces, use `layered` (you can also toggle this directly in the visual editor's canvas settings).

In `layered` mode, `z` values still determine front-to-back stacking order (higher `z` covers lower `z`), but the server automatically compensates for the size changes and positional drift caused by depth differences. A background panel at `z: 1` and a border frame at `z: 2` that both specify `x: 50, y: 30, width: 100, height: 40` will align edge-to-edge on screen. Depth changes coming from groups and animations also receive this automatic compensation.

Keep in mind that `layered` specifically compensates flat interface elements that stay parallel to the menu plane. If you tilt a flat element around the `x` or `y` axis, or place 3D `item` and `block` elements that have their own thickness, they retain their natural 3D perspective. Keep your elements in front of the viewpoint and use small `z` steps (such as `0.5`, `1`, `2`) to separate layers.

## Global screen positioning: `offset.yml`

While `canvas` controls the design dimensions of an individual menu, `plugins/ArcMenu/offset.yml` controls where menus are physically placed in front of the player across the entire server:

```yaml
touch:
  distance: 0.65
  offset: {x: 0, y: 0, z: 0}

mouse:
  distance: 0.65
  offset: {x: 0, y: 0, z: 0}
```

The file has separate sections for `touch` (Touch mode) and `mouse` (which applies to Mouse mode, Vision mode, and visual editor previews):

* **`distance`**: The actual physical distance in blocks from the player's eyes to the menu screen (`0.1` to `16`). Changing this value **does not change how large the menu looks on screen**—ArcMenu automatically rescales the elements to match. It only changes how close the menu entities sit in the world (for example, reducing `distance` helps prevent the menu from clipping into walls right in front of the player).
* **`offset`**: Additional translation of the entire screen in blocks, with valid values from `-16` to `16` on the `x`, `y`, and `z` axes. Positive `x` shifts the screen right, positive `y` shifts it up, and positive `z` pulls it closer to the player.

For instance, if menus feel slightly too low in Touch mode, set `touch.offset.y` to `0.05`, save the file, run `/arcmenu reload`, and reopen the menu to see the updated position.

## Field of view (FOV) behavior across modes

When players adjust their FOV slider in the client settings, each input mode handles the view as follows:

* **Mouse mode**: With the companion resource pack loaded, menus maintain a fixed-FOV display proportion and do not warp when the player sprints or changes their FOV setting.
* **Vision mode and visual editor preview**: Rendered independently by the client at a fixed 70° vertical FOV, keeping the menu size constant on screen and working alongside shader packs.
* **Touch mode**: Rendered purely with vanilla display entities without loading custom shaders, ensuring full compatibility with shader packs. The menu size on screen scales naturally with the player's FOV setting just like ordinary objects in the world.
* **Effect cutscenes**: Use a fixed vanilla camera viewpoint and render according to the scene's own camera design.


# Frontend element types

The `frontend` section defines all visible elements in a menu. Each key you add under `frontend` serves as that element's unique ID, using `type` to choose the element kind along with position, size, and appearance properties. Click and hover interactions are configured separately in the matching `backend` regions.

## Properties shared by all elements

Every frontend element supports these four base transform and visibility properties:

| Property   | Valid values and description                                                                                                                                       | Default when omitted |
| ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -------------------- |
| `offset`   | Object with finite numeric `x`, `y`, and `z` values controlling the element's position relative to the canvas center (or parent group center).                     | `{x: 0, y: 0, z: 0}` |
| `rotation` | Object with `x`, `y`, and `z` angles in degrees. `z` rotates within the menu plane; `x` and `y` tilt the element forward or backward.                              | `{x: 0, y: 0, z: 0}` |
| `scale`    | Scale multiplier object using non-zero numbers. Flat elements use `x` and `y`; 3D `item` and `block` elements also accept `z`. Negative values mirror the element. | `1` on each axis     |
| `visible`  | `true` (shown) or `false` (hidden). Do not set static `scale` to `0` to hide an element; use `visible: false` instead.                                             | `true`               |

## Text (`text`)

Displays titles, button labels, or dynamic data powered by placeholders:

```yaml
frontend:
  player-info:
    type: text
    content: '&f%player_name%'
    size: 5
    offset: {x: 0, y: 20, z: 1}
    update: 20
```

| Property     | Valid values and description                                                                                                                                                                        | Default when omitted |
| ------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------- |
| `content`    | Required string. Supports color codes, gradients, `\n` line breaks, and PlaceholderAPI placeholders.                                                                                                | Required             |
| `size`       | Number greater than `0` controlling the font size.                                                                                                                                                  | `10`                 |
| `font`       | Resource pack font ID formatted as `namespace:path` (lowercase letters, digits, underscores, dots, hyphens, or slashes).                                                                            | `minecraft:default`  |
| `opacity`    | Integer from `0` to `255` controlling text opacity (`255` is fully opaque).                                                                                                                         | `255`                |
| `line-width` | Integer greater than `0` setting the automatic word-wrap width in font pixels.                                                                                                                      | `200`                |
| `alignment`  | Alignment of multiple lines within the paragraph box: `left`, `center`, or `right`.                                                                                                                 | `center`             |
| `update`     | Placeholder refresh interval in server ticks. Use a positive integer for periodic updates (such as `20` for roughly once per second) or `-1` to parse only once when the menu opens. Cannot be `0`. | `-1`                 |

**Tip on text positioning and alignment**: `offset` always positions the **center of the entire text block**, while `alignment` controls how lines of different lengths align relative to each other inside a multi-line paragraph. If your text is only a single line, `left`, `center`, and `right` will appear in the exact same spot. To move a text element left or right on the canvas, adjust `offset.x`.

## Rectangles, borders and lines (`rectangle` / `frame` / `line`)

These three geometric primitives let you build clean UI panels, button backgrounds, and dividers directly in YAML without creating external image assets.

All three share two appearance properties:

* `color`: Quoted 6-digit hex color string formatted as `'#RRGGBB'`. Defaults to `'#FFFFFF'` (white).
* `opacity`: Integer from `0` to `255` controlling opacity. Defaults to `255`.

| Type (`type`) | Dimension properties and requirements                                                                                                                                                     | Common uses                                         |
| ------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------- |
| `rectangle`   | `width` and `height`, both numbers greater than `0`.                                                                                                                                      | Panel backgrounds, card fills, button color blocks. |
| `frame`       | `width` (outer width), `height` (outer height), and `thickness` (border thickness, default `1`). All three must be greater than `0` and satisfy **`2 * thickness < min(width, height)`**. | Window outlines, selection highlight borders.       |
| `line`        | `width` (length) and `thickness` (line weight), both numbers greater than `0`. Combine with `rotation: {z: 90}` for a vertical line.                                                      | Title underlines, section dividers.                 |

```yaml
frontend:
  panel:
    type: rectangle
    width: 140
    height: 80
    color: '#182031'
    opacity: 235
  panel-border:
    type: frame
    width: 140
    height: 80
    thickness: 1
    color: '#617DA0'
    offset: {z: 1}
  divider:
    type: line
    width: 100
    thickness: 1
    color: '#617DA0'
    offset: {y: 10, z: 1}
```

**Note on border thickness**: A `frame` draws an inward hollow border, so the combined thickness of two opposite sides cannot fill or exceed the total width or height. For example, if you make a very narrow frame with `width: 2`, the default `thickness: 1` fails validation because `1 * 2 >= 2` leaves no hollow interior. Lowering `thickness` (for example, to `0.5`) resolves this:

```yaml
frontend:
  narrow-border:
    type: frame
    width: 2
    height: 10
    thickness: 0.5
```

When placing a border (`z: 1`) over a panel (`z: 0`) at different depths and wanting their edges to line up cleanly, enable `depth-mode: layered` under `canvas` (see [Canvas, coordinates and screen position](/arcmenu-wiki/menu-configuration/menus/canvas)).

## Images (`image`)

Display custom PNG graphics in your menu:

```yaml
frontend:
  logo:
    type: image
    source: /ui/logo.png
    width: 96
    height: 32
    offset: {z: 1}
```

| Property  | Valid values and description                                                                                                                        | Default when omitted        |
| --------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------- |
| `source`  | Required PNG file path (aliases `path`, `image`, and `material` are also accepted; use one). Starts with `/` and maps to `plugins/ArcMenu/images/`. | Required                    |
| `width`   | Display width on the canvas (number greater than `0`).                                                                                              | Original image pixel width  |
| `height`  | Display height on the canvas (number greater than `0`).                                                                                             | Original image pixel height |
| `opacity` | Integer from `0` to `255` controlling opacity.                                                                                                      | `255`                       |
| `color`   | Tints the image using `'#RRGGBB'` or `'&#RRGGBB'` (great for coloring white icons).                                                                 | Untinted (original colors)  |
| `update`  | Refresh interval when the path contains placeholders (positive integer ticks, or `-1` for no refresh).                                              | `-1`                        |

Place image files inside `plugins/ArcMenu/images/`, using lowercase letters, digits, underscores (`_`), dots (`.`), or hyphens (`-`) for folder and file names. For example, `images/ui/logo.png` is referenced as `/ui/logo.png`.

Image paths also support dynamic placeholders. Setting `source: /ranks/%player_rank%.png` with `update: 20` automatically swaps the displayed rank icon as the player's rank changes.

## Animated GIFs (`gif`)

Plays animated GIFs directly on the menu canvas:

```yaml
frontend:
  banner:
    type: gif
    source: /ui/banner.gif
    width: 160
    height: 40
    speed: 1
```

`gif` supports all `image` properties (using a `.gif` file placed under `images/`) and adds a `speed` property:

* `speed`: Number greater than `0` controlling how many frames advance per game tick. Defaults to `1`. For details on frame splitting and resource pack generation, see [Animated GIFs](/arcmenu-wiki/feature-configuration/gif).

## Items (`item`)

Renders vanilla items, player heads, custom model data, or items from third-party plugins (CraftEngine, Nexo, ItemsAdder):

```yaml
frontend:
  sword:
    type: item
    material: minecraft:diamond_sword
    context: GUI
    scale: {x: 24, y: 24, z: 24}
    offset: {z: 2}
```

| Property   | Valid values and description                                                                                                                                                                                                                                                                                                         | Default when omitted |
| ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -------------------- |
| `material` | Required string specifying the item material, head tag, or custom item ID.                                                                                                                                                                                                                                                           | Required             |
| `context`  | Item display perspective: `GUI`, `HEAD`, `FIXED`, `GROUND`, `NONE`, `FIRSTPERSON_LEFTHAND`, `FIRSTPERSON_RIGHTHAND`, `THIRDPERSON_LEFTHAND`, or `THIRDPERSON_RIGHTHAND`. In Mouse mode, `GUI` items (including 3D block items) render with inventory-style shading, while other perspectives and flat UI elements remain evenly lit. | `GUI`                |
| `scale`    | Item size controlled by `x`, `y`, and `z` under `scale` (defaults to `1` per axis). Standard menu icons typically use values around `16` to `32` on all three axes.                                                                                                                                                                  | `{x: 1, y: 1, z: 1}` |

### Supported `material` formats

1. **Vanilla items**: Case-insensitive, accepting either underscores or spaces—for example, `minecraft:diamond_sword`, `diamond_sword`, or `'Cyan Stained Glass Pane'`.
2. **Player heads and custom skull textures**:
   * Specific player name or UUID: `'<head:BlackSKY>'`
   * Current viewer's avatar: `'<head:%player_name%>'` (loads immediately for online players; fetches skin data asynchronously for offline players and refreshes the skull automatically once loaded)
   * Texture hash or Base64 skin value: `'<skull:texture-hash>'` or `'<skull:skin-base64>'`
3. **Modifier tags** (append to a vanilla material; multiple tags can be combined):
   * Custom model data: `'coal<model-data:1>'`
   * Leather armor dye (RGB): `'leather chestplate<dye:255,255,0>'`
   * Banner patterns (layered in order): `'white banner<banner:RED MOJANG,WHITE>'`
   * Combined example: `'leather chestplate<model-data:1><dye:255,255,0>'`
4. **Third-party custom item plugins**:
   * **CraftEngine**: Write `namespace:item_id` directly, or prefix explicitly with `craftengine:namespace:item_id`
   * **Nexo**: Write `nexo:item_id`
   * **ItemsAdder**: Write `ia:namespace:item_id` or `itemsadder:namespace:item_id`

## Blocks (`block`)

Renders 3D block models and their block states directly in the menu:

```yaml
frontend:
  grass:
    type: block
    block-data: 'minecraft:grass_block[snowy=false]'
    rotation: {x: -20, y: 35, z: 0}
    scale: {x: 24, y: 24, z: 24}
    offset: {z: 2}
```

* `block-data`: Required string containing a vanilla block ID and optional bracketed block state properties (such as `'minecraft:oak_stairs[facing=north,half=bottom]'`).
* Block size is controlled through the `x`, `y`, and `z` axes of `scale`. Adding a slight tilt on `rotation.x` and `rotation.y` produces a clean isometric 3D block icon.

## Groups (`group`)

A `group` bundles multiple elements together under `children` and supports multi-level nesting. Moving, rotating, scaling, or hiding a parent group transforms all of its child elements together. For full details on grouping and template reuse, continue to [Groups and reusable templates](/arcmenu-wiki/menu-configuration/menus/groups-templates).


# Groups and reusable templates

As a menu grows, keeping the pieces of a product card, a navigation row, or a popup dialog organized becomes much easier when you place them inside a group (`group`). For components that appear across several menus, you can also save a group as a template and insert it whenever you need it.

## Frontend groups (`group` in `frontend`)

A frontend group is an invisible container that holds any number of child elements inside `children`, including nested groups:

```yaml
frontend:
  greeting-group:
    type: group
    offset: {x: 40, y: -20, z: 1}
    children:
      greeting-background:
        type: rectangle
        width: 60
        height: 18
        color: '#365E91'
      greeting-text:
        type: text
        content: '&fSay hello'
        size: 4
        offset: {z: 1}
```

Coordinates, rotation, and scale for elements inside `children` are all calculated **relative to the parent group's center**. In the example above:

* Both `greeting-background` and `greeting-text` have `x` and `y` at `0`, placing them right at the center of `greeting-group`.
* `greeting-group` sets `offset: {x: 40, y: -20, z: 1}`, moving the background and text together to `(40, -20)` on the canvas.
* The text's `offset.z: 1` adds onto the group's `z: 1` for a final depth of `2`, keeping the text cleanly in front of the background.

| Group property | Value and effect on children                                                                                 |
| -------------- | ------------------------------------------------------------------------------------------------------------ |
| `offset`       | Translates all child elements in the group together (`{x, y, z}`).                                           |
| `rotation`     | Rotates all child elements around the group's origin (`{x, y, z}`, in degrees).                              |
| `scale`        | Scales both the size of child elements and their distance from the group center (non-zero `x` and `y` only). |
| `visible`      | Set to `true` or `false` to show or hide the entire group and all of its descendants at once.                |
| `children`     | Required map containing child elements in `element-id: {element-config}` format.                             |

## Backend groups (`group` in `backend`)

If you build a row of buttons with a frontend group and later decide to shift the whole row 30 units to the right, updating every backend click region one by one would be tedious. To avoid that, `backend` also supports `type: group`:

```yaml
backend:
  nav-hit-group:
    type: group
    x: 40
    y: -20
    scale: {x: 1, y: 1}
    children:
      greeting-area:
        x: 0
        y: 0
        width: 60
        height: 18
        actions:
          right: 'tell: &aHello!'
```

Backend groups can be nested and use a simple set of fields:

* `type`: Always set to `group`.
* `x`, `y`: Horizontal and vertical offset of the group relative to the canvas center (or parent backend group). Defaults to `0`.
* `scale`: Scale factors with `x` and `y` (non-zero numbers, defaulting to `1`). Scales both the center offsets and the width/height of child click regions.
* `children`: Contains individual click regions or further nested backend groups.

When loading a menu, the server automatically converts backend group offsets and scales into the final canvas rectangle for each click region. Note that across the entire menu—whether in `frontend` or `backend`, and regardless of nesting depth—**every group, visual element, and click region key (ID) must be unique**.

## Reusable template files

Once you have designed a button or card group that you want to reuse across other menus, you can turn it into a template file under `plugins/ArcMenu/templates/` (subfolders are supported for organization).

Each template file contains a top-level `id` and a **single root group** under `frontend`:

```yaml
schema-version: 1
id: greeting-button
frontend:
  button-group:
    type: group
    children:
      button-background:
        type: rectangle
        width: 60
        height: 18
        color: '#365E91'
      button-text:
        type: text
        content: '&fSay hello'
        size: 4
        offset: {z: 1}
```

| Top-level template field | Requirements                                                                                                                                                                           |
| ------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `schema-version`         | Always set to `1`.                                                                                                                                                                     |
| `id`                     | Unique template ID. Must start with a lowercase letter or digit, contain only lowercase letters, digits, underscores (`_`), and hyphens (`-`), and remain unique across all templates. |
| `frontend`               | Must contain a single root group with `type: group`, which can freely contain any frontend elements and nested subgroups.                                                              |

If you save the example above as `plugins/ArcMenu/templates/greeting-button.yml`, run `/arcmenu reload all` to refresh the template library, or run `/arcmenu templates` to view all loaded templates.

## Saving and inserting templates in the visual editor

Working with templates directly in the [Visual editor](/arcmenu-wiki/feature-configuration/editor) is much quicker than writing template files by hand:

1. **Save as a template**: Select any group in the editor's frontend view, click save as template, and enter a template ID. The server will generate the YAML file automatically.
2. **Insert a template**: While editing another menu, pick a template from the template library to insert it onto the canvas. The inserted content becomes an independent normal group in that menu, and if any element IDs conflict with existing elements in the menu, the editor renames them automatically.
3. **Customize**: Adjust the inserted group's position, text, and colors however you like, then switch to the `backend` tab to draw its click regions.

You can also open the [Project manager](/arcmenu-wiki/feature-configuration/projects) to browse and preview templates by folder, or bundle templates together with menus and Effects into an [ArcPack](/arcmenu-wiki/feature-configuration/arcpack) to share with others.


# Backend regions and click events

`backend` handles pointer and gaze interaction. Once you have arranged your button graphics and labels in `frontend`, placing a rectangular region at the matching coordinates in `backend` makes the button respond to clicks, hover events, and tooltips.

If you need a text input box, you can configure `type: Arcitx` in `backend` (see [Arcitx text input](/arcmenu-wiki/feature-configuration/arcitx)). If you want to move multiple click regions together, use `type: group` (see [Groups and reusable templates](/arcmenu-wiki/menu-configuration/menus/groups-templates)). Standard click regions do not need a `type` field.

## Region properties

```yaml
backend:
  greeting-area:
    x: 0
    y: -20
    width: 60
    height: 18
    priority: 1
    tooltip:
      - '&fWelcome Button'
      - '&7Right-click to say hello'
    update: 20
    actions:
      right: 'tell: &aHello, %player_name%!'
      shift-right: close
```

| Property          | Value and description                                                                                                                                                     | Default when omitted |
| ----------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------- |
| `x`, `y`          | Canvas coordinates of the region center, as finite numbers.                                                                                                               | `0`                  |
| `width`, `height` | Required width and height of the region. Must be numbers greater than `0`.                                                                                                | Required             |
| `priority`        | Integer priority. When two regions overlap on the canvas, the pointer hits the one with the higher `priority`; if tied, the region written earlier in the YAML file wins. | `0`                  |
| `tooltip`         | Tooltip text shown while hovering over the region, as a single string or a list of strings.                                                                               | Empty (no tooltip)   |
| `update`          | Refresh interval in ticks for placeholders inside the tooltip. Use a positive integer for periodic updates, or `-1` for no periodic updates. Cannot be `0`.               | `-1`                 |
| `condition`       | Condition expression string for the region. Determines whether clicks run `actions` or `deny`, and whether hover actions trigger.                                         | Unconditional        |
| `actions`         | Actions triggered on click when the condition passes (or when no condition is set).                                                                                       | Empty                |
| `deny`            | Actions triggered on click when `condition` is set and fails (single action or action list).                                                                              | Empty                |
| `on-hover`        | Actions or conditional action groups triggered when the pointer first enters the region.                                                                                  | Empty                |
| `on-leave`        | Actions or conditional action groups triggered when the pointer leaves the region.                                                                                        | Empty                |

While testing in-game, administrators can run `/arcmenu preview <menu-id> backend` to see the exact outlines of all backend regions on screen and check that they line up with the frontend buttons.

## Click types (`actions`)

`actions` can be written directly as a single action or action list (which triggers on any click), or broken down by click type:

| Click key        | Trigger                                                    |
| ---------------- | ---------------------------------------------------------- |
| `all` (or `any`) | Triggers on any click                                      |
| `left`           | Normal left-click                                          |
| `right`          | Normal right-click                                         |
| `middle`         | Middle-click (triggered via Minecraft's pick-block action) |
| `shift`          | Any click while holding sneak (Shift)                      |
| `shift-left`     | Shift + left-click                                         |
| `shift-right`    | Shift + right-click                                        |
| `shift-middle`   | Shift + middle-click                                       |

You can place shared feedback—like a button click sound—under `all` and assign specific tasks to individual click keys. When a single click matches multiple keys (for example, `Shift+right-click` matches `all`, `shift`, and `shift-right`), they run in the order they are written in the YAML file:

```yaml
backend:
  item-slot:
    x: 0
    y: 0
    width: 36
    height: 36
    actions:
      all: 'sound: UI_BUTTON_CLICK-1-1'
      left: 'open: item-details'
      right: 'cmd: shop buy 1'
      shift-right: 'cmd: shop buy 64'
```

## Hover and leave events (`on-hover` / `on-leave`)

When a player's gaze (Touch mode) or cursor (Mouse / Vision mode) enters or leaves a region, `on-hover` and `on-leave` let you build responsive hover feedback—such as playing a subtle sound or running a button scale-and-highlight animation:

```yaml
backend:
  card-area:
    x: 0
    y: -20
    width: 80
    height: 24
    on-hover:
      - 'sound: UI_BUTTON_CLICK-0.4-1.8'
      - 'animation: card-hover-in'
    on-leave:
      - 'stop-animation: card-hover-in'
      - 'animation: card-hover-out'
    actions:
      right: 'tell: &aSelected this card.'
```

How hover events behave:

* **Single trigger**: `on-hover` runs once when the pointer enters the region rather than repeating every tick while the pointer moves inside it; `on-leave` runs once when the pointer exits.
* **Clean transitions**: When the pointer slides directly from one button to an adjacent button, the old region's `on-leave` runs first, followed by the new region's `on-hover`.
* **Condition-aware**: If the region has a top-level `condition`, `on-hover` and `on-leave` only trigger for players who meet that condition. You can also write [conditional action groups](/arcmenu-wiki/menu-configuration/menus/conditions) directly inside `on-hover`.

To learn how to set up element animations like `card-hover-in`, see [Animation timelines and tracks](/arcmenu-wiki/feature-configuration/animations).

## Region conditions and deny feedback

Combining `condition` and `deny` on a button makes it easy to run normal actions when requirements are met and show a message when they are not:

```yaml
backend:
  vip-area:
    x: 60
    y: 0
    width: 70
    height: 22
    tooltip:
      - '&6VIP Pack'
      - '&7Click to claim your daily reward'
    condition: 'perm myserver.vip'
    deny:
      - 'sound: ENTITY_VILLAGER_NO-1-1'
      - 'tell: &cYou need VIP membership to claim this pack.'
    actions:
      right:
        - 'sound: ENTITY_PLAYER_LEVELUP-1-1'
        - 'console: give %player_name% diamond 5'
```

Even when a player does not meet the `condition`, hovering over the button still displays the `tooltip` so they can see what the button does. For custom tooltip styling, borders, and background images, see [Tooltips](/arcmenu-wiki/feature-configuration/tooltips).


# Actions and navigation

Whenever a player clicks a button, moves their crosshair or cursor into or out of a region, or opens or closes a menu, the menu responds with actions. Everything from playing a click sound or sending a welcome message to running commands, switching pages, or starting animations is handled through actions.

## Basic syntax

Actions that take arguments are written as `action: argument`, while actions without arguments are written by name alone (such as `close` or `back`). To run multiple steps on a single event, write them as a YAML list and the menu will execute them in order from top to bottom:

```yaml
actions:
  right:
    - 'sound: UI_BUTTON_CLICK-1-1'
    - 'tell: &aWelcome, %player_name%!'
    - 'open: details'
```

In addition to `actions`, `deny`, `on-hover`, and `on-leave` inside interactive regions, actions can also be placed under top-level `events.open` and `events.close` in a menu.

If you prefer combining a few short actions on a single line, join them with `_||_` or `&&&`, such as `'sound: UI_BUTTON_CLICK-1-1 &&& open: details'`.

## Messages and sounds

Giving players immediate feedback is the most common use of actions. The actions below affect only the player who triggered the event (unless you attach a player target option):

| Action      | Example                                        | Arguments and valid values                                                                                                                                                                                                                                                                                                                        |
| ----------- | ---------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `tell`      | `tell: &aWelcome!`                             | Sends plain text to chat. Supports `&` color codes, placeholders, and `\n` for multiple lines. (Aliases: `message`, `msg`, `talk`)                                                                                                                                                                                                                |
| `tellraw`   | `tellraw: {"text":"Welcome!","color":"green"}` | Sends rich text to chat. Accepts standard Minecraft JSON text components or the `<text@hover=tip@command=/spawn>` shorthand syntax (supports `hover`, `suggest`, `command`/`execute`, and `url`/`open_url`). (Alias: `json`)                                                                                                                      |
| `chat`      | `chat: Hello everyone!`                        | Makes the current player send a chat message as themselves. (Aliases: `send`, `say`)                                                                                                                                                                                                                                                              |
| `actionbar` | `actionbar: &aReady`                           | Displays a single line of text right above the hotbar. (Alias: `action`)                                                                                                                                                                                                                                                                          |
| `sound`     | `sound: UI_BUTTON_CLICK-1-1`                   | Plays a sound in `sound-name` or `sound-name-volume-pitch` format. The sound can be a Bukkit enum name (`UI_BUTTON_CLICK`) or a vanilla namespaced key (`minecraft:ui.button.click`). Volume takes a non-negative decimal (default `1`), and pitch takes a decimal from `0` to `2` (default `1`). Separate multiple sounds with semicolons (`;`). |
| `title`     | See below                                      | Displays a title and subtitle in the center of the screen.                                                                                                                                                                                                                                                                                        |
| `bossbar`   | See below                                      | Displays a temporary BossBar banner at the top of the screen.                                                                                                                                                                                                                                                                                     |

### Titles and boss bars

`title` and `bossbar` take space-separated arguments. When the title or boss bar text itself contains spaces, wrap that text in backticks (`` ` ``):

```yaml
events:
  open:
    - 'title: `&aServer Menu` `&7Choose a feature` 10 40 10'
    - 'bossbar: `&aWelcome to the server` green solid 60'
```

* **`title` argument order**: `title subtitle [fade-in] [stay] [fade-out]`. The three timing values are optional integers in game ticks (at normal server speed, `20` ticks is roughly 1 second). When omitted, they default to `15`, `20`, and `15`. To show only a subtitle, pass an empty pair of backticks (\`\`) for the main title.
* **`bossbar` argument order**: `text [color] [style] [duration]`.
  * **Color** (optional, defaults to `white`): `pink`, `blue`, `red`, `green`, `yellow`, `purple`, or `white`.
  * **Style** (optional, defaults to `solid`): `solid` for a single continuous bar, or segmented styles `segmented_6`, `segmented_10`, `segmented_12`, `segmented_20` (or shorthand `6`, `10`, `12`, `20`).
  * **Duration** (optional, defaults to `15`): A positive integer in game ticks before the bar hides automatically.

## Running commands

Menus can run server commands as the player or through the console. A leading `/` is optional. To run multiple commands in sequence, either list them on separate lines or separate them with semicolons (`;`) on the same line.

| Action    | Sender             | Example and description                                                                                                                                                                                                                                               |
| --------- | ------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `player`  | Current player     | <p><code>player: spawn</code><br>Runs the command using the player's own permissions. (Aliases: <code>command</code>, <code>cmd</code>, <code>execute</code>)</p>                                                                                                     |
| `console` | Server console     | <p><code>console: minecraft:give %player\_name% minecraft:diamond 1</code><br>Executed by the server console regardless of the player's permissions. Use <code>%player\_name%</code> when the command needs the target player's name.</p>                             |
| `op`      | Temporary operator | <p><code>op: some-player-command</code><br>Temporarily grants the player OP status for the instant the command runs and restores their status immediately afterward. Useful for commands that must originate from a player without granting permanent permission.</p> |

## Menu navigation and flow control

When your interface spans multiple pages (such as a main menu, shop category pages, and confirmation dialogs), each page is a separate menu file linked together with navigation actions. Switching pages within the same session keeps the screen anchor from when the menu was first opened, so the interface stays steady even if the player turns their head slightly.

| Action     | Example                   | Purpose and valid values                                                                                                                                                                      |
| ---------- | ------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `open`     | `open: welcome`           | Opens the menu with the specified ID. Target IDs use lowercase letters, digits, underscores, or hyphens, and can be built dynamically with placeholders. (Aliases: `gui`, `menu`, `open-gui`) |
| `open-app` | `open-app: myplugin:shop` | Opens an application view registered by a third-party plugin through the developer API. Application IDs always use `namespace:path` format.                                                   |
| `back`     | `back`                    | Takes no arguments. Returns to the previous page in the current session, or closes the menu if already on the first page.                                                                     |
| `close`    | `close`                   | Takes no arguments. Closes the current menu and clears navigation history. (Aliases: `shut`, `force-close`, `silent-close`)                                                                   |
| `connect`  | `connect: lobby`          | Transfers the player to another backend server under your proxy (BungeeCord / Velocity). Pass the server name configured on the proxy. (Aliases: `bungee`, `server`)                          |
| `return`   | `return`                  | Takes no arguments. Stops the current action list immediately and skips any remaining actions below it. (Alias: `break`)                                                                      |

### Passing page arguments

Both `open` and `open-app` let you pass arguments after the target ID, separated by spaces. Wrap any argument that contains spaces in backticks (`` ` ``):

```yaml
actions:
  right: 'open: world-detail survival `Survival World`'
```

Once `world-detail` opens, the target menu can read `survival` with `{0}` and `Survival World` with `{1}`. For more on page arguments, see [Placeholders and text formatting](/arcmenu-wiki/text-formatting/text-placeholders) and [Advanced actions](/arcmenu-wiki/menu-configuration/menus/advanced-actions).

## Dynamic refresh and animations

If a click action updates a player's data or balance and you want text, images (including nodes set to `update: -1` without automatic polling), or tooltips on the current screen to update right away, use the `refresh` action (which shares the same underlying refresh pipeline as the developer API's `refresh`). You can also start and stop timeline animations on demand:

* **`refresh`**: With no arguments (or `refresh: *`), refreshes all text nodes, image nodes (including image source and content), and any active hover tooltip in the current menu.
* **`refresh: target-id`**: Refreshes one or more specific targets (separate multiple IDs with semicolons `;`). The target ID can be a frontend `text` or `image` node ID (immediately recalculating and redrawing it even if set to `update: -1`) or a backend region ID (immediately refreshing its tooltip if the player is currently pointing at that region).
* **`animation: animation-id`**: Plays a timeline animation bound to the current menu (Aliases: `animate`, `play-animation`).
* **`stop-animation: animation-id`**: Stops the specified animation and restores elements to their initial state (Alias: `cancel-animation`). Placing play and stop actions in a region's `on-hover` and `on-leave` gives you smooth hover animations.

## Delays, probability, inline conditions, and target players

You can append curly-brace options `{...}` to the end of any single action string to control its timing, probability, condition, or target players:

| Option                 | Example                                     | Value and effect                                                                                                                                                   |
| ---------------------- | ------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `{delay=ticks}`        | `tell: &aHello {delay=20}`                  | Delays this single action by the given number of game ticks, as a non-negative integer (Alias: `wait`).                                                            |
| `{chance=probability}` | `give-money: 10 {chance=0.5}`               | Runs this action with the given probability, as a decimal between `0` and `1` (`0.5` is a 50% chance; aliases: `rate`, `rand`, `random`).                          |
| `{condition=expr}`     | `tell: &aHello VIP {condition=perm my.vip}` | Runs this action only when the condition expression passes (Alias: `requirement`). See [Conditions](/arcmenu-wiki/menu-configuration/menus/conditions) for syntax. |
| `{players}`            | `tell: &eServer broadcast {players}`        | Runs this action for all currently online players.                                                                                                                 |
| `{players=expr}`       | `tell: &eNotice {players=perm my.staff}`    | Filters online players by the condition and runs this action for everyone who matches.                                                                             |

### Standalone `delay` vs. inline `{delay=...}`

In addition to attaching `{delay=20}` to the end of a single action, you can also put `delay: ticks` on its own line in an action list (placeholders are supported):

```yaml
events:
  open:
    - 'tell: &aMenu opened.'
    - 'delay: 20'
    - 'tell: &7Message shown one second later.'
    - 'delay: 20'
    - 'tell: &7Message shown two seconds later.'
```

* **Standalone `delay: 20`**: Pushes back **all** actions listed after it by 20 ticks, and multiple standalone `delay` lines accumulate.
* **Inline `{delay=20}`**: Delays only that specific line without affecting when the next line runs.

When a player closes the menu or navigates to another menu page, any pending delayed actions from the previous page are canceled automatically so they do not fire after the player has left.

### Execution order after navigation actions

In an action list, `open`, `back`, and `close` update the current session state, while any immediate actions listed right after them in the same list still finish running (for example, writing `close` followed by `tell: &7Goodbye` still sends the message). If you want to stop the action list completely at a specific branch, add a `return` line.

Once you are comfortable with these core actions, continue to [Advanced actions](/arcmenu-wiki/menu-configuration/menus/advanced-actions) to work with custom variables, balances, inventory items, and chat input capture.


# Advanced actions

Beyond sending messages, running commands, and switching pages, menus often need to remember which option a player selected, charge currency and deliver items, or ask a player to type something in chat. This page covers the actions for storing data, handling balances and points, manipulating inventory items, and capturing chat input. You place them inside button click lists or menu events using the same basic syntax described in [Actions and navigation](/arcmenu-wiki/menu-configuration/menus/actions).

## Saving and removing data

ArcMenu provides three built-in data scopes so you can store and read state in menus without installing a separate variable plugin:

| Data type               | Write action      | Remove action        | Read placeholder    | Scope and lifetime                                                                                                                     |
| ----------------------- | ----------------- | -------------------- | ------------------- | -------------------------------------------------------------------------------------------------------------------------------------- |
| Temporary player data   | `set-meta`        | `remove-meta`        | `{meta:name}`       | Kept in memory. Ideal for temporary state such as current purchase quantity or selected category tab (aliases: `set-temp`, `set-var`). |
| Persistent player data  | `set-data`        | `remove-data`        | `{data:name}`       | Bound to the player and saved persistently across normal server restarts. Ideal for personal preferences or reward claim records.      |
| Server-wide shared data | `set-global-data` | `remove-global-data` | `{globaldata:name}` | Shared across all players and saved persistently. Ideal for server event toggles or public counters (alias: `set-g-data`).             |

### Writing data

Write actions use the format `action: key value`, with a space separating the key and value. Values are stored as text and can contain spaces. To write multiple key-value pairs in a single action, separate them with semicolons (`;`). Writing to an existing key overwrites the previous value, and reading a key that has never been set returns `null`.

```yaml
actions:
  right:
    - 'set-data: preferred-world survival'
    - 'tell: &aSaved your preferred world: {data:preferred-world}'
    - refresh
  shift-right:
    - 'remove-data: preferred-world'
```

To save the result of a calculation into a variable, wrap the formula in `{math: ...}`:

```yaml
- 'set-meta: total {math: {meta:input-x} * 24}'
```

Writing `set-meta: total 3 * 24` directly stores the literal string `3 * 24` instead of calculating `72`.

### Removing data

Remove actions accept a **full-match regular expression**. Passing a fixed name such as `remove-data: preferred-world` deletes that specific entry, while passing a regex pattern such as `remove-data: preference-.*` clears all saved data for the current player whose keys start with `preference-`. You can also separate multiple patterns with semicolons (`;`).

## Modifying current menu arguments

In addition to passing arguments when opening a menu with `open: menu-id arg1 arg2`, you can replace or clear the argument list directly within the current page:

```yaml
actions:
  right:
    - 'set-args: survival `Survival World`'
    - 'tell: &aWorld ID: {0}, Name: {1}'
  shift-right: clear-args
```

* **`set-args: argument-list`** (aliases: `set-arg`, `set-arguments`): Replaces the current page's arguments with a new list. Separate multiple arguments with spaces, and wrap any single argument that contains spaces in backticks (`` ` ``). Once set, read them with numbered placeholders such as `{0}` and `{1}`.
* **`clear-args`** (aliases: `clear-arg`, `del-args`): Takes no parameters and clears all menu arguments on the current page.

## Balances and points

When Vault (with any economy plugin) or PlayerPoints is installed on the server, you can add, deduct, or set a player's currency balance or points directly with built-in actions:

| Operation    | Vault balance action                                     | PlayerPoints action                                         | Parameter requirements                                                                                          |
| ------------ | -------------------------------------------------------- | ----------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- |
| Add          | `give-money` (aliases: `add-money`, `deposit-money`)     | `give-points` (aliases: `add-points`, `deposit-points`)     | Number or formula greater than `0`. Balances support decimals; points require integers.                         |
| Deduct       | `take-money` (aliases: `remove-money`, `withdraw-money`) | `take-points` (aliases: `remove-points`, `withdraw-points`) | Number or formula greater than `0`. Fails and halts subsequent actions if the player's balance is insufficient. |
| Set to value | `set-money` (alias: `modify-money`)                      | `set-points` (alias: `modify-points`)                       | Number or formula greater than `0`.                                                                             |

All six actions accept [math expressions](/arcmenu-wiki/menu-configuration/menus/math-expressions) directly in their parameter without wrapping them in `{math: ...}`:

```yaml
actions:
  right:
    - 'take-money: round({meta:input-x} * 24 * 0.95, 2)'
    - 'give-item: material:DIAMOND,amount:{meta:input-x}'
```

Points require an integer result. If your formula includes decimal discounts, wrap it in `floor(...)`, `ceil(...)`, or `round(...)` to specify how it should be rounded.

If a player does not have enough funds, the economy plugin is unavailable, or the math expression is invalid, the action fails and automatically stops the current action list (acting like `return`). Any `give-item` delivery action placed after the deduction will not run. Actions that already ran **before** the deduction are not rolled back, so place `take-money` or `take-points` before delivery actions in shop purchase flows, or check the player's balance beforehand with [Conditions](/arcmenu-wiki/menu-configuration/menus/conditions).

## Inventory item operations

### Giving and taking items

`give-item` (alias: `add-item`) and `take-item` (alias: `remove-item`) add or remove vanilla and custom-model items from a player's inventory:

```yaml
actions:
  right:
    - 'give-item: material:DIAMOND,amount:1,name:&bMenu Reward'
  shift-right:
    - 'take-item: material:DIAMOND,amount:1,name:&bMenu Reward'
```

Separate properties for a single item with commas (`,`), and join each property name and value with a colon (`:`) or equals sign (`=`). Underscores (`_`) and hyphens (`-`) in property names are interchangeable. To operate on multiple items in one action, separate each item specification with a semicolon (`;`). In `take-item`, you can prefix any property name except `amount` with an exclamation mark (`!`) to invert the match (for example, `!material:DIRT` matches items whose material is not dirt). Available properties are:

| Property key and aliases                                            | Required / Optional | Values and matching behavior                                                                                                                                                                                                    |
| ------------------------------------------------------------------- | ------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `material` (aliases: `materials`, `mat`, `mats`)                    | Optional            | Vanilla item material name (such as `DIAMOND` or `PLAYER_HEAD`). Defaults to `BEDROCK` in `give-item` if omitted; in `take-item`, omitting it leaves the material unrestricted and matches by the other properties you specify. |
| `amount` (aliases: `amounts`, `amt`, `amts`)                        | Optional            | Quantity as an integer from `1` to `99`. Defaults to `1` if omitted.                                                                                                                                                            |
| `name` (alias: `names`)                                             | Optional            | Item display name, supporting `&` color codes. Sets the item name when giving; when taking, matches any inventory item whose name **contains** this text (case-insensitive after translating `&` color codes).                  |
| `lore` (alias: `lores`)                                             | Optional            | Item lore text. Use `\n` to split into multiple lines when giving; when taking, matches if **any line** of the item's lore contains the specified substring (case-insensitive after translating `&` color codes).               |
| `model-data` (aliases: `model-datas`, `modeldata`, `modeldatas`)    | Optional            | CustomModelData integer value. When taking, requires the item to have CustomModelData with the exact same value.                                                                                                                |
| `data` (alias: `datas`)                                             | Optional            | Integer item damage (durability consumed). Values below `0` are treated as `0` when giving; when taking, requires the item's damage value to match.                                                                             |
| `head` (aliases: `heads`, `skull`, `skulls`, `texture`, `textures`) | Optional            | For player heads (`PLAYER_HEAD`), sets the skull owner when giving or matches the skull owner's player name (case-insensitive) when taking.                                                                                     |

When giving items, any items that do not fit in a full inventory drop at the player's feet. When taking items, ArcMenu scans the player's storage slots in order (excluding armor slots and the offhand) and deducts from matching stacks. If the total number of matching items in the inventory is less than the requested amount, items already deducted are not rolled back; the player receives an insufficient-items message and the remaining actions in the list continue to run. If subsequent delivery steps should only run when the player has enough items, check their inventory first using [Conditions](/arcmenu-wiki/menu-configuration/menus/conditions).

### Repairing, enchanting, and refreshing the inventory

* **`repair-item: slot`** (alias: `repair-items`): Fully restores the durability of damageable items in the specified slot. Separate multiple target slots with semicolons (`;`), such as `repair-item: hand;armor`.
* **`enchant-item: slot enchantment-id level`** (alias: `enchant-items`): Adds an enchantment to the item in the specified slot. The slot, enchantment ID, and level are **all required** and can be separated by spaces or commas (`,`). Separate multiple enchantment operations in one action with semicolons (`;`). Enchantment IDs accept vanilla names (such as `minecraft:unbreaking` or `unbreaking`). The level must be a positive integer greater than or equal to `1`, or a positive integer range such as `1-3` to pick a random level.
* **`reload-inventory`** (alias: `reload-inv`): Takes no parameters and actively synchronizes the player's inventory display to the client.

The **slot** parameter for `repair-item` and `enchant-item` accepts:

* Hands and armor: `hand` / `mainhand` (main hand), `offhand` (offhand), `helmet` (helmet), `chestplate` (chestplate), `leggings` (leggings), `boots` (boots), and `armor` (all four armor pieces).
* Bulk scopes: `all` / `inv` (all non-empty items in the player's inventory).
* Specific slot index: A numeric slot index (for example, `0` for the first hotbar slot).

## Chat input capture (`catcher`)

Alongside the in-menu [Arcitx text input component](/arcmenu-wiki/feature-configuration/arcitx), you can use the structured `catcher` action to temporarily hide the menu and guide the player through entering one or more lines of text in chat (such as a custom nickname, title, or transfer note).

Write `catcher` as a YAML map containing one or more input stages, which run in the order they are written:

```yaml
actions:
  right:
    - catcher:
        nickname:
          type: CHAT
          start:
            - 'tell: &eEnter your new nickname in chat, or type cancel to stop.'
          cancel:
            - 'tell: &7Nickname change cancelled.'
          end:
            - 'set-data: nickname {meta:input-nickname}'
            - 'tell: &aNickname saved as: {data:nickname}'
```

Each stage (`nickname` is the custom stage name in the example above) supports these fields:

* **`type`**: Set to `CHAT` (also defaults to `CHAT` if omitted).
* **`start`** (or `before`): Action list executed when entering this input stage, typically used to prompt the player.
* **`cancel`**: Action list executed if the player cancels input. Players can type `cancel`, `quit`, `end`, or `q` (case-insensitive) in chat to cancel.
* **`end`** (or `after`): Action list executed after the player sends normal chat text (supports conditional action branches).

### Reading captured input and asking to re-enter

Chat messages sent while `catcher` is active are intercepted by the menu and are not broadcast to public chat. Captured text is automatically stored in the player's temporary data (`meta`):

* **`{meta:input}`**: Reads the text entered in the stage that just finished.
* **`{meta:input-stage-name}`**: Reads the text entered in a specific stage (for example, `{meta:input-nickname}`). When you define multiple sequential stages under `catcher` (such as entering a recipient first and an amount second), you can read the values from all earlier stages together inside the final stage's `end` list.
* **`retype`** (aliases: `repeat`, `re-enter`): Used inside the `end` action list. If a condition in `end` finds that the player's input is invalid, running `retype` keeps the player in the current stage to try again and re-runs the `start` prompt.


# Conditions

A single button often needs to respond differently depending on whether a player is a regular member or a VIP, or whether they can afford an item. By configuring `condition`, you can make interactive regions, specific click types, menu events, or individual actions decide what to run dynamically based on the player's permissions, stored variables, or PlaceholderAPI values.

## Where to place conditions

From broadest to narrowest scope, there are four places where you can attach conditions:

### 1. Whole interactive region

Placing `condition` directly under a backend interactive region applies it as a prerequisite for all click types in that region, as well as cursor `on-hover` and `on-leave` events:

```yaml
backend:
  vip-area:
    x: 0
    y: 0
    width: 80
    height: 24
    condition: 'perm myserver.menu.vip'
    deny:
      - 'tell: &eThis feature requires VIP membership.'
    actions:
      right: 'open: vip-services'
```

When a player has the `myserver.menu.vip` permission, right-clicking opens `vip-services` and hover or leave actions run normally. Without that permission, clicking the region runs the actions under `deny` instead, while `on-hover` and `on-leave` are skipped quietly so moving the cursor across the button does not spam the `deny` message.

### 2. A specific click type

To restrict right-clicking while leaving left-click or Shift+right-click unconditional, place `condition`, `actions`, and `deny` under that specific click key:

```yaml
actions:
  right:
    condition: 'perm myserver.menu.member'
    actions:
      - 'tell: &aWelcome to member services.'
    deny:
      - 'tell: &eBecome a member to use this feature.'
  shift-right: close
```

### 3. Priority branch lists

When a button needs to route players through several different tiers or states, write the click actions (or `events.open`, `events.close`, `on-hover`, `on-leave`) as a list of conditional branches:

```yaml
actions:
  right:
    - priority: 0
      condition: 'perm myserver.menu.vip'
      actions:
        - 'tell: &aWelcome, VIP!'
        - return
    - priority: 10
      actions:
        - 'tell: &aWelcome to the server!'
```

* **`priority`**: Integer value where **smaller** numbers run first. If omitted or tied, branches are evaluated from top to bottom in written order. (Note: An interactive region's own `priority` gives higher numbers precedence when regions overlap, whereas action branch `priority` runs from lowest to highest.)
* **Branching with `return`**: ArcMenu evaluates each branch in order. Without `return`, a VIP player who matches the first branch would also run the unconditional fallback branch below it. Adding `return` at the end of the first branch stops execution as soon as that branch finishes.

(In conditional branch maps, `condition` also accepts the aliases `require` and `requirement`, `actions` accepts `list`, `click`, and `execute`, and `deny` accepts `deny-list` and `deny-actions`.)

### 4. Inline condition on a single action

If only one line in an action list needs a condition, append `{condition=expression}` to the end of that action string:

```yaml
actions:
  right:
    - 'tell: &aHere is an extra greeting for members. {condition=perm myserver.vip}'
    - 'sound: UI_BUTTON_CLICK-1-1'
```

To restrict access to an **entire menu**, set `permission: permission-node` at the top level of the menu file, optionally paired with `permission-denied-menu: menu-id` to redirect players without permission to an introduction page; see [Menu document structure](/arcmenu-wiki/menu-configuration/menus).

## Writing condition expressions

A `condition` value is a single- or double-quoted string. Before evaluating the expression, ArcMenu replaces any placeholders inside it (such as `%player_name%`, `{data:key}`, or `{meta:key}`) with the current player's actual values.

| Check type               | Example expression                                                                | Meaning and valid inputs                                                                                                                                                                  |
| ------------------------ | --------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Permission check         | <p><code>perm myserver.vip</code><br><code>permission myserver.vip</code></p>     | Checks whether the player has the specified permission node (placeholders are supported inside the node name).                                                                            |
| Negation                 | <p><code>not (perm myserver.vip)</code><br><code>!perm myserver.vip</code></p>    | Inverts the following condition, passing when the inner condition is false.                                                                                                               |
| Equality and inequality  | <p><code>%player\_name% == Alex</code><br><code>%player\_name% != Alex</code></p> | Checks whether the two sides are equal or unequal (`==` can also be written as `is`, and `!=` as `is not`).                                                                               |
| Substring match          | `%player_name% contains Alex`                                                     | Treats both sides as text and checks whether the left side contains the right side (case-insensitive).                                                                                    |
| Numeric comparison       | `%player_y% >= 64`                                                                | Supports `>`, `>=`, `<`, and `<=`, comparing numeric values or calculated math expressions.                                                                                               |
| Variable existence check | `{data:preferred-world} != null`                                                  | Unset `{meta:...}`, `{data:...}`, and `{globaldata:...}` placeholders expand to `null`; compare against `null` to check whether a value has been saved.                                   |
| Boolean and truthy check | `'true'`, `'false'`, `'%vault_eco_balance%'`                                      | Writing `true` or `false` directly always passes or fails. Writing a standalone placeholder passes when it expands to `true`, `yes`, `on` (case-insensitive), or any **non-zero number**. |

(If you are migrating older configurations, comparisons prefixed with `check`, such as `check %player_level% >= 10`, remain directly compatible.)

### Text and numeric comparison rules

* **Text containing spaces**: If either side of a comparison contains spaces, wrap that operand in backticks (`` ` ``), single quotes, or double quotes, such as `` {data:title} == `Survival Pioneer` ``.
* **Case sensitivity and type detection**: With `==` and `!=`, if both sides can be parsed as numbers or math expressions, ArcMenu compares their calculated numeric values (for example, `1.0 == 1` is true). Otherwise, it compares them as case-insensitive plain text. `contains` always compares operands as case-insensitive text.
* **Ordering comparisons**: With `>`, `>=`, `<`, and `<=`, whenever one side is a number or math expression, the other side must also evaluate to a valid number. If the other side is an unset `null` value or non-numeric text, the condition fails.

## Using math expressions in conditions

You can write arithmetic formulas and functions directly on either side of a comparison operator—for example, checking whether a player's balance covers `unit price × quantity` before a shop purchase:

```yaml
condition: '%vault_eco_balance% >= {meta:input-x} * 24'
```

Note: ArcMenu does not have a built-in balance variable named `money`. Use the PlaceholderAPI placeholder provided by your economy plugin (such as `%vault_eco_balance%`), or a fixed number like `1000 >= {meta:input-x} * 24` when testing.

Expressions support `+`, `-`, `*`, `/`, `%` (remainder), `^` (exponentiation), parentheses `()`, and the functions `abs`, `min`, `max`, `floor`, `ceil`, and `round`. If you want to compare a string like `3*4` literally without multiplying it, wrap the operand in backticks, such as ``condition: '`3*4` == `3*4`'``. For full syntax details, see [Math expressions](/arcmenu-wiki/menu-configuration/menus/math-expressions).

If a math expression in a condition divides by zero, contains a syntax error, or tries to calculate with an unset `null` value, ArcMenu logs the exact location and reason to the console and evaluates the condition as **false** (even if wrapped in `not (...)`, a broken expression never becomes true).

## Combining multiple conditions

To require multiple conditions at once or any one of several conditions, combine them with `&&` (all must pass), `||` (any may pass), and parentheses `()`:

```yaml
condition: 'perm myserver.member && (perm myserver.vip || %player_y% >= 64)'
```

At the same nesting level, `||` splits the expression into OR branches first, and `&&` requires every check within a branch to pass. Use parentheses to group checks in any order you need.

You can also use the aggregate syntax `all [condition1; condition2]` (all must pass) and `any [condition1; condition2]` (any may pass), separating items inside the square brackets with semicolons (`;`) or commas (`,`):

```yaml
condition: 'all [perm myserver.member; any [perm myserver.vip; %player_y% >= 64]]'
```


# Math expressions

When building dynamic shops, upgrade trees, or stat panels, you often need to multiply a player's chosen quantity by a unit price, apply discounts and rounding, and display the result or check whether they can afford it. ArcMenu includes a unified math expression engine that works the same way across **condition comparisons**, **balance and points actions**, and **`{math: ...}` calculation placeholders**.

Evaluation follows a simple order: ArcMenu first replaces any ordinary placeholders inside the expression (such as `{meta:input-x}` or `%player_level%`) with the current player's values, and then calculates the math formula.

## Typical scenario: quantity × unit price

Suppose a player sets a purchase quantity `{meta:input-x}` using an [Arcitx text input](/arcmenu-wiki/feature-configuration/arcitx) or plus/minus buttons, and each item costs `24`. You can first verify that the entered quantity is valid and then check whether their budget covers the total:

```yaml
# Verify that the quantity is an integer between 1 and 64
condition: '{meta:input-x} >= 1 && {meta:input-x} <= 64 && {meta:input-x} == floor({meta:input-x})'
```

Next, check whether the player's balance covers the total cost (the example below uses a fixed budget of `1000`; on a live server, replace `1000` with your economy plugin's placeholder such as `%vault_eco_balance%`, since there is no built-in variable named `money`):

```yaml
condition: '1000 >= {meta:input-x} * 24'
```

Tip: If the purchase quantity comes from an Arcitx input box, the player must click the `submit` region bound to that input box before the value is written to `{meta:input-id}`.

## Operators and number formats

Expressions accept integers, decimals (such as `24`, `1.5`, `.5`, and `5.`), and scientific notation (such as `1e3` and `1e-3`). Write all multiplications explicitly with `*` (for example, `2 * (3 + 4)` rather than `2(3 + 4)`).

| Operator          | Meaning and precedence rules                                                                               | Examples and results                                 |
| ----------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------- |
| `( )`             | Parentheses. Highest precedence; overrides normal evaluation order.                                        | `(2 + 3) * 4` → `20`                                 |
| `^`               | Exponentiation (power). Higher precedence than unary signs, and chained powers evaluate **right to left**. | `2 ^ 3 ^ 2` ($2^{(3^2)}$) → `512`                    |
| `+`, `-` (unary)  | Positive and negative signs. Lower precedence than exponentiation.                                         | `-2 ^ 2` → `-4`; `(-2) ^ 2` → `4`; `2 ^ -2` → `0.25` |
| `*`, `/`, `%`     | Multiplication, division, and remainder. The sign of `%` matches the dividend.                             | `3 * 24` → `72`; `7 % 3` → `1`; `-7 % 3` → `-1`      |
| `+`, `-` (binary) | Addition and subtraction.                                                                                  | `1 - -2` → `3`                                       |

## Built-in math functions

Function names are case-insensitive, and multiple arguments are separated by commas (`,`). You can nest functions and operators freely—for example, `max(1, min(64, floor({meta:input-x})))` clamps any number to an integer between 1 and 64.

| Function syntax    | Arguments           | Description                                                                                                                       | Examples and results                     |
| ------------------ | ------------------- | --------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------- |
| `abs(x)`           | 1 argument          | Returns the absolute value of `x`.                                                                                                | `abs(-3.5)` → `3.5`                      |
| `min(x, ...)`      | 1 or more arguments | Returns the smallest of the given arguments.                                                                                      | `min(5, 2, 8)` → `2`                     |
| `max(x, ...)`      | 1 or more arguments | Returns the largest of the given arguments.                                                                                       | `max(1, 3)` → `3`                        |
| `floor(x)`         | 1 argument          | Rounds down toward negative infinity to the largest integer not greater than `x`.                                                 | `floor(2.9)` → `2`; `floor(-1.1)` → `-2` |
| `ceil(x)`          | 1 argument          | Rounds up toward positive infinity to the smallest integer not less than `x`.                                                     | `ceil(2.1)` → `3`; `ceil(-1.1)` → `-1`   |
| `round(x)`         | 1 argument          | Rounds to the nearest integer. Halfway values (`.5`) round **away from zero** (`HALF_UP`) for both positive and negative numbers. | `round(2.5)` → `3`; `round(-2.5)` → `-3` |
| `round(x, places)` | 2 arguments         | Rounds `x` to `places` decimal places. `places` must be an integer from `0` to `15`.                                              | `round(2.675, 2)` → `2.68`               |

## Where to use math expressions

### 1. Directly in conditions

On either side of a comparison operator (`==`, `!=`, `>`, `>=`, `<`, `<=`, `is`, `is not`) in [Conditions](/arcmenu-wiki/menu-configuration/menus/conditions), write the math expression directly without wrapping it in `{math: ...}`:

```yaml
condition: '1000 >= round({meta:input-x} * 24 * 0.95, 2)'
```

Inline `{condition=...}` options at the end of individual actions support the exact same syntax:

```yaml
actions:
  right:
    - 'tell: &aQuantity is within budget. {condition=1000 >= {meta:input-x} * 24}'
```

Keep the difference between outer YAML quotes and inner operand quotes in mind: outer single quotes `'...'` only mark the YAML string boundary and do not stop evaluation. To compare a literal string like `3*4` as plain text rather than calculating it, wrap each operand in backticks, such as ``condition: '`3*4` == `3*4`'``.

### 2. Directly in balance and points actions

The numeric parameter for `give-money`, `take-money`, `set-money`, `give-points`, `take-points`, and `set-points` is evaluated directly by the math engine:

```yaml
actions:
  right:
    - 'take-money: round({meta:input-x} * 24 * 0.95, 2)'
```

All six actions require the final calculated value to be **greater than `0`**. Vault balances support decimals (using `round(expression, 2)` is recommended to keep two decimal places), whereas PlayerPoints requires an integer result, so wrap discounted formulas in `floor`, `ceil`, or single-argument `round`.

### 3. With `{math: ...}` in text, commands, and variables

In frontend text (`content`), tooltips (`tooltip`), command arguments, and variable actions like `set-meta` or `set-data`, values are treated as plain text by default. Write `{math: expression}` explicitly in these places whenever you want ArcMenu to calculate the expression and substitute the numeric result.

Make sure any variable used in the formula already holds a number before the menu evaluates it (unset variables expand to `null` and cannot be multiplied). For example, set an initial quantity with `set-meta: input-x 1` on the button that opens the shop menu:

```yaml
frontend:
  total:
    type: text
    content: '&fTotal price: {math: {meta:input-x} * 24}'
    size: 4
    update: 20

backend:
  calculate:
    width: 60
    height: 18
    actions:
      right:
        - 'set-meta: total {math: {meta:input-x} * 24}'
        - 'tell: &aTotal recorded as: {meta:total}'
```

Compare the two forms:

* `set-meta: total 3 * 24`: Stores the literal text `3 * 24`.
* `set-meta: total {math: 3 * 24}`: Stores the calculated result `72`.

`{math: ...}` placeholders can nest up to 64 levels deep and are evaluated from the innermost expression outward—for example, `{math: {math: 2 + 3} + 9}` evaluates the inner `5` first and then outputs `14`. When variables change while a menu is open, configure an `update` interval on the frontend text element or run a `refresh` action to update the on-screen value; see [Placeholders and text formatting](/arcmenu-wiki/text-formatting/text-placeholders).

## Precision and error handling

* **Display formatting**: Calculations use double-precision floating-point numbers (`Double`) internally. When `{math: ...}` formats a result as text, it rounds to 15 significant digits, strips trailing zeros, and always outputs standard decimal notation rather than scientific notation. As a result, `{math: 0.1 + 0.2}` cleanly outputs `0.3`. When comparing two complex decimal formulas with `==` in a condition, wrap them in `round(expression, places)` to avoid tiny floating-point rounding differences.
* **Safety limits and error reporting**: Division by zero, remainder by zero, non-finite results (`Infinity` or `NaN`), unknown function names, wrong argument counts, mismatched parentheses, or expression/placeholder nesting deeper than 64 levels are rejected as invalid:
  * **In conditions**: The condition evaluates to `false` and logs the character position and reason to the console. Even if wrapped in `not`, an invalid expression never becomes true.
  * **In actions**: Execution of the current action chain stops immediately (earlier actions that already ran are not rolled back), and the error is logged to the console.
  * **In frontend text or editor previews**: The specific error location in the formula is reported directly so you can quickly find and fix the configuration.


# Touch, Mouse and Vision input

ArcMenu provides three interaction modes: Touch (`touch`), Mouse (`mouse`), and Vision (`vision`). All three share the same menu configurations and backend click regions, so you never have to write separate menus for different input styles.

| Mode            | Experience                                                                        | Client setup                                                                             |
| --------------- | --------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- |
| Touch `touch`   | Turn your camera, aim the crosshair at a button, and click.                       | Works on a vanilla client.                                                               |
| Mouse `mouse`   | Camera stays fixed while you move a menu cursor to point and click.               | Load a companion resource pack containing ArcMenu assets; no mod required.               |
| Vision `vision` | Fixed menu view with a locally driven client cursor and full shader pack support. | Install Fabric, Fabric API, and the matching ArcMenu Editor build for your game version. |

Each mode is tailored to a different setup:

* **Touch mode** uses standard in-world display rendering. It follows the player's own field of view (FOV), preserves normal world lighting and block occlusion, and keeps gameplay visuals intact when shader packs are enabled.
* **Mouse mode** enables a local cursor, fixed FOV, front-to-back menu depth, and clean interface lighting once the companion resource pack is loaded: items using `GUI` display context (including 3D block icons) show inventory-style shading and depth, while other interface elements keep bright, even flat lighting.
* **Vision mode** draws directly on the client rendering and input capabilities built into ArcMenu Editor, without needing any separate mouse mod. Installing Editor only gives ordinary players client-side interaction support; it does not grant administrative or editing permissions.

## Vision display and response

Vision updates the cursor, hover tooltips, and application pointer attachments locally on the client every frame for immediate movement, and runs eligible hover color feedback directly on the client when `client-playback.local-cursor-choose` is enabled. If the cursor moves outside the menu canvas area, it cleanly exits any active hover region. Its default cursor texture matches Mouse mode, and horizontal and vertical movement share a unified displacement formula that respects both server-configured axis sensitivity and each player's personal sensitivity and cursor-scale preferences. As the cursor moves, hovers, or clicks, the server processes hit regions and runs the configured menu actions.

In Mouse mode, hover tooltips and pointer attachments update as soon as the server receives rotation packets rather than waiting for the next server tick, though they still reflect normal network round-trip and client display interpolation timing. In Touch mode, tooltips and attachments follow on the regular session tick.

Visually, Vision draws menus in a dedicated render pass at a fixed **70° vertical FOV**. Menu dimensions stay consistent regardless of the player's FOV setting, and world blocks or entities never clip into the menu, while layers inside the menu still occlude one another according to their depth. Interface elements stay bright and readable with shader packs enabled. Menu images and custom fonts continue to load from the resource pack, and Editor includes built-in fallback textures for the default cursor.

## Switching modes as a player

Players with the `arcmenu.use` permission can check or switch their input mode at any time:

```
/arcmenu mode
/arcmenu mode touch
/arcmenu mode mouse
/arcmenu mode vision
```

Running `/arcmenu mode` without arguments shows the active mode. When a player switches modes, their preference is saved automatically for future logins. If a menu is already open when they switch, the new mode takes effect on that menu immediately.

## Click and hover interactions

Regardless of which input mode a player uses, backend regions recognize a full set of click types. You can configure any of the following triggers under a button's `actions`:

* `left`: Left-click
* `right`: Right-click
* `middle`: Middle-click (the vanilla "Pick Block" key)
* `shift-left`: Sneak + left-click
* `shift-right`: Sneak + right-click
* `shift-middle`: Sneak + middle-click
* `shift`: Any click while sneaking
* `all` or `any`: Any click

Alongside clicks, buttons can trigger actions through `on-hover` and `on-leave` when the crosshair or cursor enters or leaves the region. See [Backend regions and click events](/arcmenu-wiki/menu-configuration/menus/backend) for region configuration details.

## Menu shortcuts

The `shortcuts` section in `config.yml` controls the keybinds used to open and close menus:

```yaml
shortcuts:
  shift-f: true
  close-on-shift-f: true
  close-on-space: true
```

All three fields accept a boolean (`true` or `false`) and default to `true`:

* `shift-f`: When no menu is open, pressing Shift+F (Sneak + Swap Item With Offhand) opens the main menu directly. You can designate a menu as the main menu by setting `main-menu: true` in its configuration, or open the default main menu with `/arcmenu open main`.
* `close-on-shift-f`: While a menu or application is open, pressing Shift+F closes it.
* `close-on-space`: While a menu or application is open, pressing Space (Jump) closes it.

Key detection follows the player's own client bindings for sneak, swap offhand, and jump. When a player presses Space to close a menu in Vision mode, the client intercepts the jump input so the character does not jump upon closing. While a player is typing in an Arcitx text field, pressing Space enters a normal space character instead of closing the menu.

## Server mode policy

Server administrators can configure the default input mode and switching rules under the `mouse` section of `config.yml`:

```yaml
mouse:
  policy: player-choice
  default: touch
  assume-resource-pack-loaded: true
  sample-rate: 40
```

### Field values

* `policy`: Controls which modes players are allowed to use. Accepts one of the following strings:
  * `player-choice` (default): Players can freely switch between `touch`, `mouse`, and `vision`. Until a player chooses a preference, `default` is used.
  * `force-touch`: Forces Touch mode for all players across the server.
  * `force-mouse`: Uses cursor-based interaction across the server. Players enter `mouse` mode by default, and clients with a matching ArcMenu Editor build installed can also switch to `vision` mode.
* `default`: The mode given to players who have not chosen a preference when `policy` is `player-choice`. Accepts `touch`, `mouse`, or `vision`. If you set the default to `vision`, make sure players have installed the matching ArcMenu Editor build for their client.
* `assume-resource-pack-loaded`: Accepts `true` or `false` (default `true`). When `true`, Mouse mode enables menu depth, interface lighting, the local cursor, and local GIF playback immediately—even if the player loaded the companion resource pack manually from their local `resourcepacks` folder. When `false`, the server waits for a resource-pack load success acknowledgement from the client before enabling those features. See [Images and resource packs](/arcmenu-wiki/feature-configuration/resource-packs) for details on pack generation and distribution.
* `sample-rate`: An integer from `20` to `60` (default `40`). Sets the polling frequency in Hz for the legacy server-polled cursor; local Mouse cursors and Vision mode are driven directly by the client and do not rely on this polling.

## Cursor appearance and sensitivity

The `mouse.cursor` section in `config.yml` adjusts cursor speed, movement boundaries, and display size:

```yaml
mouse:
  cursor:
    interpolation-ticks: 0
    sensitivity-x: 2.0
    sensitivity-y: 2.0
    clamp-margin: 3.0
    size: 5.0
    z: 5.0
```

| Field                 | Valid values                     | Default | Description                                                                                                 |
| --------------------- | -------------------------------- | ------- | ----------------------------------------------------------------------------------------------------------- |
| `sensitivity-x`       | Number from `0.05` to `50`       | `2.0`   | Horizontal cursor sensitivity. Higher values move the cursor faster horizontally.                           |
| `sensitivity-y`       | Number from `0.05` to `50`       | `2.0`   | Vertical cursor sensitivity. Higher values move the cursor faster vertically.                               |
| `clamp-margin`        | Number `0` or greater            | `3.0`   | Inner margin around all four canvas edges (in canvas units) to keep the cursor from moving off the menu.    |
| `size`                | Positive number greater than `0` | `5.0`   | Logical display height of the cursor in canvas units.                                                       |
| `z`                   | Any finite number                | `5.0`   | Depth offset of the cursor relative to the menu plane. Higher values place the cursor closer to the viewer. |
| `interpolation-ticks` | `0`, `1`, or `2`                 | `0`     | Smoothing interpolation ticks for the legacy polled cursor. `0` gives immediate response.                   |

The default cursor texture is stored at `plugins/ArcMenu/images/mouse/mouse.png`, and automatically switches to `choose.png` when hovering over a clickable region. Generating resources also exports both textures for Vision mode. When `client-playback.local-cursor-choose` is `true` (default), Mouse mode switches between `mouse.png` and `choose.png` locally on the client, and both Vision mode and Mouse clients with post-processing support (Minecraft 26.3) also run eligible hover color feedback locally; setting it to `false` lets the server handle these state changes.

Vision mode and Minecraft 26.3 Mouse post-processing receive clickable regions and hover feedback plans from the server at runtime, so adjusting regions or eligible hover animations only requires `/arcmenu reload`. On earlier Mouse clients, local `choose.png` hit regions are generated into the resource pack, so changing clickable regions requires rebuilding and redistributing the pack. Whenever you replace the cursor textures or modify the base cursor geometry and sensitivity values under `mouse.cursor`, rebuild the resource pack as well: run `/arcmenu resources` or `/arcmenu reload all` to generate ArcMenu's assets, and if you use an external resource-pack plugin, run its pack reload command afterward (such as `/ce reload pack`, `/nexo reload pack`, or `/iazip`). If you only changed `policy`, `default`, or `shortcuts`, a standard `/arcmenu reload` is all you need.

To adjust the overall screen offset or viewing distance of the entire menu for each mode, configure `offset.yml` as described in [Canvas, coordinates and screen position](/arcmenu-wiki/menu-configuration/menus/canvas).

## Personal sensitivity and cursor size

Every player with the `arcmenu.use` permission can fine-tune their own cursor speed and display size without affecting the server's base settings or other players. The bundled `cursor-setting` example menu created on first-time setup also demonstrates this feature in an interactive menu.

```
/arcmenu sensitivity
/arcmenu sensitivity set 7
/arcmenu sensitivity add -1
/arcmenu sensitivity clear

/arcmenu cursor-scale
/arcmenu cursor-scale set 3
/arcmenu cursor-scale add 1
/arcmenu cursor-scale clear
```

* Running the command without arguments displays the player's current level and multiplier.
* `set <1-9>`: Sets the level directly to an integer from `1` to `9`.
* `add <integer>`: Adds or subtracts from the current level (for example, `add 1` or `add -1`), keeping the final result within `1` to `9`.
* `clear`: Clears the personal override and returns to the default level `5`.

Levels convert to multipliers using the formula `2^((level - 5) / 4)`:

* **Level 5 (default)**: `1`×, preserving the server's configured speed and size.
* **Level 1 (minimum)**: `0.5`×.
* **Level 9 (maximum)**: `2`×.

The personal sensitivity multiplier scales both `sensitivity-x` and `sensitivity-y`, while the personal cursor-scale multiplier scales `mouse.cursor.size`. Changes apply immediately to any open Mouse or Vision menu without interrupting active menu animations, and are saved in the player's data on the server.

### Placeholders

You can display a player's current settings inside menu text—or in other plugins when PlaceholderAPI is installed—using these placeholders:

| Placeholder                    | Returned value                                                      |
| ------------------------------ | ------------------------------------------------------------------- |
| `%arcmenu_sensitivity%`        | Current personal sensitivity multiplier (up to four decimal places) |
| `%arcmenu_sensitivity_level%`  | Current personal sensitivity level (`1`–`9`)                        |
| `%arcmenu_cursor_scale%`       | Current personal cursor-size multiplier (up to four decimal places) |
| `%arcmenu_cursor_scale_level%` | Current personal cursor-size level (`1`–`9`)                        |

`privatepointersensitivity` and `privatepointerscale` are also supported as aliases for both the commands and placeholders (for example, `%arcmenu_privatepointersensitivity_level%`).


# Arcitx text input

Arcitx is ArcMenu's built-in text input component for collecting player text right inside a menu—such as search keywords, transfer amounts, redemption codes, or custom nicknames.

Structurally, a complete Arcitx input box is made up of three cooperating parts:

1. **Frontend text node (`type: text`)**: Renders the prompt, live typing buffer, blinking caret, and final draft or submitted text on the menu canvas.
2. **Backend editing region (`type: Arcitx`)**: Starts text input when the player clicks it.
3. **Backend submit region (normal click region)**: A separate button the player clicks after finishing their edits to formally submit the text and run follow-up actions.

Keeping editing and submission as two distinct steps lets players review what they typed on the menu before running commands or spending currency, and click the input box again to make changes if they spot a mistake.

## Player workflow

1. **Click the editing region**: Enters text input mode.
2. **Type text**: Supports input method editors (IME) for CJK languages, English letters, numbers, symbols, spaces, and emoji. Pressing Space while editing inserts a space character without closing the menu or submitting early.
3. **Finish editing (save draft)**: Exit editing mode when done typing. Your text now appears on the menu as a draft without triggering submission actions yet, and you can click the editing region again at any time to revise it.
4. **Click the submit region**: Click the dedicated submit button on the menu. ArcMenu saves the draft as the committed value and executes the actions configured on that submit button.

Each input mode handles editing in its own way:

| Input mode      | Editing interface                                                                                                                             | How to finish editing and return to the menu                               |
| --------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------- |
| Touch `touch`   | Opens the vanilla anvil screen to type in the rename field.                                                                                   | Press `Esc` or click the result slot on the right side of the anvil.       |
| Mouse `mouse`   | Opens a vanilla anvil control whose visuals are hidden by the companion resource pack, so players watch the text update directly on the menu. | Press `Esc` (or click the result slot position).                           |
| Vision `vision` | Uses native local client text input and system IME directly inside the menu view without opening an anvil screen.                             | Press `Esc`, press `Enter`, or click anywhere on the menu with the cursor. |

In Vision mode, if a player clicks a button on the menu while typing, the client first finishes the active text edit and then immediately processes the click on that button. For more on switching and configuring input modes, see [Touch, Mouse and Vision input](/arcmenu-wiki/feature-configuration/input-modes).

## Quick-start example

Save the following configuration as `plugins/ArcMenu/menus/arcitx-demo.yml`, run `/arcmenu reload`, and open it with `/arcmenu open arcitx-demo`:

```yaml
schema-version: 1
id: arcitx-demo
canvas:
  width: 320
  height: 180
  pixels-per-block: 42.7

frontend:
  input-border:
    type: frame
    width: 260
    height: 30
    thickness: 1
    color: '#7494B8'
    offset: {y: 12, z: 1}

  input-buffer:
    type: text
    content: ''
    size: 8
    offset: {y: 9, z: 2}

  submit-background:
    type: rectangle
    width: 100
    height: 24
    color: '#3366AA'
    offset: {y: -34, z: 1}

  submit-label:
    type: text
    content: '&fSubmit'
    size: 8
    offset: {y: -37, z: 2}

backend:
  edit-input:
    type: Arcitx
    x: 0
    y: 12
    width: 260
    height: 30
    text: input-buffer
    submit: submit-input
    title: 'Enter text'
    initial: ''
    max-length: 50
    mask: ''
    display:
      before: '&7Click to enter text'
      editing: '&f{input}{caret}'
      draft: '&f{input}'
      complete: '&a{input}'
    caret:
      content: '_'
      interval: 10

  submit-input:
    x: 0
    y: -34
    width: 100
    height: 24
    actions:
      left: 'tell: &aSubmitted: {meta:input-edit-input}'
```

How the pieces fit together in this example:

* The frontend `input-buffer` node defines the font size, font family, alignment, and position on the canvas. While the menu is open, the `display` settings on `edit-input` dynamically control what text `input-buffer` shows; you can still attach position, scale, or opacity animations to `input-buffer`.
* The backend `edit-input` region sets `type: Arcitx`, binds the display node with `text: input-buffer`, and links the submit button with `submit: submit-input`.
* The backend `submit-input` region is a standard click region. Clicking it commits the input and sends the confirmation message. For more on configuring click regions and actions, see [Backend regions and click events](/arcmenu-wiki/menu-configuration/menus/backend) and [Actions and navigation](/arcmenu-wiki/menu-configuration/menus/actions).

## Configuration fields

Setting `type: Arcitx` (case-insensitive) on a `backend` region turns it into a text input box. Alongside standard backend region fields such as `x`, `y`, `width`, `height`, `priority`, `tooltip`, `condition`, and `actions`, an Arcitx region supports the following dedicated fields:

| Field              | Valid values and requirements                                   | Default                 | Description                                                                                                                                |
| ------------------ | --------------------------------------------------------------- | ----------------------- | ------------------------------------------------------------------------------------------------------------------------------------------ |
| `type`             | `Arcitx`                                                        | Required                | Declares this backend region as an Arcitx text input region.                                                                               |
| `text`             | ID string of a frontend `text` node                             | Required                | The frontend text node that displays the input buffer (including text nodes inside a `group`).                                             |
| `submit`           | ID string of a normal backend region                            | Required                | The separate backend click region used to confirm and submit the input.                                                                    |
| `title`            | Any string                                                      | `Enter text`            | Title text shown at the top of the vanilla anvil screen in Touch mode.                                                                     |
| `initial`          | String no longer than `max-length`                              | `''`                    | Initial draft text when the menu first opens. Supports menu placeholders.                                                                  |
| `max-length`       | Integer from `1` to `50`                                        | `50`                    | Maximum allowed input length, measured in UTF-16 code units.                                                                               |
| `mask`             | Empty string `''` or a single Unicode character (such as `'*'`) | `''`                    | Password mask character. Leave empty to show plain text, or set a single character to replace every character of `{input}` when displayed. |
| `display.before`   | String                                                          | `&7Click to enter text` | Prompt text shown before the player has edited or submitted the field.                                                                     |
| `display.editing`  | String                                                          | `{input}{caret}`        | Text template shown while the player is actively typing.                                                                                   |
| `display.draft`    | String                                                          | `{input}`               | Text template shown after the player finishes editing, before clicking the submit button.                                                  |
| `display.complete` | String                                                          | `{input}`               | Text template shown after the player clicks the submit button.                                                                             |
| `caret.content`    | String                                                          | `_`                     | Blinking caret symbol shown during editing. Supports `&` color codes.                                                                      |
| `caret.interval`   | Positive integer `1` or greater                                 | `10`                    | Blink interval between showing and hiding the caret, in game ticks (20 ticks = 1 second).                                                  |

### Character length (`max-length`)

Standard ASCII letters, digits, and common CJK characters each take 1 UTF-16 code unit, while many emoji take 2 code units. When a player's input reaches `max-length`, ArcMenu truncates it cleanly at the limit without splitting surrogate pairs, so an emoji is never cut in half.

## Display states and template markers

The four fields under `display` correspond to the four stages of the input lifecycle:

1. **Before input (`before`)**: Shown when the menu opens and the player has not modified the input box yet. If the player opens the input box and exits without changing any characters, it returns to this state.
2. **Editing (`editing`)**: Shown while the player is actively typing, rendering `{input}` and the blinking `{caret}` in real time.
3. **Draft (`draft`)**: Shown after the player modifies the text and exits editing mode, while waiting for a click on the submit button. The player can still click the input box to edit the draft again.
4. **Submitted (`complete`)**: Shown after the player clicks the bound `submit` region. If the menu stays open, the player can click the editing region again to enter new text and click the submit button to update the submitted value.

Inside any of the four `display` strings, you can use:

* `{input}`: The current text in the player's input buffer (replaced with an equal number of mask characters if `mask` is configured).
* `{caret}`: The blinking caret symbol (blinks during `editing` and automatically resolves to empty in the other three states).
* Color codes (such as `&a` or `&#FFAA00`) and standard menu placeholders.

Text typed by the player is rendered literally. Even if a player types `&c`, `{caret}`, or `%player_name%` into the input box, it is displayed as plain text and will not alter your formatting or evaluate arbitrary placeholders.

## Reading submitted text

When a player clicks the region bound via `submit`, ArcMenu saves the current draft as the committed submission and then runs the `actions` on the submit region in order. You can read the unmasked text the player submitted using these `meta` placeholders:

| Placeholder                        | Description                                                                                                                    |
| ---------------------------------- | ------------------------------------------------------------------------------------------------------------------------------ |
| `{meta:input}`                     | The most recent text submitted by the player (across both Arcitx submissions and chat input catchers, persisted across menus). |
| `{meta:input-<editing-region-id>}` | The most recent text submitted for that specific Arcitx editing region.                                                        |

For example, if your editing region is named `search-box`, use `{meta:input-search-box}` in your submit button's actions. When a single menu contains multiple input fields—such as a username and password, or a recipient and transfer amount—the ID-specific placeholder lets you read each field independently:

```yaml
actions:
  left:
    - 'tell: &aTransferring {meta:input-amount} coins to {meta:input-target-player}'
```

### Drafts, submitted values, and validation

* **When submitted values update**: `{meta:input-...}` updates only when the player clicks the separate `submit` region. Typing, pressing `Esc` to exit editing, or clicking the anvil result slot only updates the draft.
* **Empty text and conditional validation**: Arcitx allows submitting an empty string. To require non-empty input or validate the format, combine the submit region's actions with [Conditions](/arcmenu-wiki/menu-configuration/menus/conditions) (for instance, checking `'{meta:input-edit-input}' != ''`).
* **Value lifecycle**: The draft buffer and the session submission value read via API belong to the currently open menu session; closing and reopening the menu resets the input box to `initial`. By contrast, `{meta:input}` and `{meta:input-<editing-region-id>}` are stored in player-level temporary data (`META`). Opening or closing a menu does not clear them; submitting again overwrites the value, while starting a chat catcher or running `remove-meta` clears them. Clicking the submit button does not automatically close the menu—add `close` or `open: <menu-id>` to the submit region's `actions` whenever you want submission to close the menu or navigate elsewhere.

## Password masking and custom completion text

### Password fields

Setting `mask: '*'` replaces `{input}` on the menu with one asterisk for each Unicode code point the player typed, while `{meta:input-...}` still provides the actual password to your actions:

```yaml
mask: '*'
display:
  before: '&7Enter password'
  editing: '&f{input}{caret}'
  draft: '&f{input}'
  complete: '&f{input}'
```

Note that `mask` applies to the bound frontend text node on the menu canvas. In Touch mode, the vanilla anvil's own rename box still shows the characters being typed, whereas Mouse mode (with the anvil-hiding companion resource pack) and Vision mode display only the masked asterisks on the menu canvas from start to finish.

### Fixed completion message

If you want players to see their plain text while typing and reviewing their draft, but hide the text or show a confirmation prompt after submission, leave `mask` empty and customize `display.complete`:

```yaml
mask: ''
display:
  before: '&7Click to enter redemption code'
  editing: '&f{input}{caret}'
  draft: '&f{input}'
  complete: '&aConfirmed — click to edit again'
```

## Structure and binding rules

When loading menus, ArcMenu validates the following binding rules so you can catch configuration mistakes right away:

1. **Target nodes must exist and match types**: `text` must point to an existing `type: text` node in the menu's `frontend`, and `submit` must point to an existing normal click region in `backend` (never to itself or to another `Arcitx` region).
2. **Exclusive one-to-one bindings**: When a menu has multiple `Arcitx` regions, each input box must bind its own dedicated `text` node and its own dedicated `submit` region; they cannot be shared.
3. **Strict geometric separation**: The editing region and its bound submit region must not overlap or share touching edges on the canvas. Leave a clear gap between their rectangles (for example, at least 1 canvas unit apart).


# Images and resource packs

You can place static PNG images and animated GIFs in your menus to create panel backgrounds, header logos, icon buttons, and decorative accents. All source image files live under `plugins/ArcMenu/images/`, and ArcMenu packages them into your server resource pack automatically.

## Storing and referencing images

You can organize your assets into subdirectories inside `images/` however you like. Folder names and filenames may use lowercase English letters (`a`–`z`), digits (`0`–`9`), underscores (`_`), hyphens (`-`), and periods (`.`).

When referencing an image in a menu configuration, treat `images/` as the root directory and start the `source` path with `/`:

| File path on disk                            | `source` in menu YAML  |
| -------------------------------------------- | ---------------------- |
| `plugins/ArcMenu/images/example.png`         | `/example.png`         |
| `plugins/ArcMenu/images/ui/logo.png`         | `/ui/logo.png`         |
| `plugins/ArcMenu/images/buttons/confirm.png` | `/buttons/confirm.png` |
| `plugins/ArcMenu/images/ui/banner.gif`       | `/ui/banner.gif`       |

Here is an example of a static PNG image element in `frontend`:

```yaml
frontend:
  logo:
    type: image
    source: /ui/logo.png
    width: 96
    height: 32
    offset: {y: 40, z: 1}
```

Field details:

* `type`: Use `image` for static PNGs, or `gif` for animated GIFs (see [Animated GIFs](/arcmenu-wiki/feature-configuration/gif) for GIF options).
* `source`: Image path starting with `/`, ending in `.png` or `.gif`.
* `width` and `height`: Display width and height on the menu canvas, specified as positive numbers greater than `0`. If you omit either dimension, it defaults to the original pixel dimension of the source image.
* `opacity`: Optional opacity from `0` to `255`, where `255` is fully opaque.
* `color`: Optional hex color tint formatted as `'#RRGGBB'` or `'&#RRGGBB'`.

Mouse cursor textures and 9-slice tooltip skins are also stored in `images/`; see [Touch, Mouse and Vision input](/arcmenu-wiki/feature-configuration/input-modes) and [Tooltips](/arcmenu-wiki/feature-configuration/tooltips) for their configuration.

## Switching images dynamically

`source` accepts PlaceholderAPI placeholders, and pairing it with an `update` interval lets you swap images dynamically based on a player's live status:

```yaml
frontend:
  rank-badge:
    type: image
    source: /ranks/%player_rank%.png
    update: 20
```

Set `update` to a positive integer in game ticks (`20` ticks is roughly 1 second), or `-1` to resolve the path once when the menu opens. Make sure every image file that the placeholder can resolve to (such as `/ranks/vip.png` and `/ranks/admin.png`) is placed in `images/` ahead of time and built into the resource pack.

## Generating and merging resource packs

Whenever you add, replace, or delete images, cursors, or tooltip skins, regenerate the resource pack and distribute the updated pack to connected clients.

### Integration with custom content plugins

When CraftEngine, Nexo, or ItemsAdder is installed on the server, those plugins automatically pull in and merge ArcMenu's generated assets whenever they build their resource pack.

* When you modify assets or install a package containing textures through the in-game visual editor or project manager, ArcMenu automatically asks the active plugin to rebuild the resource pack, checking in the order **CraftEngine → Nexo → ItemsAdder**.
* When you add or replace files in `images/` manually on disk, first run `/arcmenu resources` (or `/arcmenu reload all`) to generate ArcMenu's resource output, then run your content plugin's pack command:
  * **CraftEngine**: `/ce reload pack` (or `/ce reload all`)
  * **Nexo**: `/nexo reload pack`
  * **ItemsAdder**: `/iazip`

If more than one resource-pack plugin is installed on the same server, have only one of them host and send the final merged resource pack so clients do not receive duplicate pack prompts.

### Standalone generation and external hosting

On servers without those plugins, running `/arcmenu reload all` or `/arcmenu resources` builds a complete standalone resource pack at:

```
plugins/ArcMenu/generated/arcmenu-resourcepack.zip
```

You can upload this ZIP to a file host and configure its URL in `server.properties`, or merge it with another pack tool (preserving the entire `assets/arcmenu/` directory and the overlay entries in `pack.mcmeta`).

If you only edited text, coordinates, or post-processing hover animations in your menu YAML files without changing image assets or cursor textures, `/arcmenu reload` applies your changes for Vision mode and post-processing Mouse clients (26.3) without rebuilding the pack. On earlier Mouse clients, local hover cursor regions (`choose.png`) are baked into the resource pack, so changing interactive region bounds when `client-playback.local-cursor-choose` is enabled requires regenerating and redistributing the resource pack.

## Manual client installation and load detection

Instead of automatic server delivery, players can also place `arcmenu-resourcepack.zip` into their client's local `resourcepacks` folder and enable it manually. Whenever the server updates its images or cursor settings, regenerate the ZIP and have players replace their local copy.

In `config.yml`, `mouse.assume-resource-pack-loaded` controls how Mouse mode checks whether the client has the companion resource pack ready:

```yaml
mouse:
  assume-resource-pack-loaded: true
```

This setting accepts `true` or `false` and defaults to **`true`**:

* When set to **`true`**: ArcMenu trusts that the client has the companion resource pack enabled. Even if the player installed the pack manually in their local `resourcepacks` folder and the client never sent a server resource-pack load acknowledgement packet, Mouse mode enables menu depth, fixed FOV, UI lighting, the local cursor, and local GIF animations right away.
* When set to **`false`**: Mouse mode waits until the server receives a resource-pack load success acknowledgement from the client. While the pack is still loading—or if loading fails—visual and cursor features that depend on the companion pack remain disabled.

This option only governs how Mouse mode checks for companion pack readiness. Touch mode uses standard in-world rendering, while Vision mode and the independent editor preview use the dedicated renderer and native cursor built into ArcMenu Editor on the client. Across all modes, custom menu images and custom fonts still require the client to have the resource pack loaded.

## Asset dimensions and format limits

To keep menu visuals crisp while keeping client memory usage reasonable, files in `images/` follow these specifications:

* **Static PNGs**: Full alpha transparency is supported. Each image must be between `1` and `4096` pixels wide and high, with a maximum file size of `16 MiB` per PNG. The `images/` directory supports up to `4096` images and frame glyphs in total, up to a combined source size of `128 MiB`.
* **Automatic font-atlas scaling**: Minecraft font atlases cap individual glyph bitmaps at `256` pixels per side. When you use a high-resolution PNG wider or taller than `256` pixels, ArcMenu automatically generates an atlas-compatible scaled bitmap inside the resource pack while keeping the exact display dimensions you configured in the menu; your original file in `images/` is never modified.
* **Animated GIFs**: Each GIF file can be up to `16 MiB`, with dimensions up to `4096` pixels, up to `1024` frames, and up to `16,777,216` total decoded canvas pixels per file. During resource generation, decoded frame sequences are written directly into the generated ZIP package, leaving only the original `.gif` file in `images/`.


# Tooltips

Tooltips display floating explanatory text as soon as a player points their crosshair or mouse cursor at an interactive button region. You can present feature descriptions, price requirements, or live personal stats without making the player click the button first.

The text for each tooltip is defined inside the menu's `backend` regions, while overall appearance, font size, and background skins are configured globally in `plugins/ArcMenu/tooltip.yml`.

## Adding tooltip text to interactive regions

Under `backend` in a menu configuration file, add `tooltip` and the optional `update` field to any interactive region to enable its tooltip:

```yaml
backend:
  information-area:
    x: 0
    y: 0
    width: 80
    height: 24
    tooltip:
      - '&fServer Guide'
      - '&7Player: %player_name%'
      - '&eRight-click to view details'
    update: 20
    actions:
      right:
        - 'tell: &aOpened the detailed guide for you.'
```

These two fields accept the following values:

| Field     | Description and valid values                                                                                                                                                                                            |
| --------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `tooltip` | A single-line string or a multi-line string list (each item renders on its own line). Supports legacy color codes, hex colors, and PlaceholderAPI placeholders.                                                         |
| `update`  | Periodic refresh interval for the tooltip text in game ticks (`20` ticks is roughly 1 second). Accepts a positive integer (such as `20`), or `-1` to disable periodic refreshes. Defaults to `-1`; `0` is not accepted. |

When a player moves their pointer into the region, the tooltip appears automatically with all placeholders parsed; moving out of the region hides it immediately. If multiple interactive regions overlap, the tooltip for whichever region is currently hit is shown.

If a tooltip includes placeholders that change over time (such as a cooldown timer or live balance), set `update` to a positive integer so it refreshes automatically while the player hovers. You can also use `refresh: <region-name>` inside a button action to manually refresh the tooltip of the currently pointed region. To change how a region behaves based on conditions, see [Conditions](/arcmenu-wiki/menu-configuration/menus/conditions).

## Configuring tooltip appearance (`tooltip.yml`)

`plugins/ArcMenu/tooltip.yml` manages tooltip styling across all menus. At the top level, the file is divided into `touch` (for Touch mode) and `mouse` (for Mouse and Vision modes), letting you set distinct font sizes and offsets for each input method.

If you omit the `mouse` section from the file entirely, Mouse mode inherits the complete appearance and skin settings from `touch`.

### Basic properties and solid backgrounds

When no image skin is configured, tooltips render with a translucent solid-color background. Here is a clean solid-background configuration:

```yaml
touch:
  offset: {x: 6, y: 4.27, z: 5}
  anchor: top-left
  wrap: false
  size: 2.989
  line-width: 180
  background: '#D0101010'

mouse:
  offset: {x: 6, y: 4.27, z: 5}
  anchor: top-left
  wrap: false
  size: 4.375
  line-width: 180
  background: '#D0101010'
```

The default configuration generated on first install includes a nine-slice `skin` image background. To switch to the solid-color background above, delete the `skin` section under the corresponding mode.

Each mode supports the following basic fields:

| Field        | Description and valid values                                                                                                                                                                                                                                                     |
| ------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `offset`     | Offset of the tooltip relative to the pointed position, with finite numbers `x`, `y`, and `z`. Positive `x` moves right, positive `y` moves up, and positive `z` moves forward toward the player.                                                                                |
| `anchor`     | The corner of the tooltip anchored to "pointed position + offset". Valid values: `top-left`, `top-right`, `bottom-left`, `bottom-right`. Defaults to `bottom-left` when omitted (the bundled configuration sets `top-left`).                                                     |
| `wrap`       | Whether to wrap lines automatically at `line-width`. Accepts boolean `true` or `false`; defaults to `false`.                                                                                                                                                                     |
| `size`       | Text scale of the tooltip. Accepts a number greater than `0`.                                                                                                                                                                                                                    |
| `line-width` | Maximum width of a single line when automatic wrapping is enabled, in text pixels. Accepts an integer greater than `0` (defaults to `180`).                                                                                                                                      |
| `background` | Solid background color used when `skin` is not configured. Accepts a quoted 8-digit hex color `'#AARRGGBB'`. The first two digits (`AA`) control opacity (`00` for fully transparent, `FF` for fully opaque); for example, `'#D0101010'` produces a dark translucent background. |
| `skin`       | Optional nine-slice image background section. When configured, it automatically replaces the solid `background` color.                                                                                                                                                           |

### Alignment anchors and line wrapping

Touch mode uses the crosshair hit point as the alignment origin and updates tooltip positions on each session tick. Mouse and Vision modes anchor tooltips to the tip of the cursor: Vision mode follows the cursor locally on every rendered frame, while Mouse mode updates tooltip positions immediately upon receiving player rotation packets without waiting for the next server tick. The `anchor` setting determines which corner of the tooltip stays pinned to that origin, as well as which directions the box expands toward as text gets longer or adds more lines:

| `anchor` value | Pinned corner       | Expansion direction    |
| -------------- | ------------------- | ---------------------- |
| `top-left`     | Top-left corner     | Expands right and down |
| `top-right`    | Top-right corner    | Expands left and down  |
| `bottom-left`  | Bottom-left corner  | Expands right and up   |
| `bottom-right` | Bottom-right corner | Expands left and up    |

When `wrap` is `false`, each entry in the `tooltip` list stays on its own single line without automatic wrapping; splitting text into a multi-line list is the most direct way to control line breaks yourself. When `wrap` is `true`, lines exceeding `line-width` text pixels wrap automatically. Note that `line-width` is measured in font pixels, which is not the same unit as menu canvas coordinate width.

## Nine-slice image backgrounds (`skin`)

By configuring `skin`, you can draw custom panels and frames for your tooltips using PNG images. ArcMenu uses nine-slice scaling: the four corners keep their original proportions while the four edges and center stretch automatically to fit the width and height of the tooltip text.

Place the following `skin` section under `touch` or `mouse` to enable an image background:

```yaml
touch:
  skin:
    background: /ce/topaz_background.png
    frame: /ce/topaz_frame.png
    border: 8
    padding: {left: 8, right: 8, top: 8, bottom: 8}
    min-size: {width: 24, height: 24}
    size-adjust: {width: 0, height: 0}
    offset: {x: 0, y: 0, z: -0.25}
    scale: {x: 1.0, y: 1.0}
    text-offset: {x: 0, y: 0, z: 0}
```

The example above uses `/ce/topaz_background.png` and `/ce/topaz_frame.png`, which are included on initial installation inside `plugins/ArcMenu/images/ce/`. Image paths follow the exact same rules as regular menu images; see [Images and resource packs](/arcmenu-wiki/feature-configuration/resource-packs) for details.

### Slicing and dimension fields

| Field         | Description and valid values                                                                                                                                                                                 |
| ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `background`  | Required. Path to the base background PNG (such as `/ce/topaz_background.png`).                                                                                                                              |
| `frame`       | Optional. Path to a border PNG layered over the background; when set, its source pixel width and height must match `background` exactly.                                                                     |
| `border`      | Width in pixels preserved on all four edges during nine-slice cutting. Accepts an integer greater than `0` (defaults to `8`). Must be less than half the source image's width and less than half its height. |
| `padding`     | Inner padding between the text and the four edges of the background, with non-negative integers `left`, `right`, `top`, and `bottom` in tooltip text pixels.                                                 |
| `min-size`    | Minimum width and height of the tooltip background, with integers `width` and `height` in tooltip text pixels. Both values must be at least `2 × border + 1`.                                                |
| `size-adjust` | Extra width and height added to or subtracted from the automatically measured dimensions, with integers `width` and `height`. The resulting minimum dimensions must still be at least `2 × border + 1`.      |

Here, `border` is measured in source PNG pixels, whereas `padding`, `min-size`, and `size-adjust` are measured in tooltip text pixels and scale alongside the mode's `size` and the skin's `scale`. For example, with `border: 8`, the source image must be at least `17` pixels wide and high, and `min-size` must also be at least `17` on both axes (the example uses `24` to leave comfortable margins).

### Independent background and text positioning

To fine-tune layering or alignment between the background image and the text independently, use these three fields under `skin`:

| Field         | Subfields     | Description and valid values                                                                                                                                                                  |
| ------------- | ------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `offset`      | `x`, `y`, `z` | Moves only the image background without moving the tooltip text. `x` and `y` use menu coordinate units; `z` uses depth units (defaults to `z: -0.25` to keep the background behind the text). |
| `scale`       | `x`, `y`      | Horizontal and vertical scale multipliers for the image background. Accepts numbers greater than `0` (both default to `1.0`).                                                                 |
| `text-offset` | `x`, `y`, `z` | Fine-tunes only the tooltip text position without moving the image background. Defaults to `0` on all axes.                                                                                   |

Keep in mind the difference between the mode-level `offset` and `skin.offset`: the mode-level `offset` shifts the entire tooltip (both text and background together), while `skin.offset` shifts only the background layer.

### Fine-tuning nine-slice seams

`skin` also provides optional glyph-stitching adjustments, all measured in tooltip text pixels. The default value of `0` works well for everyday use, and you can adjust them if a custom texture shows hairline seams at a specific scale:

| Field           | Subfields                 | Description and valid values                                                                                               |
| --------------- | ------------------------- | -------------------------------------------------------------------------------------------------------------------------- |
| `seam-overlap`  | `x`, `y`                  | Pixel overlap between adjacent nine-slice pieces to eliminate visible seams. Accepts numbers greater than or equal to `0`. |
| `glyph-offset`  | `x`, `y`                  | Overall position offset for the complete set of nine-slice glyphs. Accepts finite numbers.                                 |
| `column-offset` | `left`, `center`, `right` | Fine-tunes the horizontal position of the left, center, and right slice columns individually. Accepts finite numbers.      |
| `row-offset`    | `top`, `center`, `bottom` | Fine-tunes the vertical position of the top, center, and bottom slice rows individually. Accepts finite numbers.           |

## Reloading and applying changes

* If you only edited `tooltip` text or `update` intervals in a menu, or adjusted numeric settings like offsets, font sizes, or padding in `tooltip.yml`, run `/arcmenu reload` to apply the changes.
* If you replaced PNG textures under `skin` or changed the `border` slice width, regenerate the resource pack: when working with a custom-content plugin, run `/arcmenu resources` followed by that plugin's pack command (such as `/ce reload pack`, `/nexo reload pack`, or `/iazip`); for standalone distribution, run `/arcmenu reload all`.


# Animation timelines and tracks

Animations let menus transition smoothly when opening, closing, or switching, and let you move, rotate, scale, fade, or recolor frontend text, images, rectangles, items, or entire groups. Players see all of these animations directly on a vanilla client.

Menu animations are configured in `plugins/ArcMenu/animations.yml` (animations installed from ArcPack expansion packages are placed in `plugins/ArcMenu/animations/` and loaded automatically).

## Configuration file structure

`animations.yml` has four top-level fields. You first define reusable transitions and tracks, then bind them to specific menus:

| Top-level field  | Purpose and valid values                                                           |
| ---------------- | ---------------------------------------------------------------------------------- |
| `schema-version` | Configuration file format version; always set to the integer `1`.                  |
| `transitions`    | Defines whole-menu entry, exit, and switch transitions.                            |
| `tracks`         | Defines keyframe animation tracks for a single frontend element or group property. |
| `menus`          | Binds a `transition` and list of `tracks` to each menu by its `id`.                |

Custom identifiers under `transitions` and `tracks` may only contain lowercase English letters, digits, underscores (`_`), and hyphens (`-`), and must start with a letter or digit.

## Complete configuration example

Suppose we have a menu with ID `menu-guide` containing a text element named `title` and a rectangle element named `button-bg`. We can write its animations in `animations.yml` like this:

```yaml
schema-version: 1

transitions:
  soft-slide:
    enter:
      duration: 8
      easing: ease-out
      offset: {x: -20, y: 0, z: 0}
      scale: {x: 0.95, y: 0.95}
    exit:
      duration: 6
      easing: ease-in
      offset: {x: 0, y: -20, z: 0}
      scale: {x: 0.95, y: 0.95}

tracks:
  title-fade:
    target: title
    property: opacity
    duration: 20
    easing: linear
    loop: once
    trigger: open
    keyframes:
      - {at: 0, value: 80}
      - {at: 1, value: 255}

  title-bob:
    target: title
    property: offset
    duration: 20
    easing: ease-in-out
    loop: ping-pong
    trigger: api
    keyframes:
      - {at: 0, value: {x: 0, y: 20, z: 1}}
      - {at: 1, value: {x: 0, y: 28, z: 1}}

  button-highlight:
    target: button-bg
    property: color
    duration: 4
    easing: ease-out
    loop: once
    trigger: api
    keyframes:
      - {at: 0, value: '#181916'}
      - {at: 1, value: '&#DF432D'}

menus:
  menu-guide:
    transition: soft-slide
    tracks: [title-fade, title-bob, button-highlight]
```

In this example, when a player opens `menu-guide`, the entire menu slides in smoothly from the left (`soft-slide`) while the title opacity fades from `80` to `255` (`title-fade`). Because `title-bob` and `button-highlight` use `trigger: api`, they play on demand when hovering or clicking buttons.

## Whole-menu transitions (`transitions`)

Each transition definition can include any one or more of the three phases `enter`, `exit`, and `switch` (at least one phase must be configured):

| Phase    | Trigger timing and direction                                                                                                                               |
| -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `enter`  | Plays when a player first opens the menu. The menu transitions smoothly from your configured `offset` and `scale` back to its normal position and size.    |
| `exit`   | Plays when a player closes the menu. The menu transitions smoothly from its normal state to your configured `offset` and `scale`, then closes.             |
| `switch` | Plays when switching to this menu from another open menu. The menu transitions smoothly from the configured `offset` and `scale` back to its normal state. |

Each phase supports the following fields:

| Field      | Description and valid values                                                                                                                                                   |
| ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `duration` | Required. Transition duration as an integer from `1` to `72000` (in game ticks, where `20` ticks is roughly 1 second).                                                         |
| `easing`   | Timing curve: `linear`, `ease-in`, `ease-out`, or `ease-in-out`. Defaults to `linear` when omitted.                                                                            |
| `offset`   | Starting (or ending) position offset relative to the menu's normal position, with `x`, `y`, and `z` up to an absolute value of `100000` per axis. Omitted axes default to `0`. |
| `scale`    | Overall starting (or ending) scale multiplier, with `x` and `y` as non-zero numbers up to an absolute value of `1000`. Omitted axes default to `1`.                            |

While a whole-menu transition is playing, button clicks are briefly locked and tooltips are hidden; normal interaction resumes as soon as the transition finishes.

## Element property tracks (`tracks`)

Each track controls a single property on one frontend element (or group). A track configuration includes the following fields:

| Field       | Description and valid values                                                                                               | Default  |
| ----------- | -------------------------------------------------------------------------------------------------------------------------- | -------- |
| `target`    | Required. Name of the target frontend element or group (must exist in the bound menu's frontend).                          | None     |
| `property`  | Required. Property to animate: `offset`, `rotation`, `scale`, `content`, `opacity`, or `color`.                            | None     |
| `duration`  | Required. One-way playback duration as an integer from `1` to `72000` (in game ticks).                                     | None     |
| `easing`    | Timing curve for the track's overall one-way progress: `linear`, `ease-in`, `ease-out`, or `ease-in-out`.                  | `linear` |
| `loop`      | Loop mode: `once` (single play), `repeat` (restart from beginning), or `ping-pong` (back and forth).                       | `once`   |
| `trigger`   | Trigger mode: `open` (plays automatically when the menu opens) or `api` (triggered by actions, hover events, or commands). | `open`   |
| `keyframes` | Required. Time-ordered list of keyframes.                                                                                  | None     |

When `target` points to a `group`, `offset`, `rotation`, and `scale` tracks move, rotate, or scale all child elements inside that group together.

### Animatable properties and keyframe values (`property` and `value`)

Each entry in the `keyframes` list contains `at` (time progress) and `value` (property value).

* `at` takes a number from `0` to `1`, representing the fraction of the total `duration` (for example, with `duration: 40`, `at: 0.5` corresponds to tick `20`).
* A track requires at least **2 keyframes**: the first frame must have `at: 0`, the last frame must have `at: 1`, and any intermediate frames must have strictly increasing, non-duplicate `at` values.

The `value` format and supported element types for each `property` are as follows:

| `property` | Example `value` format      | Valid range and applicable elements                                                                                                                                                        |
| ---------- | --------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `offset`   | `{x: 0, y: 20, z: 1}`       | Applies to all frontend elements and groups. Each axis accepts an absolute value up to `100000`; omitted axes default to `0`.                                                              |
| `rotation` | `{x: 0, y: 90, z: 0}`       | Applies to all frontend elements and groups, in degrees. Each axis accepts an absolute value up to `100000`; omitted axes default to `0`.                                                  |
| `scale`    | `{x: 1.1, y: 1.1}`          | Applies to all frontend elements and groups. `x` and `y` are required, and `item` and `block` elements may also specify `z`; values must be non-zero with an absolute value up to `1000`.  |
| `content`  | `'&aWelcome!'`              | Applies only to `text` elements. Switches the displayed text when playback reaches the keyframe.                                                                                           |
| `opacity`  | `255`                       | Applies only to `text` elements. Accepts an integer from `0` to `255` and interpolates smoothly between keyframes.                                                                         |
| `color`    | `'#DF432D'` or `'&#DF432D'` | Applies only to `rectangle`, `line`, and `frame` elements. Accepts a quoted 6-digit hex color, interpolating smoothly across RGB channels while preserving the element's original opacity. |

Note that during playback, a track's `value` **directly replaces** the corresponding property configured on the target element in the menu YAML rather than adding to it. For instance, if a title is originally placed at `y: 20` and you want it to float upward by `8` units, your keyframes should go from `y: 20` to `y: 28`. When the track is stopped (`stop-animation`), the element automatically returns to the initial value configured in the menu YAML.

### Timing curves and loop modes

`easing` applies to the overall normalized progress (`0` to `1`) of a single one-way pass across the entire track. ArcMenu first maps the overall time progress through the easing curve, then locates the active keyframe interval and interpolates linearly within it, rather than resetting the curve between every adjacent pair of keyframes:

* `linear`: Advances at a constant speed from start to finish.
* `ease-in`: Starts slowly and gradually accelerates.
* `ease-out`: Starts quickly and decelerates smoothly toward the end.
* `ease-in-out`: Starts and ends gently with faster movement through the middle.

`loop` controls what happens after the track reaches `at: 1`:

* `once`: Plays a single time and holds the final keyframe's value indefinitely (until the track is manually stopped). While a `content` track is active on a text element, that element's periodic text refresh pauses so it does not overwrite the animated text.
* `repeat`: Jumps back to the first keyframe and replays immediately each time it reaches the end.
* `ping-pong`: Plays forward from the first frame to the last, then reverses back to the first frame continuously. Because `duration` measures a single one-way pass, a full round trip takes `2 × duration`.

## Binding animations to menus (`menus`)

Once your `transitions` and `tracks` are defined, bind them to specific menu IDs under `menus`:

```yaml
menus:
  menu-guide:
    transition: soft-slide
    tracks: [title-fade, title-bob, button-highlight]
```

* If a menu only needs element tracks and no whole-menu transition, omit `transition`.
* If a menu only needs a whole-menu transition, write `tracks: []`.
* **Different properties** on the same element (such as `offset` and `opacity`) can each run their own automatic `trigger: open` track simultaneously, while the **same property** on the same element can bind at most one `trigger: open` track. Manual `trigger: api` tracks have no count limit—starting a new track on the same property automatically takes control of that property.
* Any track triggered by an action inside a menu must be listed in that menu's `tracks` list.

## Triggering and stopping track animations

Tracks configured with `trigger: api` can be controlled through button click actions, hover events, or admin commands.

### Hover highlights and button click triggers

Inside a menu's `backend` regions, use `animate: <track-id>` (or the equivalent `animation: <track-id>`) to start a track, and `stop-animation: <track-id>` to stop it and restore the element's initial value.

For example, combining the `button-highlight` color track from earlier, you can build a button that smoothly changes color when pointed at and reverts when the pointer leaves:

```yaml
frontend:
  button-bg:
    type: rectangle
    width: 80
    height: 30
    color: '#181916'

backend:
  button-area:
    x: 0
    y: 0
    width: 80
    height: 30
    on-hover: 'animate: button-highlight'
    on-leave: 'stop-animation: button-highlight'
    actions:
      left: 'animate: title-bob'
      shift-left: 'stop-animation: title-bob'
```

When a player points at `button-area`, `on-hover` triggers the `button-highlight` color transition once without restarting it on every tick while hovering; when the pointer leaves, `on-leave` stops the track and restores the `#181916` base color. If you also want a smooth fade-out when the pointer leaves, define a second track that transitions from the highlight color back to the base color and trigger it in `on-leave`.

### Debugging animations with admin commands

Administrators with the `arcmenu.admin` permission can inspect or test tracks in-game while viewing a menu that has those tracks bound:

```
/arcmenu animations
/arcmenu animate title-bob
/arcmenu stop-animation title-bob
```

## Client-side playback optimizations

In `config.yml`, both `linear-offsets` and `local-cursor-choose` are enabled (`true`) by default under `client-playback`:

```yaml
client-playback:
  linear-offsets: true
  local-cursor-choose: true
```

* **`linear-offsets`**: When enabled, eligible linear position tracks (`property: offset` with `easing: linear`) use Minecraft's native display-entity client interpolation for smooth movement, reducing how often the server sends per-tick position update packets. Keyframe transitions, loop resets, and play/stop controls remain accurately synchronized by the server.
* **`local-cursor-choose`**: When enabled, Vision mode and Mouse clients with post-processing support (Minecraft 26.3) can run eligible hover color animations locally on the client as soon as the cursor enters or leaves a region, without waiting for a server round trip. A track qualifies for local hover playback when it uses `trigger: api`, is started or stopped by standard unconditional `animate` / `stop-animation` actions in `on-hover` and `on-leave`, does not move element positions or depend on player-specific placeholders (fixed localized text is supported), and animates either:

  * `property: color` on a `rectangle`, `line`, or `frame` element, or
  * `property: content` on a `text` element where keyframes only change a single uniform color without changing the text string or formatting.

  Any other actions configured on the region—and any tracks that do not meet these criteria—continue to run on the server as usual. Because Vision and Minecraft 26.3 Mouse clients receive hover plans at runtime, editing regions or these hover tracks only requires `/arcmenu reload`.

After editing and saving `animations.yml`, run `/arcmenu reload` to apply your changes. If you want to build full-screen cutscenes with synchronized audio, fixed-camera staging, and multi-layer timelines, see [Effect cutscenes](/arcmenu-wiki/feature-configuration/effect).




---

[Next Page](https://simple.superiormc.cn/llms-full.txt/1)

