dae2r3daigro

can you make breeze spawners reload after 15 seconds after its done spawning all? make it a seperate plugin

Kodari AI
KodariAug 23 at 3:25 am 1
BreezeSpawnerReload
A standalone Minecraft plugin that manages Breeze mob spawners by automatically reloading them 15 seconds after all Breeze mobs have been spawned and killed. The plugin tracks spawner activity, detects when all spawned Breeze entities are eliminated, and triggers a cooldown-based respawn cycle. It includes configurable spawn intervals, mob count limits, and world-specific settings. The plugin integrates with Bukkit/Spigot APIs to monitor spawner blocks, entity death events, and chunk loading states. It provides commands for administrators to manually reset spawners, view active spawner status, and adjust reload timings. The plugin ensures efficient resource usage by only tracking spawners that have been activated and automatically cleans up inactive spawner data. It also supports per-spawner configuration through metadata and offers a simple YAML configuration file for global settings.
  1. Create a standalone Paper plugin project for Minecraft 1.21.4.

  2. Track loaded trial spawners that have spawned breezes, detect their completed cooldown transition, and clear the cooldown 15 seconds later.

  3. Add lifecycle/event wiring and chunk/block cleanup so the tracker stays accurate.

Created a standalone Paper plugin: BreezeSpawnerReload.

  • Detects trial spawners that have spawned Breezes.

  • Waits until the spawning phase finishes and the spawner enters cooldown.

  • Clears the cooldown after 15 seconds.

  • Tracks existing loaded chunks, newly loaded chunks, placed spawners, and removed spawners.

  • Targets Paper 1.21.4.

dae2r3daigro

for 1.21.11

Kodari AI
KodariAug 23 at 3:26 am 1
  1. Update the standalone plugin’s build target and metadata to Minecraft/Paper 1.21.11.

  2. Adjust any version-sensitive API usage so the Breeze spawner reload behavior remains compatible.

Updated BreezeSpawnerReload for Minecraft/Paper 1.21.11:

  • Paper API: 1.21.11-R0.1-SNAPSHOT

  • Plugin API version: 1.21.11

  • Existing 15-second Breeze spawner reload behavior remains unchanged.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
5 268
src/main/java/com/kodari/breezespawnerreload/BreezeSpawnerReloadPlugin.java
package com.kodari.breezespawnerreload;

import org.bukkit.plugin.java.JavaPlugin;

public final class BreezeSpawnerReloadPlugin extends JavaPlugin {

    private BreezeSpawnerManager spawnerManager;

    @Override
    public void onEnable() {
        this.spawnerManager = new BreezeSpawnerManager(this);
        this.spawnerManager.start();
    }

    @Override
    public void onDisable() {
        if (spawnerManager != null) {
            spawnerManager.stop();
        }
    }
}