gmax-maker

Can you makea mod like valkryien warium

Kodari AI
KodariAug 16 at 10:06 pm 2
ValkyrienWarfare
A Minecraft Fabric mod for 1.21.1 that adds physics-based airship mechanics. Players construct ships from blocks, which become rigid physical entities with buoyancy, thrust, and rotation. Includes ship assembly tools, a helm for piloting, block-based propulsion systems, and collision handling. Ships persist as entities and can be disassembled back into blocks.

I’ll build a Fabric 1.21.11 starter mod for a Valkyrien-style ship system:

  1. Set up the Gradle/Fabric project and metadata.

  2. Add a server-side ship core with ship creation, piloting, movement, and disassembly commands.

  3. Add a simple client keybind for piloting.

  4. Add the required language and item-model resources.

Created a Fabric 1.21.11 Valkyrien-style airship prototype named Aerowarfare.

Features included:

  • /airship create [radius] — converts nearby blocks into a movable ship.

  • /airship pilot <id> — pilot an existing ship.

  • /airship disassemble [id] — restore the ship’s blocks.

  • /airship list — list active ships.

  • WASD flight controls.

  • Space to rise.

  • Left Shift to descend.

  • Server-authoritative movement with CustomPayload networking.

  • Collision checks against non-air blocks.

  • Automatic ship restoration when the server shuts down.

  • Correct Fabric 1.21.11 split client/common source sets and Yarn APIs.

This is a lightweight prototype rather than a full Valkyrien Warfare replacement. It currently skips block entities, ship persistence, rotation, physics forces, cannons, and advanced rendering.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
settings.gradle
Code
10 520
src/main/java/com/kodari/aerowarfare/AeroWarfare.java
package com.kodari.aerowarfare;

import com.kodari.aerowarfare.command.ShipCommands;
import com.kodari.aerowarfare.network.ShipControlPayload;
import com.kodari.aerowarfare.ship.ShipManager;
import net.fabricmc.api.ModInitializer;
import net.fabricmc.fabric.api.command.v2.CommandRegistrationCallback;
import net.fabricmc.fabric.api.event.lifecycle.v1.ServerLifecycleEvents;
import net.fabricmc.fabric.api.event.lifecycle.v1.ServerTickEvents;
import net.fabricmc.fabric.api.networking.v1.PayloadTypeRegistry;
import net.fabricmc.fabric.api.networking.v1.ServerPlayNetworking;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

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

    @Override
    public void onInitialize() {
        PayloadTypeRegistry.playC2S().register(ShipControlPayload.ID, ShipControlPayload.CODEC);
        ServerPlayNetworking.registerGlobalReceiver(ShipControlPayload.ID,
                (payload, context) -> ShipManager.setInput(context.player(), payload));

        CommandRegistrationCallback.EVENT.register((dispatcher, registryAccess, environment) ->
                ShipCommands.register(dispatcher));
        ServerTickEvents.END_SERVER_TICK.register(ShipManager::tick);
        ServerLifecycleEvents.SERVER_STOPPING.register(server -> ShipManager.restoreAll());

        LOGGER.info("Aerowarfare ship systems initialized");
    }
}