InfiniteAnvils v2.0.0
for Paper 1.21.1
Have public anvils at spawn that players keep breaking? InfiniteAnvils lets you mark any anvil as "infinite" — it automatically resets to undamaged after every use. No more replacing anvils every day.
Features
- Toggle any anvil infinite — look at an anvil and run /iatoggle
- Auto-resets after use — CHIPPED and DAMAGED anvils instantly restore to undamaged ANVIL
- Preserves facing direction — north/south/east/west orientation stays intact
- Persistence — tracked blocks survive server restarts
- Clean removal — breaking a tracked block automatically removes it from tracking
Commands [table] [tr][th]Command[/th][th]Permission[/th][th]Description[/th][/tr] [tr][td]/iatoggle[/td][td]ia.toggle[/td][td]Toggle whether the anvil you're looking at is infinite[/td][/tr] [tr][td]/iaview[/td][td]ia.view[/td][td]Check if the anvil you're looking at is infinite[/td][/tr] [/table] Both permissions default to op. How It Works When a tracked anvil is used and degrades to CHIPPED_ANVIL or DAMAGED_ANVIL, a 1-tick delayed task resets it back to undamaged ANVIL while preserving its facing direction via the Directional interface. No NMS, no reflection — pure Paper API. Installation
- Download the jar
- Drop it into your plugins/ folder
- Restart your server
Links
Originally created for Bukkit 1.6.2 in 2013, rewritten for Paper 1.21.1.