promotional bannermobile promotional banner

Spawner-Recovery

A Minecraft Java Edition datapack that allows players to recover and reuse mob spawners with Silk Touch while preserving the original mob type.

πŸ”₯ Spawner Recovery

A Minecraft Java Edition datapack that allows players to recover and reuse mob spawners with Silk Touch while preserving the original mob type.


✨ Features

  • ⛏️ Recover mob spawners using Silk Touch
  • 🧟 Preserve the original mob type
  • πŸ”„ Automatically restore the spawner when placed
  • ♾️ Place multiple spawners without manually resetting anything
  • 🧩 Generic system supporting different mobs
  • πŸͺΆ No mods required
  • βš™οΈ Uses Minecraft's native datapack system

🎯 How it works

When a player breaks a mob spawner with Silk Touch, the datapack stores the mob type inside the recovered spawner.

When the spawner is placed again:

  1. The placement is detected.
  2. A raycast searches for the newly placed spawner.
  3. The stored mob type is read from custom_data.
  4. SpawnData is restored.
  5. SpawnPotentials is restored.
  6. The spawner is ready to spawn the original mob again.

The system is completely generic and does not require a separate function for each mob.


πŸ§ͺ Tested Mobs

The datapack has currently been tested successfully with:

  • πŸ”₯ Blaze
  • πŸ’€ Skeleton
  • 🧟 Zombie
  • πŸ•·οΈ Spider

Other mobs using standard mob spawners should work with the same system.


πŸ“¦ Installation

  1. Download the datapack from the Files section or the latest release.
  2. Place the datapack inside your world's datapacks folder.
  3. Start or reload the world.
  4. Run /reload.
  5. The datapack is ready to use.

The datapack does not require any mods.


πŸ› οΈ Usage

Obtain a mob spawner with Silk Touch.

Break the spawner normally with the Silk Touch tool.

Place the recovered spawner again.

The datapack automatically restores the original mob type.

No command is required between placements.


βš™οΈ Technical Details

The datapack uses:

  • minecraft:custom_data
  • SpawnData
  • SpawnPotentials
  • Advancements
  • Functions
  • Scoreboards
  • Raycasting

The mob identifier is read dynamically from:

minecraft:custom_data.spawner_mob

This allows the same functions to handle different mob types without hardcoding individual mobs.


πŸ“‹ Requirements

  • Minecraft Java Edition
  • Minecraft 26.2
  • No mods required

🚧 Development Status

🟒 Functional — v1.0.0

The core recovery and restoration system has been tested with multiple mob types and repeated spawner placement.


πŸ“œ License

See the repository for licensing information.


πŸ‘€ Author

Created by CpyBad.

View Spawner Recovery on GitHub →

The Spawner-Recovery Team

profile avatar
  • 1
    Projects
  • 6
    Downloads