HomeJavaModsTrimReroller
TrimReroller
ModsJava

TrimReroller

Configurable armor trim rerolls with a crafting recipe, polished GUI, and cinematic animation.

⬇ Download on Spigot
TrimReroller

TrimReroller adds a craftable, single-use item that rolls one vanilla armor trim smithing template. Rolls can use the inventory menu, the world animation, or both. Each mode has its own sounds and reveal effects.

Requirements


TrimReroller compiles against the Paper 1.21.1 API so it does not depend on newer 1.21-only additions. It supports Paper and compatible Paper forks such as Purpur and Pufferfish. Spigot and Folia are not supported because the plugin uses Paper APIs and has not been tested under Folia's scheduler model.

Installation

  1. Stop the Paper server.
  2. Copy `build/libs/TrimReroller-1.6.0.jar` into the server's `plugins` directory.
  3. Start the server and confirm that TrimReroller reports its discovered template count without errors.
  4. Adjust `plugins/TrimReroller/config.yml` and `messages.yml` if needed.
  5. Run `/trimreroller reload` after editing the files.

Do not leave older TrimReroller JARs in the `plugins` directory when replacing a build.

Default Recipe

Code (Text):
D A N
G E G
D P N

D = Diamond
A = Amethyst Shard
G = Gold Ingot
E = Echo Shard
P = Ender Pearl
N = Netherite Ingot
 
Players with `trimreroller.craft` can craft the item normally or with shift-click. Right-clicking it from either hand starts the roll. Exactly one reroller is consumed after all start checks pass; no armor trim input is required or consumed. The selected trim is delivered at the reveal. If the inventory is full, the exact reward is dropped at the player's location and owned by that player.

The item name, lore, menu titles, menu labels, icons, animation text, effects, recipe, odds, and sounds can all be changed in `config.yml`. Anvils cannot permanently replace the configured name on a legitimate reroller; its configured appearance is restored when the plugin refreshes it.

Interrupted rolls are stored in player persistent data. Quitting, dying, or a clean plugin shutdown leaves the selected reward owed to the player; it is delivered after the player rejoins or respawns.

Commands


Permissions


Configuration

`config.yml` controls the reroller material, name, lore, glint, recipe, discovery, rarity chances, GUI behavior, GUI labels and icons, trim-guide appearance, animation placement and text, colors, particle density/counts, and every sound cue. MiniMessage formatting is supported for configured text. The menu and world animation can be switched on or off separately. Rolls are instant only when both are off. Menu sounds use the `sounds.gui-*` entries; the world animation uses the main sound entries.

The only player-visible author credit is on the Nether Star in the `/trims` guide. Plugin metadata and the startup log retain normal author information.

The four rarity chances must be non-negative and add up to 100. Bad recipe, color, or number settings use the built-in defaults. Invalid YAML is rejected without replacing the last working settings.

`messages.yml` contains the prefix and chat messages.

Trim Groups and Odds

The four groups describe how difficult each template is to obtain in vanilla 1.21 loot data:


The fixed default output table is:

| Group | Combined chance | Trims in group | Chance per trim |
| -------- | --------------: | -------------: | --------------: |
| Common | 60% | 6 | 10% |
| Uncommon | 27% | 7 | 3.86% |
| Rare | 11% | 4 | 2.75% |
| Mythic | 2% | 1 | 2% |

No input trim changes these chances. The result is selected once before the animation starts, so visual candidates cannot change it.

Build

Code (Text):
./gradlew clean test build
 
The finished plugin is written to `build/libs/TrimReroller-1.6.0.jar`.

Manual Test Checklist


Made by crown7367 on Discord.

In-game previews
Reroll Inventory GUI
Optional inventory-based reroll presentation with a scrolling carousel and selected-trim reveal.
reroll-gui.png

Trim Rarity Guide
The /trims guide showing all supported templates and configurable rarity groups.
trim-rarities.png

Default Crafting Recipe
The built-in reroller recipe. Shape and ingredients can be changed in config.yml.
crafting-recipe.png

Trim Reroller Item
The protected single-use reroller item with configurable name, lore, material, and glint.
reroller-item.png


World Reroll Animation
The configurable in-world trim reroll animation with particles, display entities, boss bar, and title reveal.
world-animation-spigot.jpg

TrimReroller is a free Minecraft Java mod. Compatible with Minecraft 1.21. Downloaded 3 times (via Spigot). Download it and open it directly in the game.

Explore more