Андрей Каралёв
📎 1 file 1,837 chars
📄
pasted-code-1794662710121.txt
txt 36 lines
▶
Create a complex progression mod for Fabric 1.21.1 (Java 21) named "Ascension". The concept is "Zero to God" progression.

1. DATA AND NETWORKING:
- Server-side storage for player progression: Skill Points (SP), Branch Tokens (BT), Unlocked Branches (list), Unlocked Nodes (list), Prestige Level.
- Use Fabric Networking to sync data from Server to Client for the GUI.

2. ITEMS:
- "branch_token": A purple crystal item. Right-clicking it grants +1 Branch Token.
- "respec_orb": An item to reset the skill tree.

3. FLIGHT MECHANIC:
- The player has basic flight unlocked from the start, but speed is extremely slow (0.05).
- Maximum altitude is Y=128. If player goes above Y=128, disable flight.
- Use a custom attribute modifier "flight_speed" to control speed.

4. SKILL TREE GUI:
- Pressing "K" opens a custom GUI.
- The GUI displays the player's current SP and BT.
- The GUI has 6 branch tabs: Warfare, Crafting, Survival, Magic, Dominion, Flight.
- To unlock a branch, the player clicks "Unlock" (costs 1 BT).
- Once a branch is unlocked, its nodes become visible. Nodes are bought with SP.
- Add at least 3 functional nodes for "Flight" branch: "Speed I" (increases flight_speed), "Altitude I" (increases max Y to 256), "Hover" (allows floating in place).

5. BRANCH MECHANICS:
- Warfare: Grants attack damage.
- Crafting: Grants haste.
- Survival: Grants regeneration.
- Magic: Grants a custom mana attribute (just visuals for now).
- Dominion: Grants a buff to nearby allies.
- Flight: Modifies flight speed and limits.

6. EVENTS:
- Breaking blocks or killing mobs grants the player +1 SP.
- Server tick event should handle the flight altitude limit and update flight_speed based on unlocked nodes.

Ensure the code compiles, register all items properly, and register the keybind for the GUI.
Kodari AI
KodariNov 14 at 1:25 pm 1
AscensionProgression
A Fabric 1.21.1 mod implementing a "Zero to God" progression system with a server-side skill tree. Players earn Skill Points by breaking blocks or killing mobs, and Branch Tokens via a right-clickable crystal item. The mod features six unlockable branches (Warfare, Crafting, Survival, Magic, Dominion, Flight) with purchasable nodes, a custom GUI opened via the K key showing SP/BT and branch tabs, and a flight mechanic with configurable speed and altitude limits controlled by attribute modifiers. Includes respec functionality, server-client data synchronization, and server tick handling for flight constraints.

This is a Java server-plugin project, but you’re asking for a Fabric mod for Minecraft 1.21.1. Kodari supports that—switch this project to build Ascension:

Fabric 1.21.1 isn't available in Kodari. Fabric versions: 26.3, 26.2, 1.21.11, 1.21.4, 1.20.4, 1.19.4, 1.18.2.

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

No files in this session

Code