Rozye al Hakim
๐Ÿ“Ž 1 file 2,326 chars
๐Ÿ“„
pasted-code-1794384222848.txt
txt 32 lines
โ–ถ
Create a fully functional Minecraft Java mod for version 26.2 using Fabric. This mod adds an advanced customizable Uchiha/Naruto jutsu system with a custom GUI menu:

1. Jutsu Selection & Customization Menu (Keybind "Left Alt"):
- Pressing "Left Alt" opens a custom GUI menu.
- Inside the menu, players can freely assign any selected jutsu to Skill 1, Skill 2, Skill 3, or Skill 4 slots.
- Inside the menu, players can also fully customize their Susanoo's color to any color of their choice.

2. Skill Keybinds (Triggers selected jutsu assigned in the menu):
- Keybind "V": Skill 1
- Keybind "B": Skill 2
- Keybind "M": Skill 3
- Keybind ",": Skill 4

3. Available Jutsu List & Mechanics:
- Chidori: Lightning attack (Cooldown: 5 seconds).
- Chidori Senbon: Ranged lightning needles (Cooldown: 7 seconds).
- Amenotejikara: Instant position swap with targeted entity or block (No Cooldown).
- Shinra Tensei: Repels nearby entities and projectiles. Can be held to charge power up to max 10 power (adds +1 power per second held). Releasing it scales both shockwave force and cooldown (Base Cooldown: 3 seconds. If held for X seconds, Cooldown = 3 x X seconds).
- Chibaku Tensei: Creates a gravity-pulling sphere lifting blocks and entities (Cooldown: 15 seconds).
- Amaterasu: Shoots persistent black flames onto targets (No Cooldown).
- Enton: Kagutsuchi: Flame control attack (Cooldown: 5 seconds).
- Katon: Goukakyuu no Jutsu: Fireball Jutsu (Cooldown: 3 seconds).
- Katon: Ryuuka no Jutsu: Dragon Fire Jutsu (Cooldown: 3 seconds).
- Genjutsu: Completely stuns targeted mob (e.g., Zombies), locking their movement, attacks, and body orientation in place for 5 seconds.

4. Progressive Susanoo System (Keybind "I"):
- Press 1st time: Ribs / Ribcage Susanoo (grants basic resistance, uses chosen color).
- Press 2nd time: Skeleton Susanoo (grants higher defense, uses chosen color).
- Press 3rd time: Humanoid Susanoo (grants strength & defense, uses chosen color).
- Press 4th time: Complete / Armored Susanoo (massive protection, uses chosen color).
- Press 5th time: Perfect Susanoo (giant warrior entity, uses chosen color). Grants free creative flight, and pressing Sprint triggers continuous Elytra-like forward/upward boosting flight without fireworks.
- Pressing again deactivates Susanoo.
Kodari AI
KodariNov 11 at 8:31 am 16
UchihaJutsuSystem
Adds an advanced customizable Uchiha/Naruto jutsu system to Minecraft Fabric 26.2. Pressing Left Alt opens a custom GUI menu where players assign jutsu to four skill slots and customize Susanoo color. Skill keybinds V, B, M, and comma trigger assigned jutsu including Chidori, Chidori Senbon, Amenotejikara, Shinra Tensei with charge mechanics, Chibaku Tensei, Amaterasu, Enton Kagutsuchi, Katon fire jutsus, and Genjutsu stunning. A progressive Susanoo system activated by keybind I cycles through Ribcage, Skeleton, Humanoid, Complete, and Perfect forms, granting escalating defense and strength, with Perfect Susanoo providing creative flight and Elytra-like sprint boosting.
  1. Set up the Fabric 26.2 mod, owo menu, and Susanoo model.

  2. Add client keybinds and synchronized jutsu-slot/color settings.

  3. Implement server-side jutsu, charging, Susanoo stages, protection, and flight.

Built the Fabric 26.2 Uchiha jutsu mod with the custom owo menu, server-validated abilities, and a 3D Susanoo guardian.

  • Controls: Left Alt opens the menu; choose a jutsu and assign it to V, B, M, or comma. Enter any six-digit RGB hex color for Susanoo. Press I to advance through the forms; press it again at Perfect Susanoo to dismiss.

  • Jutsu: Chidori (5s), Chidori Senbon (7s), Amenotejikara (no cooldown), chargeable Shinra Tensei (up to 10 power; cooldown scales with charge), Chibaku Tensei (15s), Amaterasu (persistent flames, no cooldown), Enton: Kagutsuchi (5s), both Katon techniques (3s each), and a 5-second Genjutsu stun on mobs.

  • Susanoo: Stages grant progressively stronger resistance and strength; the fifth summons the custom guardian and grants flight, with sprinting adding forward/upward boosts. The selected RGB colors the Susanoo effects and guardian texture. Stages 1โ€“4 are represented by colored aura effects rather than separate rib, skeleton, humanoid, and armored models.

  • Chibaku Tensei pulls nearby entities and lifts up to 12 nearby solid blocks as falling debris; they resume falling when the six-second field ends.

  • No items or recipes are needed: the abilities are activated with keybinds. Menu assignments and color are session-only and reset when the game restarts.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
manifest.kod
settings.gradle
Code
21 27,146
src/main/java/com/kodari/uchihajutsu/UchihaJutsuMod.java
package com.kodari.uchihajutsu;

import com.kodari.uchihajutsu.entity.ModEntities;
import com.kodari.uchihajutsu.network.JutsuPayload;
import net.fabricmc.api.ModInitializer;
import net.fabricmc.fabric.api.event.lifecycle.v1.ServerTickEvents;
import net.fabricmc.fabric.api.networking.v1.PayloadTypeRegistry;
import net.fabricmc.fabric.api.networking.v1.ServerPlayConnectionEvents;
import net.fabricmc.fabric.api.networking.v1.ServerPlayNetworking;
import net.minecraft.server.level.ServerPlayer;

public class UchihaJutsuMod implements ModInitializer {
    @Override
    public void onInitialize() {
        ModEntities.initialize();
        PayloadTypeRegistry.serverboundPlay().register(JutsuPayload.TYPE, JutsuPayload.CODEC);
        ServerPlayNetworking.registerGlobalReceiver(JutsuPayload.TYPE, (payload, context) -> {
            ServerPlayer player = context.player();
            context.server().execute(() -> JutsuManager.handle(player, payload));
        });
        ServerTickEvents.END_SERVER_TICK.register(JutsuManager::tick);
        ServerPlayConnectionEvents.DISCONNECT.register((handler, server) -> JutsuManager.disconnect(handler.player));
    }
}