moon_roxks420

i wanna build a plugin for my server i wanna build a zomibe apoclypse

Kodari AI
KodariSep 27 at 2:46 am 6
ZombieApocalypse
ZombieApocalypse is a Minecraft plugin that transforms your server into a post-apocalyptic survival experience. It spawns waves of aggressive zombies that increase in difficulty and numbers over time, targeting players across the world. The plugin features configurable spawn rates, zombie health scaling, custom zombie types with unique abilities, and a day/night cycle where nighttime dramatically increases zombie activity. Players must scavenge, build defenses, and cooperate to survive endless hordes. Includes boss zombie encounters, infection mechanics that turn players into zombies, and a comprehensive configuration system for server owners to adjust difficulty, loot drops, and spawn locations. Perfect for creating intense survival gameplay on any server.

I’ll build a wave-based zombie event with start, stop, and status commands, configurable horde sizes, and XP rewards.

Created a wave-based zombie apocalypse plugin. An admin can run /apocalypse start to launch it in their world or /apocalypse stop to end it; anyone can use /apocalypse status.

Hordes grow each wave, survivors earn XP when a wave is cleared, and wave counts, spawn distances, and rewards are configurable in config.yml. Start and stop require the zombieapocalypse.admin permission.

What else should the apocalypse include—special zombies, barricades, or a way for players to join?

moon_roxks420

i would like to add wepons that are themed the same way and we need in game building recips for them all

Kodari AI
KodariSep 27 at 2:50 am 5
  • Add three scavenged-style melee weapons with distinct effects against zombies.

  • Give each weapon a crafting-table recipe and unlock it in players’ recipe books.

  • Register the recipes and combat effects when the plugin starts.

Added three craftable apocalypse weapons:

  • Scrap Machete: extra damage against zombies.

  • Nail Bat: knocks zombies back.

  • Bonebreaker Axe: heavy bonus damage against zombies.

Each has its own crafting-table recipe, automatically unlocked in players’ recipe books so they can see the ingredient layout in-game.

moon_roxks420

HOW ABOUT THIS CAN U HELP ME BUILD A WHOLE SERVER

Kodari AI
KodariSep 27 at 2:56 am 1

Yes — we can build the whole server around your zombie apocalypse plugin, one piece at a time. The weapons and crafting recipes are a starting point; next we could add a safe spawn, loot and scavenging, special zombies, protected player bases, and a clear progression system.

To shape the server: Java or Bedrock, how many players, and do you want a persistent survival world or timed apocalypse rounds? If you’re not sure, I’d start with a persistent survival world where nights get progressively more dangerous.

moon_roxks420

JAVA 10 ppl kinda like dayz

Kodari AI
KodariSep 27 at 2:58 am 11
  1. Make the survival world a persistent zombie threat while keeping wave events optional.

  2. Add thirst and infection that persist when players reconnect.

  3. Add refillable scavenging caches for food, medicine, and crafting supplies.

I built the first playable DayZ-style survival foundation for your 10-player Java server:

  • The configured world now has zombies during the day and heavier pressure at night. The existing wave event remains optional.

  • Players have persistent thirst and a chance of infection from zombie hits. Water bottles restore thirst; craftable antibiotics cure infection.

  • Admins can look at a single chest or barrel and use /apocalypse cache to turn it into a refillable scavenging cache. Cache refills add loot without deleting stored items.

For hosting, use Paper 1.20.4 with Java 17, set max-players=10, pvp=true, and difficulty=hard. Set survival.world in config.yml to your world’s name. This is a survival foundation, not yet a complete DayZ server.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
10 932
src/main/java/com/kodari/zombieapocalypse/ZombieApocalypsePlugin.java
package com.kodari.zombieapocalypse;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import org.bukkit.ChatColor;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.bukkit.command.PluginCommand;
import org.bukkit.command.TabCompleter;
import org.bukkit.entity.Player;
import org.bukkit.plugin.java.JavaPlugin;

public final class ZombieApocalypsePlugin extends JavaPlugin implements CommandExecutor, TabCompleter {
    private ApocalypseManager apocalypse;
    private WeaponManager weapons;
    private SurvivalWorldManager survival;
    private SurvivalNeedsManager needs;
    private ScavengeManager scavenging;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        apocalypse = new ApocalypseManager(this);
        getServer().getPluginManager().registerEvents(apocalypse, this);
        weapons = new WeaponManager(this);
        weapons.register();
        getServer().getPluginManager().registerEvents(weapons, this);
        survival = new SurvivalWorldManager(this);
        getServer().getPluginManager().registerEvents(survival, this);
        needs = new SurvivalNeedsManager(this, survival);
        needs.register();
        getServer().getPluginManager().registerEvents(needs, this);
        scavenging = new ScavengeManager(this, survival, needs);
        getServer().getPluginManager().registerEvents(scavenging, this);
        PluginCommand command = getCommand("apocalypse");
        if (command == null) {
            throw new IllegalStateException("Missing apocalypse command in plugin.yml");
        }
        command.setExecutor(this);
        command.setTabCompleter(this);
        getServer().getScheduler().runTaskTimer(this, () -> {
            apocalypse.tick();
            survival.tick();
            needs.tick();
        }, 20L, 20L);
    }

    @Override
    public void onDisable() {
        if (apocalypse != null) {
            apocalypse.stop(null);
        }
        if (weapons != null) {
            weapons.unregister();
        }
        if (needs != null) {
            needs.unregister();
        }
    }

    @Override
    public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
        if (args.length == 0) {
            sender.sendMessage(ChatColor.GOLD + "Zombie Apocalypse " + ChatColor.GRAY + "- /" + label + " <start|stop|status|cache>");
            return true;
        }

        switch (args[0].toLowerCase(java.util.Locale.ROOT)) {
            case "start":
                if (!sender.hasPermission("zombieapocalypse.admin")) {
                    sender.sendMessage(ChatColor.RED + "You don't have permission to start the apocalypse.");
                } else if (!(sender instanceof Player)) {
                    sender.sendMessage(ChatColor.RED + "A player must start the apocalypse to choose its world.");
                } else if (apocalypse.isActive()) {
                    sender.sendMessage(ChatColor.RED + "An apocalypse is already running.");
                } else if (!apocalypse.start((Player) sender)) {
                    sender.sendMessage(ChatColor.RED + "Could not start: no safe zombie spawn positions near players.");
                }
                return true;
            case "stop":
                if (!sender.hasPermission("zombieapocalypse.admin")) {
                    sender.sendMessage(ChatColor.RED + "You don't have permission to stop the apocalypse.");
                } else if (!apocalypse.isActive()) {
                    sender.sendMessage(ChatColor.RED + "No apocalypse is running.");
                } else {
                    apocalypse.stop(ChatColor.RED + "The apocalypse was stopped by " + sender.getName() + ".");
                }
                return true;
            case "status":
                sender.sendMessage(ChatColor.GRAY + "Persistent survival world: " + ChatColor.GOLD
                    + getConfig().getString("survival.world", "world"));
                if (sender instanceof Player && survival.isSurvivalWorld(((Player) sender).getWorld())) {
                    sender.sendMessage(needs.status((Player) sender));
                }
                if (!apocalypse.isActive()) {
                    sender.sendMessage(ChatColor.GRAY + "No wave event is running.");
                } else {
                    sender.sendMessage(ChatColor.GOLD + "Apocalypse in " + apocalypse.getWorldName()
                        + ChatColor.GRAY + " | Wave " + apocalypse.getWave() + "/" + apocalypse.getMaxWaves()
                        + " | Zombies remaining: " + apocalypse.getRemainingZombies());
                }
                return true;
            case "cache":
                if (!sender.hasPermission("zombieapocalypse.admin")) {
                    sender.sendMessage(ChatColor.RED + "You don't have permission to manage scavenging caches.");
                } else if (!(sender instanceof Player)) {
                    sender.sendMessage(ChatColor.RED + "A player must look at a chest or barrel to mark it.");
                } else {
                    scavenging.toggleCache((Player) sender);
                }
                return true;
            default:
                sender.sendMessage(ChatColor.RED + "Usage: /" + label + " <start|stop|status|cache>");
                return true;
        }
    }

    @Override
    public List<String> onTabComplete(CommandSender sender, Command command, String alias, String[] args) {
        if (args.length != 1) {
            return Collections.emptyList();
        }
        List<String> matches = new ArrayList<>();
        for (String option : new String[] {"start", "stop", "status", "cache"}) {
            if (!option.equals("status") && !sender.hasPermission("zombieapocalypse.admin")) {
                continue;
            }
            if (option.startsWith(args[0].toLowerCase(java.util.Locale.ROOT))) {
                matches.add(option);
            }
        }
        return matches;
    }
}