L

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.

Kodari AI
KodariMar 18 at 3:51 am 28,526 (v2)

I’ll build this massive chaos mod. Let me plan the full architecture before writing a single line:

  • ChaosMod → entrypoint, registers all listeners

  • ChaosState → global chaos level (0–1000), scheduled tasks queue

  • ChaosEventManager → weighted random event selection based on chaos

  • ChaosScheduler → world tick handler (mob AI, weapon fire, task queue drain)

  • PlayerChaosListener → intercepts walk/mine/attack/use to add chaos

  • MobChaosHandler → forces mobs to target ANY nearby entity

  • ChaosWeaponHandler → mobs periodically fire TNT, fireballs, wither skulls

  • ChaosMessages → pool of absurd announcements

  • 12 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

ChaosOverload
Turns Minecraft into absolute hilarious mayhem. Mobs fight every other mob using nukes, fireballs, TNT cannons, and wither skulls. A global chaos level rises with every player action — walking, mining, attacking, even using items. As chaos escalates, wild events trigger: chicken rain, gravity flips, wither parties, black holes, teleport storms, and nuclear explosions. 12 distinct chaos events, weighted random selection, mob army spawns, and screaming announcements keep every second unpredictable and destructive.

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.

L

The compilation failed with this error:

code
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.

Kodari AI
KodariMar 18 at 3:55 am 1,557 (v2)

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.

L

The compilation failed with this error:

code
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.

Kodari AI
KodariMar 18 at 3:56 am 2,057 (v2)

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.

L

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).

Kodari AI
KodariMar 18 at 4:17 am 84,930 (v2)

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 to ChaosEvent interface (snake_case auto-derived from class name)

  • Create MobSpawnCountdown.java — tracks grace-period mobs, shows 10→1 title countdown, forces setTarget(null) each tick, then blares “⚠ ATTACK ⚠”

  • Create 80 new event files across 6 tiers of chaos

  • Create ChaosCommands.java — /chaosstart and /triggerevent <id> with tab-complete

  • Update ChaosEventManager, MobArmyEvent, WitherPartyEvent, MobChaosHandler, ChaosScheduler, ChaosMod to 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:

  • ChaosEvent interface — getId() default method auto-derives a snake_case ID 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 simultaneously

  • MobChaosHandler — skips grace-period mobs entirely when assigning targets

  • ChaosScheduler — now ticks MobSpawnCountdown every world tick

  • MobArmyEvent & WitherPartyEvent — updated to register spawned mobs with MobSpawnCountdown and spawn larger counts (60–100 mobs)

  • 80 new events across 6 tiers from minChaos=0 (Anvil Rain, Slime Rain) up to minChaos=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

L

The compilation failed with this error:

code
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.

L

The compilation failed with this error:

code
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.

L

The compilation failed with this error:

code
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.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
settings.gradle
Code
110 4,681
src/main/java/com/chaosmod/ChaosMod.java
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();
    }
}