Build the Natural Disasters Fabric 26.3 mod in this project. First inspect the existing source and follow its current architecture; implement the complete feature in the appropriate existing/new classes and register everything with the mod initializer. User requirements: disasters start when players place designated trigger blocks, and server commands let admins edit which blocks trigger which disasters. Make the disasters numerous, powerful, and difficult to survive. Include at least tornado, earthquake, flood, meteor shower, wildfire, blizzard, and sinkhole (if feasible, add tsunami). Give each a distinct destructive/survival effect, while bounding work per tick and area so effects cannot freeze the server. Do not trigger on natural/worldgen block changes; respond only to player placement. Provide a configurable admin command tree with permissions, help, list, bind/assign (disaster + block), unbind/remove, and settings for disaster strength/radius/duration/cooldown as appropriate; validate arguments and provide useful feedback. Prefer a registered custom trigger block and/or configurable vanilla-block bindings, but ensure trigger blocks are ordinary placeable blocks and all bindings are editable with commands. Defaults should make multiple clearly identifiable trigger blocks map to different disasters. Ensure settings/bindings persist across server restarts using suitable server/world saved data or configuration; avoid client-only code in common server paths. Handle command registration in the correct Fabric 26.3 API, safely schedule ongoing disasters on server ticks, and stop/clean up at duration/end or world unload. Aim for clear player/admin feedback and practical survival warnings. Add brief in-game command usage/help and update README/config documentation if present. Do not ask the user follow-up questions; choose reasonable defaults and finish the implementation.

Kodari AI
KodariSep 29 at 11:23 pm 5
CataclysmForge
CataclysmForge is a Fabric 26.3 mod that introduces catastrophic natural disasters triggered by player-placed blocks. Admins use a command tree to bind specific blocks to disasters like tornadoes, earthquakes, floods, meteor showers, wildfires, blizzards, and sinkholes. Each disaster has unique destructive effects with per-tick work limits to prevent server lag. Settings for strength, radius, duration, and cooldown are configurable via commands and persist across restarts. The mod provides clear player warnings and admin feedback, ensuring survival is challenging yet fair.
  1. Set up the Fabric 26.3 project and register a placeable trigger block.

  2. Add editable, persistent disaster bindings and admin commands.

  3. Implement seven bounded, timed disasters with placement-only triggers, warnings, cleanup, and help/docs.

Built the Natural Disasters Fabric 26.3 mod from scratch.

  • Added eight disasters: tornado, earthquake, flood, meteor shower, wildfire, blizzard, sinkhole, and tsunami. Successful server-side player block placements trigger them; worldgen and other block changes do not.

  • Registered a placeable naturaldisasters:disaster_trigger block and added default bindings for it and recognizable vanilla blocks. Admins can manage bindings and settings with /disasters help, /disasters list, /disasters bind <disaster> <namespace:block>, /disasters unbind <namespace:block>, and /disasters settings <disaster> <strength> <radius> <duration> <cooldown>.

  • Bindings and settings persist in config/naturaldisasters.properties. Effects have bounded block work, warn players, and stop at their configured duration; active events and cooldowns are cleared on world unload or server stop.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
settings.gradle
Code
17 834
src/main/java/com/kodari/naturaldisasters/NaturalDisasters.java
package com.kodari.naturaldisasters;

import com.kodari.naturaldisasters.block.TriggerBlock;
import com.kodari.naturaldisasters.command.DisasterCommands;
import com.kodari.naturaldisasters.disaster.DisasterConfig;
import com.kodari.naturaldisasters.disaster.DisasterRuntime;
import net.fabricmc.api.ModInitializer;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public final class NaturalDisasters implements ModInitializer {
	public static final String MOD_ID = "naturaldisasters";
	public static final Logger LOGGER = LoggerFactory.getLogger(MOD_ID);

	@Override
	public void onInitialize() {
		TriggerBlock.initialize();
		DisasterConfig.load();
		DisasterRuntime.initialize();
		DisasterCommands.initialize();
	}
}