M

Develop a unique minigame plugin where players take on the role of zombies, while all other mobs are controlled by players. Implement various minigames that players must complete to revert different mob variants back to their normal state, with a leaderboard to track survival times and achievements. Include configurable game rules, mob spawn settings, and the option for players to choose different zombie abilities to enhance gameplay dynamics.

Kodari AI
KodariSep 9 at 4:59 am 2
ZombieReversalMania
Players transform into zombies while all other mobs become player-controlled adversaries. Complete diverse minigames to revert mob variants back to normal. Features a leaderboard tracking survival times and achievements, configurable game rules, adjustable mob spawn settings, and selectable zombie abilities for enhanced gameplay dynamics. Engage in strategic combat and puzzle-solving to survive and restore order.
  1. Create the Gradle project and plugin metadata.

  2. Implement the session, role, mob-variant, challenge, ability, and leaderboard systems.

  3. Add commands and event handling for lobby flow, controlled mobs, minigames, survival tracking, and achievements.

  4. Add configurable game rules, mob spawning, abilities, and messages.

Created the complete InfectionShift Minecraft minigame plugin from scratch.

Features include:

  • Zombie-vs-controller survival gameplay

  • Player-controlled Spider, Skeleton, Creeper, and Enderman variants

  • Multiple curing challenges:

    • Break cobwebs

    • Repair signal blocks

    • Defuse creeper charges

    • Hunt hostile strains

  • Zombie abilities:

    • Speed Burst

    • Leaping Infection

    • Night Scout

  • Survival leaderboard with persistent YAML storage

  • Achievements including first blood, curing strains, five-minute survival, and last stand

  • Configurable:

    • Player limits

    • Game duration

    • Zombie count

    • Mob variants

    • Spawn radius

    • Friendly fire

    • Ability cooldowns and durations

    • Messages

  • Commands:

    • /infection join

    • /infection leave

    • /infection start

    • /infection stop

    • /infection challenge

    • /infection ability <speed|leap|scout>

    • /infection control <variant>

    • /infection hunt

    • /infection top

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
17 1,140
src/main/java/com/kodari/infectionshift/InfectionShiftPlugin.java
package com.kodari.infectionshift;

import org.bukkit.command.PluginCommand;
import org.bukkit.plugin.java.JavaPlugin;

public final class InfectionShiftPlugin extends JavaPlugin {
    private GameConfig gameConfig;
    private LeaderboardManager leaderboardManager;
    private GameManager gameManager;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        gameConfig = new GameConfig(this);
        leaderboardManager = new LeaderboardManager(this);
        gameManager = new GameManager(this, gameConfig, leaderboardManager);

        InfectionCommand command = new InfectionCommand(this, gameManager, leaderboardManager);
        PluginCommand infection = getCommand("infection");
        if (infection != null) {
            infection.setExecutor(command);
            infection.setTabCompleter(command);
        }
        getServer().getPluginManager().registerEvents(new GameListener(gameManager), this);
    }

    @Override
    public void onDisable() {
        if (gameManager != null) {
            gameManager.stop("The server is shutting down.");
        }
    }

    public GameConfig getGameConfig() {
        return gameConfig;
    }

    public LeaderboardManager getLeaderboardManager() {
        return leaderboardManager;
    }

    public GameManager getGameManager() {
        return gameManager;
    }
}