D

a end apocalypse mod. When you do the command phase1, it'll spread endstone in a 100 block radius around all nether portals that players are within 100 blocks of the portal. When you do the command phase2 it spawns 20 enderman within a 100 block radius of the portal if a player is within 100 blocks of it. When you do the command phase3, it spawns 50 enderman and 30 endermites within 50 blocks of the portal if a player is within 100 blocks of the portal. if you do the command phase4, it will spawn 20 enderman, and 10 endermites every 5 blocks in a radius of 30 blocks around the player

Kodari AI
KodariJan 11 at 7:21 am 5,416 (v2)

I’ll create an End Apocalypse plugin with 4 progressive invasion phases.

EndApocalypse
A progressive apocalypse plugin where the End dimension invades the Overworld through nether portals. Features 4 escalating phases: Phase 1 spreads endstone around active portals, Phase 2 spawns initial enderman waves, Phase 3 intensifies with more enderman and endermites, and Phase 4 creates a massive swarm around all nearby players. Each phase triggers only near portals with players in range.

Project complete! The EndApocalypse plugin features:

  • Phase 1: Spreads endstone corruption (5% chance per block) in 100-block radius around active portals

  • Phase 2: Spawns 20 enderman randomly within 100 blocks of each portal

  • Phase 3: Spawns 50 enderman + 30 endermites within 50 blocks of portals

  • Phase 4: Spawns 20 enderman + 10 endermites in rings at 5, 10, 15, 20, 25, 30 block radii around every online player

All phases only affect portals with players within 100 blocks. Portal detection searches in 5-block increments for performance.

D

also make it so when the endstone spreads it doesn't break the end portal

Kodari AI
KodariJan 11 at 7:24 am 6,279 (v2)

I’ll read the existing code to see how the end stone spreading works and then modify it to protect end portals.

I can see the spreadEndstone method currently protects BEDROCK and BARRIER blocks. I’ll add END_PORTAL and END_PORTAL_FRAME to the protection list.

Modified the spreadEndstone method to protect END_PORTAL and END_PORTAL_FRAME blocks from being converted to end stone.

D

instead of the endstone having have chance to corrupt the block make it so all blocks in the 100 blocks radius are replaced with endstone

Kodari AI
KodariJan 11 at 7:31 am 6,277 (v2)

I’ll read the existing code to understand the current corruption logic and modify it to replace all blocks within 100 blocks radius with endstone.

I’ll modify the spreadEndstone method to replace ALL blocks within the 100 block radius instead of having a random chance.

Modified the spreadEndstone method to replace ALL solid blocks within the 100 block radius with endstone (removed the random.nextDouble() < 0.05 chance check). Now every solid block except bedrock, barriers, and end portal blocks will be converted to endstone.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
manifest.kod
Code
5 339
src/main/java/com/endapocalypse/EndApocalypse.java
package com.endapocalypse;

import com.endapocalypse.commands.PhaseCommand;
import org.bukkit.plugin.java.JavaPlugin;

public class EndApocalypse extends JavaPlugin {
    
    @Override
    public void onEnable() {
        PhaseCommand phaseCommand = new PhaseCommand(this);
        
        getCommand("phase1").setExecutor(phaseCommand);
        getCommand("phase2").setExecutor(phaseCommand);
        getCommand("phase3").setExecutor(phaseCommand);
        getCommand("phase4").setExecutor(phaseCommand);
        
        getLogger().info("EndApocalypse has been enabled!");
    }
    
    @Override
    public void onDisable() {
        getLogger().info("EndApocalypse has been disabled!");
    }
}