๐
pasted-code-1791986611136.txt
txt
924 lines
โถ
# PROJECT: KODARI CINEMATIC AI โ THE ULTIMATE AI-POWERED MINECRAFT FILMMAKING STUDIO
## YOUR ROLE
Act as a senior Minecraft Fabric mod developer, Java engineer, AI integration specialist, real-time rendering engineer, replay-system architect, cinematic director, and video encoding engineer.
You are building a real, functional Minecraft mod called **Kodari Cinematic AI**.
This is not a simple camera mod. It is an AI-powered filmmaking studio integrated directly into Minecraft.
My goal is to record Minecraft gameplay, ask an AI cinematographer how a scene should be filmed, generate professional camera movements, edit a cinematic timeline, create short cinematic sequences, and export finished MP4 videos.
The filmmaking style should support dramatic Minecraft survival storytelling, cinematic storm sequences, abandoned-island exploration, atmospheric horror, zombie encounters, and professional YouTube cinematics.
The experience should feel like having a professional cinematographer, camera operator, replay editor, and video rendering assistant inside Minecraft.
Do not merely produce a design document. Implement the actual software.
# 1. EXACT TARGET PLATFORM
Build specifically for:
- Minecraft Java Edition 1.20.4.
- Fabric Loader compatible with Minecraft 1.20.4.
- Fabric API compatible with Minecraft 1.20.4.
- Java 17.
- Gradle with a working Gradle wrapper.
- Windows 10/11 x64 as the primary operating system.
- Single-player and client-side multiplayer recording, subject to information available to the client.
Use the official Fabric development toolchain and compatible dependency versions.
Do not use Forge-only APIs, NeoForge-only APIs, Fabric APIs from another Minecraft version, or Minecraft 1.20.1-specific implementations without adapting them correctly.
Verify every dependency against Minecraft 1.20.4 before adding it.
Choose compatible versions of Fabric Loader, Fabric API, mappings, and libraries. Pin working versions rather than blindly using the newest releases.
The final mod must build as an installable Fabric JAR for Minecraft 1.20.4.
# 2. NON-NEGOTIABLE DEVELOPMENT RULES
The following rules apply to the entire project.
1. Build working features, not decorative mockups.
2. Every important button must perform its advertised action.
3. Never use fake replay footage or fabricated AI responses to simulate functionality.
4. Never claim that rendering, recording, shader integration, or MP4 export works unless it has actually been implemented and tested.
5. Avoid unnecessary invasive mixins.
6. Never block the Minecraft render thread with network requests, large disk operations, or video encoding.
7. Make optional integrations optional.
8. Handle missing dependencies and unsupported features gracefully.
9. Keep the code modular and maintainable.
10. Compile the project and resolve actual build errors before declaring completion.
If the complete project is too large for one generation, build it in functional phases and continue in the same project. Do not discard the architecture or replace unfinished systems with placeholders.
# 3. PRODUCT VISION
When I launch Minecraft, I can press a configurable keybind to open Kodari Cinematic AI Studio.
The interface should contain a professional camera preview, a replay timeline, an AI cinematographer, camera-path controls, rendering settings, and a project manager.
I should be able to:
- Record gameplay for cinematic editing.
- Save and load replay files.
- Inspect recorded scenes.
- Ask Gemini AI to plan cinematic shots.
- Generate camera paths automatically.
- Select a player, mob, boat, building, or location as a camera target.
- Preview shots before accepting them.
- Adjust keyframes and transitions.
- Generate cinematic shorts from recorded footage.
- Choose the final video resolution and frame rate.
- Enable or disable supported shader effects.
- Download and configure FFmpeg through the GUI.
- Render MP4 files locally.
- Manage saved projects, clips, and rendered videos.
The AI must assist the filmmaking process, but the user must remain in control.
# 4. PROFESSIONAL USER INTERFACE
Create a polished dark cinematic interface.
Visual identity:
- Deep navy background.
- Dark purple panels.
- Violet and electric-blue accents.
- Subtle gradients.
- Clear typography.
- Rounded panels.
- Professional icons.
- Smooth transitions.
- Readable controls.
- Minimal clutter.
- A premium video-editing application aesthetic.
Avoid making the GUI look like a basic Minecraft inventory screen.
## Main navigation
Create these workspaces:
1. AI Director.
2. Replay Library.
3. Shot Planner.
4. Camera Studio.
5. Timeline Editor.
6. Cinematic Shorts.
7. Visual Effects.
8. Render Queue.
9. FFmpeg Manager.
10. API Settings.
11. Project Settings.
## Main studio layout
LEFT SIDEBAR:
Navigation and project management.
CENTER:
Live cinematic preview or replay preview.
RIGHT PANEL:
AI suggestions, selected shot settings, target selection, and camera properties.
BOTTOM:
Timeline, playback controls, timestamps, recording status, and render status.
Provide tooltips, scrollable panels, functional text inputs, keyboard navigation, and responsive layout behavior within Minecraft's GUI framework.
Support a configurable keybind to open and close the studio.
The interface must not intercept normal gameplay inputs when closed.
# 5. GEMINI AI CINEMATOGRAPHER
Integrate Google's Gemini API using a supported API version and a model available to the user's API key.
Make the model configurable. Do not assume that a particular model name will remain available forever.
The AI must behave like a professional Minecraft cinematographer rather than a generic chatbot.
Example:
USER:
"Create a terrifying cinematic reveal of the abandoned island while TezCraft and Ashborne approach by boat."
AI DIRECTOR:
"Start with a wide establishing shot from behind the boat. Keep the horizon in the upper third of the frame. Slowly move the virtual camera forward and downward, revealing the island through the fog. Cut to a side-tracking shot as the boat approaches the shore. Finish with a low-angle shot looking toward the jungle entrance."
The AI should return structured, executable camera instructions.
## Scene understanding
Supply the AI with relevant, legitimately available information, such as:
- Recorded player positions and rotations.
- Entity positions.
- Relevant entity types and names.
- Boat movement.
- World coordinates.
- Weather and time-of-day metadata.
- Replay timestamps.
- Nearby recorded structures and terrain information.
- Available camera keyframes.
- Shot duration and output aspect ratio.
- Previously selected shots and transitions.
Use actual recorded information wherever possible.
Do not invent events, coordinates, entity identities, or scene details.
If the available data is insufficient, the AI should ask a concise clarification or generate an explicitly approximate shot plan.
## AI response format
Require structured JSON for camera plans.
Each plan should include:
- Shot name.
- Shot type.
- Starting timestamp.
- Ending timestamp.
- Camera position.
- Camera rotation.
- Target entity or location.
- Movement type.
- Keyframes.
- Interpolation.
- Camera speed.
- Field of view.
- Duration.
- Transition.
- Optional supported visual effects.
- A short explanation.
Validate the response before executing it.
Reject malformed coordinates, invalid timestamps, out-of-range values, and unsupported operations.
Never execute arbitrary code or commands returned by the AI.
The AI may propose camera changes but must not directly execute destructive gameplay actions.
## API key configuration and privacy
Create a dedicated Gemini settings panel.
Include:
- API key input.
- Masked key display.
- Test connection.
- Model selection.
- Clear key.
- Replace key.
- API connectivity status.
Never embed the key in Java source code, a compiled JAR, screenshots, debug output, or version-controlled files.
Never reuse an exposed API key.
Store credentials in a dedicated local configuration mechanism with clear documentation about its security limitations. If the key is stored in plaintext, explain this honestly.
Redact credentials from logs.
Use asynchronous HTTPS requests, sensible timeouts, and error handling.
Handle invalid keys, unavailable models, rate limits, quotas, network failure, and malformed responses.
Keep all recording, replay playback, and manual camera functionality usable when the internet is unavailable.
Clearly explain that Gemini API pricing, quotas, and free-tier availability depend on the provider's current terms.
# 6. REAL REPLAY RECORDING ENGINE
Implement an actual replay recording and playback system.
Do not simply take screenshots and call them replays.
The recorder should capture the information necessary to reconstruct camera movement and the relevant scene state.
Where supported and appropriate, record:
- Player positions.
- Player rotations.
- Entity positions and rotations.
- Relevant entity states.
- Camera position and orientation.
- World time.
- Weather state.
- Recorded environmental events.
- Relevant animation information.
- Particle events where practical.
- Sound and event timestamps where practical.
- Selected replay bookmarks.
- Important scene markers.
Build a replay format with versioning, validation, and sensible storage limits.
Include:
- Start recording.
- Stop recording.
- Pause recording.
- Resume recording.
- Save replay.
- Load replay.
- Rename replay.
- Delete replay with confirmation.
- Replay list.
- Playback controls.
- Timeline scrubbing.
- Playback speed.
- Slow motion.
- Frame inspection.
- Event markers.
- Bookmarks.
- Camera-only playback.
- Free-camera inspection.
Save replay files inside a dedicated folder in the Minecraft instance.
Prevent uncontrolled disk growth. Support configurable replay duration, entity tracking range, capture intervals, and storage limits.
Use asynchronous writing and bounded buffers.
If the game closes unexpectedly, handle incomplete replay files safely where possible.
## Replay isolation
Replay playback must not modify the live world.
It must not:
- Move the actual player.
- Spawn real mobs.
- Duplicate items.
- Damage entities.
- Change inventories.
- Execute destructive commands.
- Modify server state.
Use a suitable isolated replay scene, ghost entities, or another safe reconstruction architecture.
Do not claim to reproduce every arbitrary modded entity or animation perfectly. Provide a reliable baseline and document unsupported cases.
# 7. ADVANCED CAMERA STUDIO
Implement a complete virtual camera system.
Support:
- Free camera.
- First-person cinematic camera.
- Third-person camera.
- Dolly movement.
- Tracking shots.
- Orbit shots.
- Crane movements.
- Aerial shots.
- Establishing shots.
- Low-angle compositions.
- High-angle compositions.
- Over-the-shoulder framing.
- Side tracking.
- Push-ins.
- Pullbacks.
- Reveal shots.
- Smooth zoom.
- Focus targets.
- Adjustable field of view.
- Camera shake.
- Ease-in and ease-out.
- Smooth camera transitions.
- Camera-path duplication.
- Camera-path reversal.
- Camera-path saving and loading.
Implement keyframe-based movement with a suitable spline or interpolation system.
Use stable interpolation such as CatmullโRom splines for suitable positional paths and correct angle interpolation for camera rotation.
Provide editable keyframes for position, rotation, timing, and field of view.
Add target tracking for moving players, mobs, and vehicles.
The camera should maintain a configurable offset from its target and smoothly follow the target without jitter.
Implement collision-aware movement where practical to reduce clipping through terrain and structures.
Add a 3D camera-path preview when feasible.
All camera controls must work in replay mode without affecting the live player.
# 8. AI SHOT PLANNER
Create a dedicated AI Shot Planner.
I enter a natural-language description, select a replay, and choose the intended style.
Example requests:
- "Make this boat approach look like a movie."
- "Create a terrifying zombie reveal."
- "Make an aerial establishing shot of the island."
- "Create a dramatic lightning sequence."
- "Follow Ashborne through the jungle."
- "Create a slow cinematic reveal of the abandoned city."
- "Generate a suspenseful 15-second scene."
- "Make a professional YouTube intro from this replay."
The AI should produce an editable shot list.
For every shot, show:
- Shot number and name.
- Shot type.
- Start and end time.
- Starting and ending camera transforms.
- Target.
- Duration.
- Movement.
- Speed.
- Field of view.
- Interpolation.
- Transition.
- Visual effect suggestions.
- Reason for the camera choice.
Provide buttons:
- Generate.
- Preview.
- Accept.
- Edit.
- Regenerate.
- Duplicate.
- Add to Timeline.
- Save as Preset.
The generated camera path must be converted into actual keyframes that the camera engine can execute.
# 9. CINEMATIC SHORTS GENERATOR
Create an AI-powered feature named Cinematic Shorts.
Allow me to generate a short cinematic sequence from an existing replay.
Duration options:
- 10 seconds.
- 15 seconds.
- 30 seconds.
- 60 seconds.
- Custom duration.
Style options:
- Horror.
- Suspense.
- Action.
- Adventure.
- Epic cinematic.
- Atmospheric.
- Documentary.
Output framing:
- 16:9.
- 9:16 vertical.
- 1:1 square.
- Custom aspect ratio.
The AI should use actual recorded events to find interesting moments and assemble a cinematic sequence.
Potential moments include:
- Island reveals.
- Boat approaches.
- Storms.
- Lightning.
- Zombie encounters.
- Player discoveries.
- Escapes.
- Ruined buildings.
- Quiet suspenseful moments.
Only select events that exist in the replay data.
Generate an editable timeline with:
- Opening shot.
- Main action shots.
- Reaction or detail shots.
- Establishing shots.
- Transitions.
- Ending shot.
Support automatic framing for vertical videos. Reframe the virtual camera to keep important targets visible instead of stretching or distorting the image.
Include a preview and let me regenerate individual shots without rebuilding the entire sequence.
# 10. TIMELINE EDITOR
Implement a functional multishot timeline.
Required features:
- Add shots.
- Remove shots.
- Duplicate shots.
- Reorder shots.
- Adjust clip duration.
- Trim shot start and end times.
- Move keyframes.
- Split shots.
- Change transitions.
- Add fade-in and fade-out.
- Adjust playback speed.
- Add slow-motion segments.
- Add bookmarks.
- Add notes.
- Add audio synchronization markers.
- Undo and redo.
- Save projects.
- Reopen projects.
Provide a visible playhead, timestamps, shot boundaries, transition indicators, and a preview of the selected camera shot.
Where drag-and-drop is difficult within the GUI framework, provide reliable alternative controls.
Persist project data in a versioned format.
# 11. SHADER-AWARE VISUAL SYSTEM
I want to switch between cinematic rendering with supported shaders and rendering without shaders.
Create a Visual Effects workspace.
Include:
- Shader-aware capture.
- Standard rendering without shaders.
- Field-of-view adjustment.
- Time-of-day controls where supported.
- Weather-aware camera planning.
- Optional color grading.
- Optional vignette.
- Optional film grain.
- Optional motion blur.
- Optional depth of field.
- Optional letterboxing.
- Optional camera shake.
- Fog-related visual effects where supported.
Important compatibility requirements:
Minecraft 1.20.4 Fabric may use Sodium, Iris, and other rendering mods, but exact compatible versions must be verified.
Use optional integrations and compatibility adapters where appropriate.
Do not assume that shader settings can always be changed safely during rendering.
If an integration cannot reliably toggle a shader pack at runtime, provide a safe workflow that preserves the user's original configuration and explains the limitation.
Do not permanently modify shader settings without explicit consent.
Keep the core camera and replay system functional without shaders.
Do not apply post-processing effects that secretly render an additional expensive full-resolution pass when disabled.
Every optional effect should have a clear toggle and quality setting.
# 12. DETERMINISTIC CINEMATIC RENDERER
Build a real rendering pipeline capable of exporting a replay timeline to video.
Support:
- Single-shot rendering.
- Selected timeline rendering.
- Full-project rendering.
- Render preview.
- Render queue.
- Progress percentage.
- Current frame and total frame count.
- Estimated remaining time when calculable.
- Cancellation.
- Render error logs.
- Output folder selection.
- Retry after failure.
Resolution options:
- 1280 ร 720.
- 1920 ร 1080.
- 2560 ร 1440.
- 3840 ร 2160 when hardware permits.
- Custom dimensions.
Frame-rate options:
- 24 FPS.
- 30 FPS.
- 48 FPS.
- 60 FPS.
- Custom FPS.
Keep output FPS separate from the recording FPS.
The renderer must evaluate the replay and camera state at the correct timestamp for every output frame.
Do not simply duplicate low-frame-rate frames and claim that the result is true 60 FPS capture.
Use deterministic frame timing and interpolate supported camera and recorded scene states as necessary.
Make rendering independent of live gameplay timing.
Do not allow a slow GPU render or FFmpeg encoding operation to freeze the live game.
Use appropriate thread boundaries and a bounded frame pipeline.
Implement memory-aware frame handling. Do not retain an entire high-resolution video in RAM.
Provide configurable encoding quality, bitrate, and encoder settings.
Explain that shader complexity, output resolution, scene complexity, and frame rate affect rendering speed.
If true offline replay rendering is technically unsupported by the current implementation, do not fake it. Implement the supported rendering path and clearly identify its limitations.
# 13. AUTOMATIC FFMPEG MANAGER
FFmpeg is a core feature.
Create a dedicated FFmpeg Manager accessible from the GUI.
When the user opens the render workspace:
1. Detect an existing FFmpeg executable.
2. Verify that it runs.
3. Display its version and path.
4. If missing, display a clear installation message.
5. Provide a prominent Download and Install FFmpeg button.
6. Show the download size when available.
7. Request confirmation before downloading.
8. Download from a trusted HTTPS distribution.
9. Verify the downloaded archive or file using available integrity checks.
10. Extract the necessary files safely.
11. Find the FFmpeg executable.
12. Run a version check.
13. Save the executable path.
14. Offer a test encoding operation.
Support:
- Download.
- Cancel.
- Retry.
- Browse for executable.
- Verify installation.
- Reinstall.
- Open FFmpeg directory.
- Test encoding.
Use an appropriate Windows x64 distribution compatible with the user's system.
Do not request administrator privileges unnecessarily.
Never download executables from random or untrusted sources.
Prevent archive path traversal and unsafe extraction.
Do not silently download large files.
If the download or installation fails, show the actual reason and provide manual installation instructions.
Store FFmpeg inside a dedicated configurable directory associated with the Minecraft instance, unless the user chooses another location.
## MP4 EXPORT
Implement actual FFmpeg-based MP4 encoding.
Support:
- H.264 where available.
- Configurable CRF or equivalent quality.
- Preset selection.
- Video bitrate.
- Audio muxing.
- Correct output dimensions.
- Correct output FPS.
- Aspect-ratio preservation.
- Audio/video synchronization.
- Useful encoding logs.
- Temporary-file cleanup after successful export.
Do not run FFmpeg on the main Minecraft thread.
Do not report success until the output file has been verified to exist and the encoding process has completed successfully.
# 14. ISLAND HORROR CINEMATIC PRESET LIBRARY
Build an original collection of editable presets for a Minecraft island survival series starring TezCraft and Ashborne.
## PRESET 1 โ THE ISLAND REVEAL
Begin above the ocean, slowly approach the island, reveal the jungle canopy, and descend toward the shoreline.
## PRESET 2 โ STORM APPROACH
Start with a wide shot of the boat and horizon, transition into a side-tracking shot, and build tension as the recorded weather darkens.
## PRESET 3 โ BOAT DISASTER
Combine wide compositions, low water-level perspectives, camera tracking, and a dramatic pullback using actual recorded movement.
## PRESET 4 โ TWO SURVIVORS
Create a cinematic two-character composition featuring TezCraft and Ashborne, followed by individual reaction shots where recorded positions permit.
## PRESET 5 โ JUNGLE SUSPENSE
Use foreground vegetation, slow camera movement, partial concealment, and carefully timed reveals.
## PRESET 6 โ ABANDONED CITY
Create a distant establishing shot followed by a slow approach toward ruined streets and buildings.
## PRESET 7 โ ZOMBIE ENCOUNTER
Track visible zombies and players, establish spatial relationships, and build tension using wide shots, tracking shots, and close compositions.
## PRESET 8 โ LIGHTNING REVEAL
Synchronize camera timing with recorded lightning events where available.
## PRESET 9 โ DISCOVERY
Create a slow push-in toward a newly discovered location or object, hold the composition, and finish with a controlled transition.
## PRESET 10 โ CINEMATIC INTRO
Create a short establishing sequence with an optional title overlay and room for channel branding.
## PRESET 11 โ HORROR OUTRO
Finish with a slow pullback, a dark composition, and optional title or credits.
Each preset must generate editable camera paths.
Never invent an event or force a mob, storm, lightning strike, or building into the recorded scene.
# 15. PERFORMANCE AND RESOURCE MANAGEMENT
Optimize for a modded Minecraft client.
Implement:
- Bounded replay buffers.
- Asynchronous replay writing.
- Background AI requests.
- Background FFmpeg encoding.
- Efficient entity tracking.
- Configurable recording intervals.
- Configurable entity range.
- Storage limits.
- Memory monitoring where feasible.
- Render cancellation.
- Disk-space checks.
- Graceful failure handling.
Avoid:
- Excessive per-frame allocations.
- Repeated full-world scans.
- Unbounded entity histories.
- Loading entire replay files into memory.
- Blocking network requests.
- Running encoding on the game thread.
- Excessive mixins.
- Unnecessary duplicate rendering passes.
Include three capture presets:
- Performance.
- Balanced.
- High Detail.
The mod should prioritize smooth gameplay during recording and allow high-quality rendering later.
Do not claim zero FPS loss. Measure and optimize overhead where possible.
# 16. PROJECT AND FILE MANAGEMENT
Create a project manager for:
- Replays.
- Camera paths.
- Timeline projects.
- Presets.
- Render jobs.
- Completed videos.
- Temporary frame sequences.
- Diagnostic logs.
Use clear folders under the Minecraft instance.
Support:
- Rename.
- Duplicate.
- Delete with confirmation.
- Open folder.
- Import project.
- Export project.
- Save changes.
- Recover interrupted work where feasible.
Use versioned file formats and safe serialization.
Validate imported project data and prevent malformed files from crashing the client.
# 17. COMMANDS
Register useful Fabric commands, including:
/cinematic studio
/cinematic record start
/cinematic record stop
/cinematic replay list
/cinematic camera free
/cinematic render status
Use correct Fabric command registration for Minecraft 1.20.4.
Validate arguments and return helpful error messages.
The GUI must remain the primary interface.
# 18. FABRIC AND RENDERING COMPATIBILITY
Use Fabric Loader, Fabric API, and compatible Minecraft 1.20.4 rendering integrations.
Potential optional integrations include compatible versions of:
- Sodium.
- Iris.
- Replay or camera-related mods.
- Performance mods.
Do not assume every optional mod is installed.
Avoid mandatory dependencies unless truly necessary.
Do not copy Forge mixins or mappings into Fabric code.
Verify mixin targets against the actual 1.20.4 environment.
Document conflicts and optional integrations.
Make the core mod work without Sodium, without a shader loader, without FFmpeg initially installed, and without a Gemini API key.
Missing optional components must not prevent the game from starting.
# 19. AUTOMATED TESTING AND VERIFICATION
Before declaring the project complete, verify:
- Gradle compilation.
- Fabric mod metadata.
- Successful launch on Minecraft 1.20.4.
- GUI opening and closing.
- API settings persistence.
- Invalid API key handling.
- AI request error handling.
- Basic camera movement.
- Keyframe saving and loading.
- Replay recording.
- Replay playback.
- Replay scrubbing.
- Camera target tracking.
- Timeline project saving.
- Missing FFmpeg detection.
- FFmpeg installation workflow.
- MP4 export.
- Render cancellation.
- Insufficient disk-space handling.
- Shaderless operation.
- Optional integration behavior.
Provide actual build and test results.
Do not fabricate test results or claim a Minecraft launch test if only compilation was performed.
Fix compiler errors, missing imports, incompatible method calls, incorrect dependency versions, and resource-loading errors before delivering the project.
# 20. DEVELOPMENT PHASES
Implement in the following order.
PHASE 1 โ FOUNDATIONS
- Fabric 1.20.4 project.
- GUI and navigation.
- Settings.
- Gemini API configuration.
- Working AI chat.
- Basic virtual camera.
- Camera keyframes.
PHASE 2 โ REPLAY ENGINE
- Record gameplay.
- Save replay data.
- Replay playback.
- Timeline and scrubbing.
- Camera-only replay.
- Event markers.
PHASE 3 โ AI CINEMATOGRAPHER
- Scene metadata.
- Structured camera plans.
- AI-generated camera paths.
- Shot preview.
- Editable cinematic presets.
PHASE 4 โ TIMELINE AND SHORTS
- Multiple camera shots.
- Timeline editing.
- Transitions.
- Automatic short generation.
- Vertical framing.
PHASE 5 โ VIDEO RENDERING
- Deterministic frame capture.
- FFmpeg discovery.
- Safe automatic installation.
- MP4 export.
- Render queue.
- Audio synchronization where feasible.
PHASE 6 โ ADVANCED FEATURES
- Shader-aware rendering.
- Optional visual effects.
- Additional cinematic presets.
- Compatibility improvements.
- Performance optimization.
PHASE 7 โ RELEASE
- Full Gradle build.
- Fix all discovered errors.
- Verify core workflows.
- Package the source project.
- Produce the compiled JAR.
- Write installation instructions.
- Document tested features and known limitations.
Each phase must leave the project in a buildable state.
# 21. FINAL DELIVERABLES
Deliver:
1. Complete Fabric 1.20.4 source project.
2. Correct Gradle wrapper.
3. Compiled installable JAR.
4. README.
5. Gemini API setup guide.
6. FFmpeg setup guide.
7. Installation instructions.
8. Compatibility notes.
9. Known limitations.
10. Build and test report.
The JAR must be built from the delivered source.
Do not provide an unrelated JAR, a renamed file, a Fabric 1.20.1 JAR, or a Forge build.
# FINAL OBJECTIVE
I want a genuinely useful Minecraft filmmaking studio where I can record my survival series, open an AI interface, describe the scene I want, receive intelligent camera recommendations, generate executable camera paths, edit the shots, create cinematic shorts, configure shader-aware visuals, and export polished MP4 videos.
The interface should look premium. The AI should be genuinely connected. The camera paths should be executable. The replay engine should preserve useful scene information. The renderer should produce actual video files.
Build the real mod for Minecraft Fabric 1.20.4 using Java 17.
Start with the project architecture, create the files, implement the first functional phase, compile it, and then continue implementing the remaining phases in the same project.
Never confuse a visually impressive mockup with a working filmmaking application.
Plan (Phase 1 this turn; later phases follow after it compiles):
Gradle build, Fabric metadata, mixin config, and lang file.
Studio screen with sidebar navigation and the three working workspaces: AI Director, Camera Studio, API Settings.
Gemini client: async HTTPS, error mapping, key redaction, and settings persistence.
Virtual camera: keyframes, Catmull-Rom path sampling, JSON save/load, and a minimal camera and FOV mixin.
Replay recording, shot planning, timeline, shorts, rendering, and FFmpeg come in Phases 2 to 7.
Iโm checking the Yarn 1.20.4 signatures for every vanilla and Fabric type Iโll touch before writing any Java.The signatures came back. Before writing, I need the exact package paths for a few types Iโll import.
Lookups are done. Writing Phase 1 now: build files, the studio screen with three working workspaces, the Gemini client, and the virtual camera with keyframes.
Phase 1 is written: the Gradle build, Fabric metadata, a studio screen with navigation, a working AI Director chat, Gemini settings, and a virtual camera with keyframes. I havenโt compiled or launched it yet. The build runs through Kodariโs Compile step, so check the result there.
How to get the jar: click Compile (phone: โฎ โ Compile Project), then Compile in the window, then Download on the finished build.
Whatโs in Phase 1
Open the studio: press K (rebindable under Controls, category โKodari Cinematic AIโ). Esc closes it.
AI Director: chat with Gemini. Each message includes a scene snapshot from your client: player position, dimension, time of day, weather, and keyframe count. The system prompt tells the model to use only those facts.
Camera Studio: free camera toggle, capture of the live camera pose, move and turn controls, FOV ยฑ5, add/remove/clear keyframes, play and stop with Catmull-Rom interpolation, and save/load of named paths as JSON.
API Settings: key entry, masked display, save, clear, model selection, and a test-connection button. Errors are mapped to readable messages for invalid key, unavailable model, rate limit, timeout and malformed response. The key is redacted from error text.
Other workspaces: the remaining eight show their planned phase and are not clickable yet.
Survival: this is a client-side studio with no items, blocks or mobs, so the survival checklist does not apply here.
Limitations to know now
The Gemini key is stored in plain text in
config/kodari-cinematic/settings.json. The settings panel says so.The default model is
gemini-2.5-flash. Not every key has access to every model, so use Test connection after entering the key.Free camera only moves the view. While the studio is closed, your character still moves with your inputs.
Two small mixins are used: one on
Camera.updateand one onGameRenderer.getFov. No other mixins are used.FabricLoader.getConfigDir()isnโt in the mounted library tree, so I used it from the Fabric Loader API directly. It will show up in the compile result if itโs wrong.Gradle: I wrote
gradle-wrapper.propertiesbut not the wrapper jar or scripts. I havenโt confirmed the build pipeline generates them.
Not built yet: replay recording and playback (Phase 2), structured AI camera plans and presets (Phase 3), the timeline, shorts and vertical framing (Phase 4), FFmpeg and MP4 rendering (Phase 5), shader and visual effects (Phase 6), and release packaging (Phase 7). The /cinematic commands are also not registered yet.
Say โcontinueโ when you want Phase 2 (replay engine).
package com.kodari.cinematic;
import com.kodari.cinematic.camera.VirtualCamera;
import com.kodari.cinematic.client.CinematicStudioScreen;
import com.kodari.cinematic.config.StudioSettings;
import net.fabricmc.api.ClientModInitializer;
import net.fabricmc.fabric.api.client.event.lifecycle.v1.ClientTickEvents;
import net.fabricmc.fabric.api.client.keybinding.v1.KeyBindingHelper;
import net.minecraft.client.option.KeyBinding;
import net.minecraft.client.util.InputUtil;
import org.lwjgl.glfw.GLFW;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class KodariCinematicMod implements ClientModInitializer {
public static final String MOD_ID = "kodari-cinematic";
public static final Logger LOGGER = LoggerFactory.getLogger(MOD_ID);
private static KeyBinding openStudioKey;
@Override
public void onInitializeClient() {
StudioSettings.load();
openStudioKey = KeyBindingHelper.registerKeyBinding(new KeyBinding(
"key.kodari-cinematic.open_studio",
InputUtil.Type.KEYSYM,
GLFW.GLFW_KEY_K,
"key.category.kodari-cinematic"));
ClientTickEvents.END_CLIENT_TICK.register(client -> {
while (openStudioKey.wasPressed()) {
if (client.currentScreen == null) {
client.setScreen(new CinematicStudioScreen());
}
}
VirtualCamera.tick();
});
}
}