What’s New
Spawner Collector Pickaxe
A brand new tool has been added — Spawner Collector!
This unique pickaxe lets you mine mob spawners and collect them directly into your inventory.
 
Mob Type Preservation
When you mine a spawner, its mob type is now saved inside the dropped item.
When placing the spawner again, the original mob type is automatically restored — no more empty spawners!
 
⏳ Limited Durability (2 Uses)
To balance gameplay, the Spawner Collector breaks after mining two spawners.
The usage count is stored using PDC (PersistentDataContainer), ensuring full reliability.
 
Full Compatibility with 1.16.5
 
- 
No use of getHand() (fully compatible with Spigot/Paper 1.16.5). 
- 
Uses safe NamespacedKey instances tied to the plugin instance. 
- 
Recipes and data storage handled via Bukkit’s PersistentData API. 
Safer Item Checks
Spawner Collector is identified by internal PDC markers,
with a fallback name check (supporting RGB and gradient colors).
 
Better Logging
Console messages now clearly indicate when the Spawner Collector recipe is added or removed.
 
⚒️ Crafting Recipe
[code=YAML][ NETHERITE_BLOCK ][ NETHER_STAR       ][ NETHERITE_BLOCK ]
[       —         ][ NETHERITE_PICKAXE ][       —         ]
[       —         ][ NETHERITE_INGOT   ][       —         ]
[/code]
✅ Accepts any Netherite Pickaxe
✅ Comes pre-enchanted with Silk Touch & Unbreaking III
 
⚙️ Configuration
New config key (supports RGB & gradient colors):
[code=YAML]items:
  spawner_collector: '&#FF3131:&#E5FF00Spawner Collector'
[/code]
(Optional parameters like max_uses and custom spawner name can be added later.)
 
Additional Info
- 
No commands or permissions required (a permission node can be added if needed). 
- 
Fully compatible with Spigot/Paper 1.16.5 
- 
Restart the server after updating (do not use /reload), because the recipe registers in onEnable().