๐
1 file
2,540 chars
๐
pasted-code-1775705025187.txt
txt
147 lines
โถ
pasted-code-1775705025187.txt
txt
147 lines
You are an experienced Minecraft Fabric mod developer.
Create a SIMPLE, CLEAN, and FULLY WORKING Fabric mod for Minecraft 1.21.4 using Java and Fabric API.
IMPORTANT:
- Keep the mod lightweight and stable
- DO NOT overcomplicate anything
- This should feel like Feather Client waypoint system
- Must compile without errors
โโโโโโโโโโโโโโโโโโโโโโโ
MOD NAME: WaypointPlus
TYPE:
Client-side only mod
โโโโโโโโโโโโโโโโโโโโโโโ
CORE IDEA:
A minimal waypoint system with clean UI, similar to Feather Client.
โโโโโโโโโโโโโโโโโโโโโโโ
1. KEYBIND:
- Register a keybind (default: K)
- Pressing K opens waypoint menu
โโโโโโโโโโโโโโโโโโโโโโโ
2. NO COMMANDS:
- No commands at all
- Everything must be INVENTORY GUI-based
โโโโโโโโโโโโโโโโโโโโโโโ
3. PER-WORLD / PER-SERVER WAYPOINTS:
Waypoints must be stored separately:
- Singleplayer โ per world
- Multiplayer โ per server IP
Store files like:
config/waypointplus/.json
This is VERY IMPORTANT
โโโโโโโโโโโโโโโโโโโโโโโ
4. WAYPOINT SYSTEM:
Each waypoint:
- name (String, required)
- x, y, z
- dimension
- color (preset)
Features:
- Add waypoint (auto uses player position)
- Delete waypoint
- Select waypoint
- Teleport (optional config)
Keep it simple like Feather Client
โโโโโโโโโโโโโโโโโโโโโโโ
5. INVENTORY GUI (FEATHER STYLE - CLEAN & SIMPLE):
Main Screen:
- Simple list of waypoints
- Each entry shows:
- Colored name
- Distance
- Minimal design (no clutter)
Buttons:
- Add
- Delete
- Close
Add Screen:
- Text input (name)
- Color buttons
- Save / Cancel
IMPORTANT:
- UI must be minimal and smooth
- No heavy animations
- Clean spacing
โโโโโโโโโโโโโโโโโโโโโโโ
6. COLOR SYSTEM:
Preset colors only:
- Red
- Blue
- Green
- Yellow
- White
Apply color to:
- waypoint name
- rendering text
โโโโโโโโโโโโโโโโโโโโโโโ
7. RENDERING:
- Render simple floating text in world
- Show:
- waypoint name
- distance
- Only render in same dimension
- Keep it lightweight (no heavy beams)
โโโโโโโโโโโโโโโโโโโโโโโ
8. DATA STORAGE:
- JSON format
- Auto save/load
โโโโโโโโโโโโโโโโโโโโโโโ
9. CONFIG:
- allowTeleport true/false
- maxWaypoints
โโโโโโโโโโโโโโโโโโโโโโโ
10. PROJECT FILES:
Provide FULL working Fabric project:
- All Java classes
- fabric.mod.json
- build.gradle
- gradle.properties
โโโโโโโโโโโโโโโโโโโโโโโ
FINAL RULE:
Make it feel like Feather Client:
โ Simple
โ Clean
โ Fast
โ No bugs
โ No extra features
Kodari can make mistakes. Review important code before using.
Files
No files in this session
Code