Netherite Anvils
PluginGPL-3.0-or-later

Netherite Anvils

Craft unbreakable Netherite Anvils which remove that annoying "Too Expensive" message, with permissions and configurable max repair cost.

47
Downloads
0
Followers
2 months ago
Updated
📦
1
Versions

📖About Netherite Anvils

Netherite Anvil

NOTE:
This is my first plugin, hence the limited version support. Feel free to submit any issues on the GitHub issues page

Minecraft Version: 1.21.11
API: Paper 1.21.11-R0.1-SNAPSHOT
Dependencies: PacketEvents

Netherite Anvil is a Paper Minecraft plugin that introduces a new, unbreakable Netherite Anvil with enhanced features, replacing the standard anvil mechanics.


Features

  • Unlimited Repair Cost:
    Removes the vanilla anvil level cap (39) and bypasses the "Too Expensive" message for items crafted with Netherite Anvils. We utlize some packet magic to allow vanilla clients to correctly render the levels above 39. If the repair cost exceeds the players level or the configured max repair cost, we fall back to vanilla behavior and display the "Too Expensive" message.

  • Unbreakable Anvils:
    Netherite Anvils never crack, chip, or break from usage, falling, or explosions.

  • Custom Crafting Recipe:
    Crafted using Netherite Blocks and Netherite Ingots instead of Iron. The recipe is fully configurable.

  • XP Cost Enforcement:
    Configurable max repair cost. Items above this threshold will display the standard "Too Expensive" message.

  • Permissions Support:
    Optional per-player permission checks for crafting and using Netherite Anvils. Can be toggled via config.

  • Admin Commands:

    • /netheriteanvil max — Display the current max repair level.
    • /netheriteanvil setmax <level> — Set a new max repair level (1–32767).
    • /netheriteanvil togglecrafting — Enable/disable permission checks for crafting.
    • /netheriteanvil toggleusing — Enable/disable permission checks for using anvils.
  • Persistent Tracking:
    All placed Netherite Anvils are tracked to maintain functionality across server restarts, even if moved or destroyed.

  • PacketEvents Integration:
    Utilizes PacketEvents to handle client-side XP level display correctly, bypassing the vanilla level cap while keeping XP tracking accurate.


Configuration (config.yml)

max-repair-cost: 500
permissions:
  check-crafting: true
  check-using: true

TO-DO's

  • Custom Anvil Name:
    The anvil GUI displays the title "Netherite Anvil" instead of the vanilla "Repair and Rename."
  • Configurable Crafting Recipe:
    Allow the crafting recipe to be configured. Currently the plugin just uses netherite blocks and ingot.
    crafting-recipe:
    enabled: true
    shape:
      - "BBB"
      - " N "
      - "NNN"
    ingredients:
      N: NETHERITE_INGOT
      B: NETHERITE_BLOCK