promotional bannermobile promotional banner

Persistent Spawner Reset

Automatically restores broken mob spawners after a configurable delay, preserving their original data and keeping restoration persistent across server restarts.

Persistent Spawner Reset

Persistent Spawner Reset is a KubeJS server script for Minecraft 1.20.1 that automatically restores broken mob spawners after a configurable delay.

The script preserves the original spawner data, temporarily keeps the required chunk loaded, and persists pending restorations across server restarts and world reloads.

Features

  • Automatic Spawner Restoration — Broken mob spawners automatically return after a configurable amount of time.
  • Original Spawner Data Preservation — The original spawner NBT is preserved, including the entity assigned to the spawner and its configuration.
  • Persistent Restorations — Pending spawners are saved and recovered after server restarts or world reloads.
  • Remaining Time Preservation — The restoration countdown continues from the remaining time after the server or world is loaded again.
  • Automatic Chunk Loading — The affected chunk is temporarily kept loaded while a spawner is waiting to be restored.
  • Automatic Chunk Cleanup — The forced chunk is released when all pending spawners inside it have been restored.
  • Multiple Spawner Support — Multiple broken spawners can be tracked simultaneously, including multiple spawners inside the same chunk.
  • Forced Restoration — When the timer expires, the original spawner is restored even if another block has been placed in its original position.
  • Dimension Support — Spawners are tracked together with their dimension and coordinates.

Configuration

The restoration delay can be changed directly at the beginning of the script.

By default:

3 minutes = 3600 ticks

Minecraft runs at 20 ticks per second, so the value can easily be adjusted to use a different restoration time.

Installation

  1. Install KubeJS for Minecraft.
  2. Download the Persistent Spawner Reset ZIP file.
  3. Extract the downloaded ZIP file.
  4. Move spawner-reset.js to:

kubejs/server_scripts/

  1. Restart the server or world.

The script is intended to run on the server side.

Updating

When updating to a newer version, replace the existing spawner-reset.js file inside kubejs/server_scripts/ with the new version and restart the server.

Requirements

  • Minecraft: 1.20.1
  • Mod Loader: Fabric
  • Java: 17
  • KubeJS — Required

Notes

This script is designed for worlds and servers where mob spawners should act as renewable structures instead of being permanently destroyed.

Pending restorations are stored persistently, preventing a server restart or world reload from permanently removing a spawner that was already scheduled to return.

Credits

Created by zclashtm.

Persistent Spawner Reset Team

profile avatar
Owner
  • 4
    Followers
  • 20
    Projects
  • 2.8K
    Downloads

More from zClashView all

  • MCA Equipment Compat project image

    MCA Equipment Compat

    Adds advanced equipment management, Trinkets, Accessories, and mod compatibility to adult MCA Reborn villagers.

    • 528
    • October 28, 2026
  • Adventurer's Stats project image

    Adventurer's Stats

    A complete RPG stats and progression system for Minecraft 1.20.1 Fabric, featuring customizable attributes, XP progression, Attribute Points, and detailed attribute breakdowns.

    • 83
    • October 20, 2026
  • Coastal Waves Fabric Port project image

    Coastal Waves Fabric Port

    An unofficial Fabric 1.20.1 port of Coastal Waves that adds animated coastal waves, sounds, interactions, and bioluminescence.

    • 623
    • October 8, 2026
  • Adventurer's Titles project image

    Adventurer's Titles

    Adds a progression-based title system with unlockable titles, achievements, attributes, chat titles, and in-world title displays.

    • 54
    • October 8, 2026
  • MCA Equipment Compat project image

    MCA Equipment Compat

    Adds advanced equipment management, Trinkets, Accessories, and mod compatibility to adult MCA Reborn villagers.

    • 528
    • October 28, 2026
  • Adventurer's Stats project image

    Adventurer's Stats

    A complete RPG stats and progression system for Minecraft 1.20.1 Fabric, featuring customizable attributes, XP progression, Attribute Points, and detailed attribute breakdowns.

    • 83
    • October 20, 2026
  • Coastal Waves Fabric Port project image

    Coastal Waves Fabric Port

    An unofficial Fabric 1.20.1 port of Coastal Waves that adds animated coastal waves, sounds, interactions, and bioluminescence.

    • 623
    • October 8, 2026
  • Adventurer's Titles project image

    Adventurer's Titles

    Adds a progression-based title system with unlockable titles, achievements, attributes, chat titles, and in-world title displays.

    • 54
    • October 8, 2026