Bilgecan Dede
📎 1 file 1,954 chars
📄
pasted-code-1794753074136.txt
txt 18 lines
▶
I want to build an amazing "Black Hole - Merkez" mod from scratch for Minecraft Java Edition 1.20.1 (Fabric). Please give me step-by-step, full support regarding the mod architecture, code, and shader integration.

### Mod Features and Requirements:
1. **Command:** When the `/Spawn BlackHole` command is executed in-game (requires op permission), a black hole entity (`BlackHoleEntity`) should spawn at the user's location.
2. **Visual Illusion & Shader (Raymarching):** The black hole must not be a flat 2D texture. It should use the raymarching and gravitational lensing shader mathematics from the attached HTML/Three.js file, adapted into Minecraft's Core Shader system (`blackhole.vsh`, `blackhole.fsh`, `blackhole.json`), producing a real-time accretion disk and light-bending effect. It should be rendered on a billboard plane facing the camera.
3. **Physics, Gravity, and Growth (Server-Side):** 
   - The black hole must continuously pull all entities around it (players, mobs, falling blocks) towards itself with an inverse-square-like gravitational force.
   - It should swallow entities or blocks that get too close to its event horizon (`hurt` or `discard`), increasing its radius (`Radius`) as it consumes them.
   - It should rip nearby blocks out of the world (turning them into `FallingBlockEntity` objects) to pull them into orbit or destroy them completely.

### What You Need to Provide:
1. The complete folder structure of the project.
2. `build.gradle`, `settings.gradle`, and `gradle.properties` files (compatible with Gradle 8.5 and Fabric Loom).
3. The `fabric.mod.json` file.
4. Core shader definition file (`blackhole.json`) and GLSL vertex/fragment shader codes (`blackhole.vsh`, `blackhole.fsh`).
5. All Java source codes (`BlackHoleMod.java`, `BlackHoleEntity.java`, `ModShaders.java`, `BlackHoleRenderer.java`).

Please make sure the codes are complete, compilable, and align with modern Fabric standards.
Kodari AI
KodariNov 15 at 2:31 pm 1
BlackHoleMerkez
A Fabric mod for Minecraft 1.20.4 that spawns a realistic black hole entity via the /Spawn BlackHole command. It features a custom raymarching shader with gravitational lensing and an accretion disk rendered on a billboard plane, plus server-side physics that pulls entities inward with inverse-square gravity, swallows them at the event horizon to grow in radius, and rips nearby blocks into falling entities for orbital destruction.

This project is a Fabric 1.20.4 mod, but you asked for Fabric 1.20.1, which Kodari doesn’t have. The closest options are Fabric 1.20.4 and Fabric 1.19.4.

Kodari can make mistakes. Review important code before using.
Files

No files in this session

Code