teleportation system
Guide for teleportation system
Coconut Teleportation System
Concept
A unique teleportation mechanic using coconuts with three eyes as vessels for bija-powered teleportation rituals.
Mechanics
Step 1: Obtain Empty Coconut
- Item:
coconut(non-stackable) - Weight: 0.8
- Description: "A coconut with three eyes, used for teleportation rituals"
Step 2: Perform Ritual (Coconut Stacking UI)
- Open "Coconut Ritual" interface (š„„ button in Magic tab)
- Place 3 specific bijas into the coconut's "eyes" (Eye 1, Eye 2, Eye 3)
- Click "Charge Coconut"
- System validates recipe and consumes bijas + empty coconut
- Receive charged teleport item
Step 3: Use Teleport
- Item:
<Location> Teleport(stackable) - Action: "Break" to teleport to destination
- Weight: 0.1 (much lighter than empty coconut)
Teleport Recipes
Hastinapur Teleport (Lv 25)
- Eye 1: Vishnu Bija (cosmic order)
- Eye 2: Air Bija
- Eye 3: Earth Bija
- Destination: Hastinapur Palace
- XP: 15.0
Forest Teleport (Lv 31)
- Eye 1: Water Bija
- Eye 2: Earth Bija
- Eye 3: Indra Bija (heavens)
- Destination: Sacred Grove
- XP: 20.0
Mountain Teleport (Lv 38)
- Eye 1: Vishnu Bija
- Eye 2: Earth Bija
- Eye 3: Hanuman Bija (strength)
- Destination: Mountain Temple
- XP: 25.0
Design Rationale
Why Coconuts?
- Cultural Authenticity: Coconuts are sacred in Hindu rituals
- Three Eyes: References Shiva's third eye, mystical symbolism
- Unique Mechanic: Distinguishes from generic "teleport tablets"
Stackable vs Non-Stackable
- Empty Coconuts: Non-stackable (physical ritual vessels)
- Charged Teleports: Stackable (condensed magical energy)
This creates interesting inventory management:
- Players need bank space for empty coconuts
- Charged teleports are convenient to carry in bulk
Bija Combinations
Each recipe uses Vishnu Bija (cosmic order, preservation) as the primary catalyst, representing the preserving/transporting aspect of Vishnu.
Secondary bijas represent the destination's nature:
- Hastinapur: Air + Earth (capital city, grounded but elevated)
- Forest: Water + Earth + Indra (natural, divine)
- Mountain: Earth + Hanuman (strength, elevation)
UI Implementation
Coconut Ritual Window
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
ā Coconut Ritual ā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā¤
ā Place Bijas into Eyes: ā
ā ā
ā Eye 1 (Top) Eye 2 (L) ā
ā [Vishnu] [Air] ā
ā ā
ā Eye 3 (Right) ā
ā [Earth] ā
ā ā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā¤
ā Available Bijas: ā
ā [Air] [Water] [Earth]... ā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā¤
ā [Charge Coconut] ā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāFeatures
- Click bija from inventory to place in first empty eye
- Click placed bija to remove it
- "Charge" button enabled when all 3 eyes filled
- Validates against known recipes
- Shows error if invalid combination
Data Structure (mantras.json)
{
"teleport_recipes": [
{
"teleport_id": "hastinapur_teleport",
"name": "Hastinapur Teleport",
"level_req": 25,
"coconut_bijas": [
{"eye": 1, "bija_id": "vishnu_bija"},
{"eye": 2, "bija_id": "air_bija"},
{"eye": 3, "bija_id": "earth_bija"}
],
"charged_coconut_id": "hastinapur_teleport_coconut",
"destination": "hastinapur_palace",
"xp": 15.0
}
]
}Event Flow
PrepareCoconutEvent
- Triggered by "Charge Coconut" button
- Validates player has empty coconut
- Checks level requirement
- Verifies all 3 bijas in inventory
- Consumes coconut + 3 bijas
- Adds charged teleport item
- Grants Magic XP
- Closes UI
BreakCoconutEvent
- Triggered by using charged teleport item
- Consumes item
- Looks up destination from recipe
- Teleports player (TODO: actual teleport implementation)
- Plays teleport animation/sound
Evolution Notes
Naming Refinement
User Request: "Bija filled coconuts should not be called coconuts anymore it should be teleport"
Before: "Hastinapur Teleport Coconut"
After: "Hastinapur Teleport"
Rationale: Cleaner naming, emphasizes the teleport function over the coconut vessel.