jackobk2006-droid
๐Ÿ“Ž 1 file 3,757 chars
๐Ÿ“„
pasted-code-1774193837681.txt
txt 40 lines
โ–ถ
Act as an Expert Minecraft Mod Developer, Technical Artist, and Lead Animator. Create a highly advanced Minecraft mod named "Bioluminescent Depths". 

CRITICAL REQUIREMENT - STRICTLY CUSTOM ANIMATIONS:
DO NOT use any vanilla models or vanilla animation classes (No BipedModel, QuadrupedModel, etc.). Every single mob, block, and item mentioned below MUST use 100% CUSTOM models and CUSTOM animations via GeckoLib (or standard custom JSON animation formats). You must generate the code for the Animation Controllers, State Machines, and provide the exact structure for the `.json` animation files with specific keyframes, bones, and interpolation types (EaseInOut, Linear).

### [1] CUSTOM ANIMATED MOBS (Generate Model & Animation JSON structures)

MOB 1: "Luminoth" (Giant Glowing Moth)
- Bones required: `root`, `body`, `head`, `antennae`, `left_wing`, `right_wing`.
- Custom Animation 1 (animation.luminoth.fly): Continuous loop. `left_wing` and `right_wing` rotate on the Z-axis from -45 to 45 degrees over 0.5 seconds. `body` translates up and down on the Y-axis smoothly (sine wave movement).
- Custom Animation 2 (animation.luminoth.idle): `antennae` twitch unpredictably using ease-in-out keyframes. Wings slowly pulse open and closed.

MOB 2: "Crystal Behemoth" (Massive Crystal Golem)
- Bones required: `root`, `pelvis`, `torso`, `left_leg`, `right_leg`, `left_arm`, `right_arm`, `crystal_spikes` (array of 5 bones on the back).
- Custom Animation 1 (animation.behemoth.walk): Heavy, staggered walking cycle. `torso` leans opposite to the stepping leg. `arms` drag slightly behind, showing weight. Screen-shake effect integrated into the step event trigger.
- Custom Animation 2 (animation.behemoth.slam_attack): `torso` bends back 30 degrees, `left_arm` and `right_arm` raise above the head for 1 second (anticipation), then snap down to Y:0 in 0.1 seconds (impact).

MOB 3: "Abyssal Prowler" (Amphibious Predator)
- Bones required: `root`, `spine_1`, `spine_2`, `tail`, `jaw_upper`, `jaw_lower`, 6 independent `leg` bones.
- Custom Animation 1 (animation.prowler.creep): Low-profile custom walk. The 6 legs move in an alternating tripod gait. `spine` bones snake left and right.
- Custom Animation 2 (animation.prowler.pounce): `spine` compresses like a spring, leaps forward, and `jaw_upper` / `jaw_lower` snap open to 60 degrees before biting shut.

### [2] CUSTOM ANIMATED BLOCKS & ITEMS
Do not just make static textures. Provide code for BlockEntity Renderers and Item Renderers (using custom models).

1. Block: "Resonant Crystal Cluster"
- Custom Animation (animation.crystal.idle): The block model consists of 3 floating crystal shards. The animation JSON must make the shards slowly rotate around the center Y-axis continuously, bobbing up and down independently.

2. Item: "Blade of the Depths" (3D Custom Sword)
- The sword is a 3D model, NOT a flat 2D sprite. 
- Custom Animation (animation.blade.pulse): When held in the player's hand, the central core bone of the sword slowly scales up and down by 5% and rotates slightly, making the weapon feel "alive".

### [3] REQUIRED OUTPUT
For each entity, you MUST provide:
1. The Java class extending the Entity class and implementing the GeckoLib `GeoEntity` interface.
2. The custom `AnimationController` setup in the Java code handling transitions (e.g., from Idle to Walk to Attack).
3. The exact `.json` animation code (or detailed representation) showing keyframes, time stamps, and bone rotations/translations.
4. Custom Sound event triggers inside the animation timelines (e.g., footstep sounds timed exactly to the animation keyframes).

Start by generating the complete framework and custom animation files for the "Crystal Behemoth" first.
Kodari AI
KodariMar 22 at 3:46 pm 67,357 (v2)

The documentation loaded is for Fabric/Hytale, but the request is for a Fabric 1.21.4 Minecraft mod. This is a complex request requiring GeckoLib integration. Let me read the remaining docs for block entities, rendering, items, and sounds.

BioluminescentDepths
A deep-sea and bioluminescent fantasy Minecraft 1.21.4 Fabric mod powered by GeckoLib. Features three fully custom animated mobs: Crystal Behemoth (massive crystal golem with slam attack), Luminoth (giant glowing moth), and Abyssal Prowler (amphibious predator). Includes a Resonant Crystal Cluster animated block entity with floating rotating shards, and a Blade of the Depths 3D animated sword. All entities use 100% custom GeckoLib geo models, animation controllers, state machines, and sound keyframe triggers.

Now the GeckoLib geometry (.geo.json) files โ€” these define the full 3D bone hierarchies with cubes for each entity:

Now the complete animation files for every mob, block, and item:


Here is the complete architecture summary:

What Was Built โ€” Complete Architecture

๐Ÿฆด GeckoLib Bone Hierarchies & Animation State Machines

Entity
Bones
Controllers
Triggerable Anims
Crystal Behemoth
root โ†’ pelvis โ†’ torso โ†’ head, left_arm, right_arm
;
pelvis โ†’ left_leg, right_leg
;
torso โ†’ crystal_spike_1โ€ฆ5
movement_controller
(walk/idle),
attack_controller
slam_attack
Luminoth
root โ†’ body โ†’ head โ†’ antennae
;
body โ†’ left_wing, right_wing, abdomen
flight_controller
(fly/idle),
attack_controller
attack
Abyssal Prowler
root โ†’ spine_1 โ†’ spine_2 โ†’ head โ†’ jaw_upper/jaw_lower
;
spine_1 โ†’ tail, leg_x6
movement_controller
(creep/idle),
pounce_controller
pounce
Resonant Crystal Cluster
root โ†’ base โ†’ shard_center, shard_left, shard_right
idle_controller
โ€”
Blade of the Depths
root โ†’ handle โ†’ guard โ†’ core โ†’ blade_left, blade_right, tip
pulse_controller
,
attack_controller
swing

๐ŸŽฌ Animation Design Details

  • Slam Attack: 0.8s anticipation wind-up with torso retracting โˆ’30ยฐ, both arms raising โˆ’160ยฐ; then 0.1s snap to impact at t=0.9 with linear interpolation for snap feel, catmullrom for follow-through

  • Luminoth Fly: 0.5s loop, wings swing Zยฑ45ยฐ with catmullrom producing a true sine-wave-like flap; body bobs Y+1 in sync

  • Prowler Creep: Alternating tripod gait โ€” front-left/mid-right/rear-left move together, opposite tripod offsets by half-cycle; spine bones snake ยฑ8ยฐ in Y matching step rhythm

  • Crystal Cluster Idle: Three shards orbit Y-axis at different speeds (6s/6s/5s period), independently bob on Y with 1โ€ฆ2.5 unit offsets, creating an organic floating appearance

  • Blade Pulse: Core scales ยฑ5% over 2s loop with ยฑ3ยฐ gentle Y-rotation; blade edges scale in counterpoint for a breathing โ€œaliveโ€ aesthetic

๐Ÿ”Š Sound Keyframe Integration

All SoundKeyframeHandler callbacks are server-side checked (isClient() guard). Sound effect keys embedded in animation JSON ("sound_effects" track) map to named Java string constants dispatched in handlers. The slam impact handler also applies direct damage to the target if in range, fusing animation timing with combat logic.

๐Ÿ“ Asset Pipeline

Every .geo.json file contains a complete bone tree with pivot, parent, and cubes for use in Blockbench (GeckoLib plugin). Texture paths match textures/entity/<name>.png โ€” drop your 256ร—256 PNGs there. The .animation.json files are drop-in ready and reference the exact bone names defined in the geo files.

Note: Place .ogg sound files at assets/bioluminescentdepths/sounds/<category>/<name>.ogg. GeckoLib version 4.7.0 is bundled via include in build.gradle. If a minor GeckoLib API method name differs in a newer 4.x patch, the GeoItemRenderer.registerItemRenderer and SingletonGeoAnimatable.registerSyncedAnimatable calls are the two most likely candidates to verify against the GeckoLib changelog.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
settings.gradle
Code
50 2,447
src/client/java/com/bioluminescentdepths/BioluminescentDepthsClient.java
package com.bioluminescentdepths;

import com.bioluminescentdepths.client.renderer.AbyssalProwlerRenderer;
import com.bioluminescentdepths.client.renderer.BladeOfTheDepthsItemRenderer;
import com.bioluminescentdepths.client.renderer.CrystalBehemothRenderer;
import com.bioluminescentdepths.client.renderer.LuminothRenderer;
import com.bioluminescentdepths.client.renderer.ResonantCrystalClusterBlockEntityRenderer;
import net.fabricmc.api.ClientModInitializer;
import net.fabricmc.fabric.api.client.rendering.v1.EntityRendererRegistry;
import net.minecraft.client.render.block.entity.BlockEntityRendererFactories;
import software.bernie.geckolib.renderer.GeoItemRenderer;

public class BioluminescentDepthsClient implements ClientModInitializer {

    @Override
    public void onInitializeClient() {
        EntityRendererRegistry.register(ModEntities.CRYSTAL_BEHEMOTH, CrystalBehemothRenderer::new);
        EntityRendererRegistry.register(ModEntities.LUMINOTH, LuminothRenderer::new);
        EntityRendererRegistry.register(ModEntities.ABYSSAL_PROWLER, AbyssalProwlerRenderer::new);

        BlockEntityRendererFactories.register(ModBlockEntityTypes.RESONANT_CRYSTAL_CLUSTER,
            ResonantCrystalClusterBlockEntityRenderer::new);

        GeoItemRenderer.registerItemRenderer(ModItems.BLADE_OF_THE_DEPTHS, new BladeOfTheDepthsItemRenderer());
    }
}