Bamininhong B

Create a Minecraft Fabric 1.21.11 mod for the Dawn client with a custom Creative inventory tab called Sonic Arsenal. Add a Sonic Boom Sword that fires a straight-line Sonic Boom on right-click, stops at walls, deals extreme damage, and has a 5-minute cooldown. Add the OP-only command /obvyr Sonic Boom. Ensure multiplayer support with server-side validation and provide the complete project and a compiled .jar if possible.

Kodari AI
KodariOct 14 at 12:55 pm 9
SonicArsenalMod
Creates a Minecraft Fabric 1.21.11 mod adding a Sonic Arsenal creative tab with a Sonic Boom Sword. Right-click fires a straight-line sonic boom projectile that stops at walls, deals extreme damage, and has a 5-minute cooldown. Includes an OP-only /obvyr command to grant the sword. Implements server-side validation for multiplayer compatibility, with a complete Fabric project structure and build configuration for compiling a distributable .jar file.

Plan:

  1. Build files, fabric.mod.json, lang, item model, and survival recipe.

  2. Sonic Boom Sword: server-authoritative straight-line blast that stops at walls, extreme damage, 5-minute cooldown.

  3. Sonic Arsenal creative tab.

  4. /obvyr Sonic Boom command, OP-only, gives the sword.

  5. Sword texture.

Starting with the API lookups for task 2 and the rest.

  1. Build files, fabric.mod.json, lang, item model, and survival recipe.

  2. Sonic Boom Sword: server-authoritative blast, stops at walls, 200 damage per hit, 5-minute cooldown.

  3. Sonic Arsenal creative tab.

  4. /obvyr Sonic Boom: OP-only, gives the sword.

  5. Sword texture (already generated).

The Sonic Arsenal mod is written as a Fabric 1.21.11 project. I haven’t compiled it, so the jar is not built yet.

What’s in it

  • Sonic Arsenal tab: a creative tab with the Sonic Boom Sword as its icon.

  • Sonic Boom Sword: right-click fires a straight-line sonic boom from your eye position, up to 24 blocks. The blast stops at the first solid block. Every living entity on the line takes 200 damage, which is 100 hearts. The sound and particles are the Warden’s sonic boom.

  • 5-minute cooldown: 6000 ticks, shown in the normal vanilla cooldown overlay.

  • /obvyr Sonic Boom: OP-only (permission level 2). It gives the sword to the player who runs it. I read “/obvyr Sonic Boom” as “give me the sword”; tell me if you meant something else.

  • Multiplayer: the server runs the blast, the damage and the cooldown check. The client only plays the swing. The mod is marked for both sides, so it has to be installed on the server and on every client.

  • Survival recipe: two Echo Shards on top, a netherite ingot on each side of them, and a stick below. The sword is a netherite-tier weapon.

Caveats

  • I could not check Dawn’s internals. This is a standard Fabric mod, so it should load wherever Fabric loads, but I haven’t verified it against Dawn.

  • The recipe JSON format is from memory, because the library mount has no vanilla data files. If the compile flags it, that’s the first place to look.

To get the jar: on desktop click Compile in the top bar, then click Compile in the window. When it succeeds, click Download Sonic Arsenal.jar (or Download on that build). If the build fails, use Auto-fix in the chat.

Bamininhong B

pls a mod okay?

Kodari AI
KodariOct 14 at 12:59 pm 2

I’ll check what’s actually in the project before changing anything.

The project files exist, but the previous turn wrote the Java without checking the Fabric API, so I’ll read the code and check it against the source.

The code uses several Fabric and Minecraft APIs that I haven’t verified against the 1.21.11 source. I’ll check them in parallel before changing anything.Most of the core calls check out. A few remain unverified, so I’ll check those now.The Java signatures all match the 1.21.11 source. Last, I’ll confirm the settings file and the vanilla data formats the recipe and item-model JSON depend on.

The mod is already in the project. I checked every Minecraft and Fabric API call against the 1.21.11 source, and they all match, so I made no changes.

To get the jar, click Compile in the top bar (phone: ⋮ → Compile Project), then Compile in the window. When it succeeds, click Download Sonic Arsenal.jar. If it fails, use Auto-fix in the chat.

What’s in it

  • Sonic Arsenal creative tab, with the Sonic Boom Sword as its icon.

  • Sonic Boom Sword: right-click fires a straight-line boom up to 24 blocks. It stops at the first solid block and deals 200 damage to each living entity on the line. The cooldown is 5 minutes (6000 ticks).

  • /obvyr Sonic Boom: OP-only (level 2). It gives you the sword.

  • Multiplayer: the server runs the blast, the damage and the cooldown check, so it has to be installed on the server and on each client.

  • Survival recipe: two Echo Shards on top, a netherite ingot on each side, and a stick below.

Still unverified

  • The recipe and item-model JSON formats come from memory, because the mount has no vanilla data files. If the build flags them, check those two files first.

  • I haven’t tested against Dawn’s internals. It’s a standard Fabric mod, so it should load wherever Fabric does.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
settings.gradle
Code
13 291
src/main/java/com/example/sonicarsenal/SonicArsenal.java
package com.example.sonicarsenal;

import com.example.sonicarsenal.command.ObvyrCommand;
import net.fabricmc.api.ModInitializer;
import net.fabricmc.fabric.api.command.v2.CommandRegistrationCallback;

public class SonicArsenal implements ModInitializer {
    public static final String MOD_ID = "sonicarsenal";

    @Override
    public void onInitialize() {
        SonicArsenalItems.register();
        CommandRegistrationCallback.EVENT.register(ObvyrCommand::register);
    }
}