I want to turn minecraft into a funny chaos. Mobs will fight all others mobs with crazy techniques and weapons (like nuke, etc...). The can summon events. The most little thing you do (like mining a block, or even walking) can summon an event, or just add or increase chaos. I want it destructive, very chaotic and most of all... very funny.
I’ll build this massive chaos mod. Let me plan the full architecture before writing a single line:
ChaosMod→ entrypoint, registers all listenersChaosState→ global chaos level (0–1000), scheduled tasks queueChaosEventManager→ weighted random event selection based on chaosChaosScheduler→ world tick handler (mob AI, weapon fire, task queue drain)PlayerChaosListener→ intercepts walk/mine/attack/use to add chaosMobChaosHandler→ forces mobs to target ANY nearby entityChaosWeaponHandler→ mobs periodically fire TNT, fireballs, wither skullsChaosMessages→ pool of absurd announcements12 chaos events: Nuke, ExplosionRain, MobArmy, LightningStorm, ChickenRain, FireworkFestival, TntCannon, WitherParty, BlackHole, GravityFlip, TeleportParty, ItemRain
Mixins: player death triggers mega-chaos, living entity damage scaled by chaos level
This mod delivers everything — here’s a summary of what it does:
Chaos escalation: Every player action adds to the global chaos meter (0–1000). Walking +1/5s, mining +3, attacking +5, dying +80. The meter slowly decays over time to keep it dynamic.
12 chaos events (triggered randomly, probability scales with chaos level):
Event | Min Chaos | Effect |
|---|---|---|
🐔 Chicken Rain | 0 | 50 chickens fall from the sky |
⚡ Lightning Storm | 50 | 30 lightning strikes scatter around you |
🎆 Firework Festival | 20 | 30 colorful fireworks explode everywhere |
💣 TNT Barrage | 80 | 18 TNT entities rain down with fuses |
💥 Explosion Rain | 150 | 20 explosions fall from the sky |
⚔ Mob Army | 100 | 25–45 random hostile mobs spawn on you |
🎁 Item Rain | 30 | TNT, swords, lava buckets, dragon eggs fall |
🌀 Gravity Flip | 200 | Everything within 35 blocks launches upward |
🌀 Teleport Party | 180 | All players randomly teleported up to 200 blocks |
🕳 Black Hole | 250 | Pulls all entities inward, then massive explosion |
💀 Wither Party | 300 | 2–5 Withers spawn around you |
☢ Nuclear Strike | 400 | Cascading nukes, radius-30 final blast |
Mixins: Player death triggers a forced mega-event (nuke + withers + explosion rain). All damage dealt is multiplied up to 3.5× at max chaos.
Mob AI override: Every 40 ticks, mobs forcibly retarget any nearby living entity regardless of type, so they fight each other constantly. At chaos 200+, random mobs get Strength 5 + Speed 3 boosts.
Chaos weapons: Mobs periodically launch TNT, ghast fireballs, wither skulls, and TNT salvos at their targets. Fire rate doubles as chaos rises.
The compilation failed with this error:
Compilation failed with 2 error(s):
ERROR in src/main/java/com/chaosmod/events/WitherPartyEvent.java at line 4: package net.minecraft.entity.boss.wither does not exist
import net.minecraft.entity.boss.wither.WitherEntity;
^
ERROR in src/main/java/com/chaosmod/events/WitherPartyEvent.java at line 4: package net.minecraft.entity.boss.wither does not exist
import net.minecraft.entity.boss.wither.WitherEntity;
^
=== COMPILATION ERROR ANALYSIS ===
FILES TO INVESTIGATE:
- src/main/java/com/chaosmod/events/WitherPartyEvent.java
- src/main/java/com/chaosmod/events/WitherPartyEvent.java
Please fix this error by creating a new artifact with the corrected code.
The WitherEntity in 1.20.4 yarn mappings lives at net.minecraft.entity.boss.WitherEntity (no wither subpackage). The fix is to correct the import and cast the EntityType.WITHER.create() result properly.
Fixed the import from net.minecraft.entity.boss.wither.WitherEntity to net.minecraft.entity.boss.WitherEntity, which is the correct package path in the 1.20.4 yarn mappings.
The compilation failed with this error:
Compilation failed with 2 error(s):
ERROR in src/main/java/com/chaosmod/ChaosWeaponHandler.java at line 73: no suitable constructor found for FireballEntity(ServerWorld,MobEntity,Vec3d,int)
FireballEntity fireball = new FireballEntity(world, mob, dir, 3);
^
ERROR in src/main/java/com/chaosmod/ChaosWeaponHandler.java at line 73: no suitable constructor found for FireballEntity(ServerWorld,MobEntity,Vec3d,int)
FireballEntity fireball = new FireballEntity(world, mob, dir, 3);
^
=== COMPILATION ERROR ANALYSIS ===
FILES TO INVESTIGATE:
- src/main/java/com/chaosmod/ChaosWeaponHandler.java
- src/main/java/com/chaosmod/ChaosWeaponHandler.java
Please fix this error by creating a new artifact with the corrected code.
The FireballEntity constructor in 1.20.4 takes (World, LivingEntity, double dirX, double dirY, double dirZ, int power) — not a Vec3d for direction.
Replaced the Vec3d dir argument with its three component doubles dir.x, dir.y, dir.z to match the correct FireballEntity constructor signature for 1.20.4.
add 80 more events, a start command and a "/triggerevent" command to trigger a specific event (all of them can be triggered). When spawning, a counter of 10 seconds will appear before the mobs start attacking the player and each others (make mobs spawn more too pls).
Let me read all the existing files first.
Now I have a full picture of the project. Let me plan carefully before writing:
Add
getId()default toChaosEventinterface (snake_case auto-derived from class name)Create
MobSpawnCountdown.java— tracks grace-period mobs, shows 10→1 title countdown, forcessetTarget(null)each tick, then blares “⚠ ATTACK ⚠”Create 80 new event files across 6 tiers of chaos
Create
ChaosCommands.java—/chaosstartand/triggerevent <id>with tab-completeUpdate
ChaosEventManager,MobArmyEvent,WitherPartyEvent,MobChaosHandler,ChaosScheduler,ChaosModto wire everything together
Now the 80 new event files:
Now the commands:
Now update ChaosEventManager to register all 80 new events and add the ID lookup map:
Finally, update ChaosMod to register commands:
Here’s a summary of everything added and changed:
ChaosEventinterface —getId()default method auto-derives asnake_caseID from the class name (e.g.ZombieApocalypseEvent→zombie_apocalypse)MobSpawnCountdown— a new system that tracks every event-spawned mob. For 10 seconds after any mob-spawning event fires: a large animated title counts down 10→9→…→1 (green→yellow→red),setTarget(null)is forced on all grace mobs every tick so they stand still, then a giant red⚠ ATTACK! ⚠title blares and all mobs become hostile simultaneouslyMobChaosHandler— skips grace-period mobs entirely when assigning targetsChaosScheduler— now ticksMobSpawnCountdownevery world tickMobArmyEvent&WitherPartyEvent— updated to register spawned mobs withMobSpawnCountdownand spawn larger counts (60–100 mobs)80 new events across 6 tiers from
minChaos=0(Anvil Rain, Slime Rain) up tominChaos=900(Ultimate Chaos, which chains 10 events sequentially)/chaosstart(op-only) — broadcasts a chaos-begin announcement, boosts chaos by 100, and fires a random starter event/triggerevent <id>(op-only) — triggers any event by ID with full tab-completion populated from all 92 registered events
The compilation failed with this error:
Compilation failed with 2 error(s):
ERROR in src/main/java/com/chaosmod/events/SkeletonHorseArmyEvent.java at line 7: cannot find symbol
import net.minecraft.entity.passive.SkeletonHorseEntity;
^
symbol: class SkeletonHorseEntity
location: package net.minecraft.entity.passive
ERROR in src/main/java/com/chaosmod/events/SkeletonHorseArmyEvent.java at line 7: cannot find symbol
import net.minecraft.entity.passive.SkeletonHorseEntity;
^
symbol: class SkeletonHorseEntity
location: package net.minecraft.entity.passive
=== COMPILATION ERROR ANALYSIS ===
MISSING CLASSES:
- SkeletonHorseEntity
ACTION: Create these classes or check imports
FILES TO INVESTIGATE:
- src/main/java/com/chaosmod/events/SkeletonHorseArmyEvent.java
- src/main/java/com/chaosmod/events/SkeletonHorseArmyEvent.java
Please fix this error by creating a new artifact with the corrected code.
The compilation failed with this error:
Compilation failed with 2 error(s):
ERROR in src/main/java/com/chaosmod/events/SkeletonHorseArmyEvent.java at line 7: cannot find symbol
import net.minecraft.entity.passive.SkeletonHorseEntity;
^
symbol: class SkeletonHorseEntity
location: package net.minecraft.entity.passive
ERROR in src/main/java/com/chaosmod/events/SkeletonHorseArmyEvent.java at line 7: cannot find symbol
import net.minecraft.entity.passive.SkeletonHorseEntity;
^
symbol: class SkeletonHorseEntity
location: package net.minecraft.entity.passive
=== COMPILATION ERROR ANALYSIS ===
MISSING CLASSES:
- SkeletonHorseEntity
ACTION: Create these classes or check imports
FILES TO INVESTIGATE:
- src/main/java/com/chaosmod/events/SkeletonHorseArmyEvent.java
- src/main/java/com/chaosmod/events/SkeletonHorseArmyEvent.java
Please fix this error by creating a new artifact with the corrected code.
The compilation failed with this error:
Compilation failed with 2 error(s):
ERROR in src/main/java/com/chaosmod/events/SkeletonHorseArmyEvent.java at line 7: cannot find symbol
import net.minecraft.entity.passive.SkeletonHorseEntity;
^
symbol: class SkeletonHorseEntity
location: package net.minecraft.entity.passive
ERROR in src/main/java/com/chaosmod/events/SkeletonHorseArmyEvent.java at line 7: cannot find symbol
import net.minecraft.entity.passive.SkeletonHorseEntity;
^
symbol: class SkeletonHorseEntity
location: package net.minecraft.entity.passive
=== COMPILATION ERROR ANALYSIS ===
MISSING CLASSES:
- SkeletonHorseEntity
ACTION: Create these classes or check imports
FILES TO INVESTIGATE:
- src/main/java/com/chaosmod/events/SkeletonHorseArmyEvent.java
- src/main/java/com/chaosmod/events/SkeletonHorseArmyEvent.java
Please fix this error by creating a new artifact with the corrected code.
package com.chaosmod;
import net.fabricmc.api.ModInitializer;
public class ChaosMod implements ModInitializer {
public static final String MOD_ID = "chaosmod";
@Override
public void onInitialize() {
ChaosEventManager.init();
PlayerChaosListener.register();
ChaosScheduler.register();
ChaosCommands.register();
}
}