📄
pasted-code-1790432047371.txt
txt
1988 lines
▶
# PotatoTimeTravel — Complete Production Development Prompt
## 1. Project
Modify the existing `PotatoTimeTravel` Minecraft plugin.
* Platform: Paper/Purpur 1.21.x
* Java: 21
* Build system: Maven
* Main class: `ir.potatocraft.timetravel.PotatoTimeTravel`
* Output: `PotatoTimeTravel.jar`
* Data file: `plugins/PotatoTimeTravel/data.yml`
The final project MUST compile with:
```text
mvn clean package
```
### CRITICAL
Do NOT delete or break existing working functionality.
Preserve:
* Existing Future World system
* Existing Moon system
* Existing Rocket system
* Existing fuel system
* Existing resource system
* Existing commands
* Existing Resource Pack/custom models
* Existing working functionality that is not explicitly changed here
---
# 2. LANGUAGE
Development code/comments may be English.
ALL player-facing custom item names, GUI titles, recipe names, and important messages MUST be Persian.
Examples:
```text
آلومینیوم
تیتانیوم
فولاد
آلیاژ تیتانیوم
کریستال انرژی
صفحه آبسیدین
شیشه تقویتشده
سیمپیچ مسی
مدار موشک
سپر حرارتی
هسته ناوبری
هسته زمان
دماغه موشک
بدنه موشک
موتور موشک
مخزن سوخت
کابین موشک
کامپیوتر ناوبری
پایدارکننده زمان
هسته کنترل موشک
پایه پرتاب موشک
موشک کامل
سوخت آینده
سوخت برگشت
میز کرفتینگ ناسا
سنگ ماه
ماده قاقالی
برداشت مسلاله
کلو میای
```
---
# 3. MOST IMPORTANT FEATURE — NASA CRAFTING TABLE
Create a NEW custom crafting table:
```text
میز کرفتینگ ناسا
```
This is a custom item with a unique PDC.
## Its ONLY purpose
The NASA Crafting Table MUST ONLY craft:
* Rocket materials
* Rocket components
* Rocket fuel
* Rocket Launch Pad
It MUST NOT craft anything unrelated.
Absolutely do NOT allow:
* Tools
* Armor
* Food
* Normal blocks
* Random vanilla recipes
* Unrelated plugin items
* Any recipe not explicitly listed in this document
This is NON-NEGOTIABLE.
---
# 4. NASA CRAFTING TABLE RECIPE
The NASA Crafting Table itself is crafted in the normal Minecraft Crafting Table.
```text
WOODEN SLAB | WOODEN SLAB | AIR
WOODEN SLAB | WOODEN SLAB | AIR
AIR | AIR | AIR
```
Output:
```text
1 × میز کرفتینگ ناسا
```
The output MUST be a custom ItemStack with PDC.
It must NOT simply be a normal Crafting Table.
---
# 5. CRAFTING TABLE SEPARATION
## Normal Minecraft Crafting Table
It may create:
```text
میز کرفتینگ ناسا
```
ONLY.
Rocket recipes MUST NOT work in the normal Crafting Table.
## NASA Crafting Table
It may create ONLY the rocket/space recipes listed in this document.
No unrelated recipes.
## Rocket Launch Pad
The Complete Rocket is NOT crafted in either crafting table.
It is assembled at the Launch Pad.
---
# 6. CUSTOM ITEM SYSTEM
Every custom item MUST have:
* Unique internal ID
* Unique PDC
* Custom ItemStack
* Persian display name
* Optional lore
* CustomModelData when required by the Resource Pack
PDC is authoritative.
IDs:
```text
nasa_crafting_table
aluminium_ingot
titanium_ingot
steel_ingot
titanium_alloy
energy_crystal
obsidian_plate
reinforced_glass
copper_coil
rocket_circuit
thermal_shield
navigation_core
time_core
rocket_nose
rocket_body
rocket_engine
fuel_tank
cockpit
navigation_computer
time_stabilizer
rocket_control_core
rocket_launch_pad
complete_rocket
future_fuel
return_fuel
moon_stone
moon_qaghali_matter
moon_mesalleh_harvest
moon_klomia
```
Never identify custom items only by Material or display name.
---
# 7. COMPLETE ROCKET RECIPES
ALL recipes below are NASA Crafting Table recipes.
Every output MUST be the correct custom ItemStack.
Never return a vanilla item instead of a custom item.
---
## 7.1 آلومینیوم
ID:
```text
aluminium_ingot
```
Recipe:
```text
IRON INGOT | COPPER INGOT | IRON INGOT
COPPER INGOT | IRON INGOT | COPPER INGOT
IRON INGOT | COPPER INGOT | IRON INGOT
```
Materials:
* Iron Ingot ×5
* Copper Ingot ×4
Output:
```text
آلومینیوم ×1
```
---
## 7.2 تیتانیوم
ID:
```text
titanium_ingot
```
Recipe:
```text
GOLD INGOT | QUARTZ | GOLD INGOT
QUARTZ | GOLD INGOT | QUARTZ
GOLD INGOT | QUARTZ | GOLD INGOT
```
Materials:
* Gold Ingot ×4
* Quartz ×4
Output:
```text
تیتانیوم ×1
```
---
## 7.3 فولاد
ID:
```text
steel_ingot
```
Recipe:
```text
IRON INGOT | COAL | IRON INGOT
COAL | IRON INGOT | COAL
IRON INGOT | COAL | IRON INGOT
```
Materials:
* Iron Ingot ×4
* Coal ×4
Output:
```text
فولاد ×1
```
---
## 7.4 آلیاژ تیتانیوم
ID:
```text
titanium_alloy
```
Recipe:
```text
تیتانیوم | IRON INGOT | تیتانیوم
IRON INGOT | DIAMOND | IRON INGOT
تیتانیوم | IRON INGOT | تیتانیوم
```
Materials:
* تیتانیوم ×4
* Iron Ingot ×3
* Diamond ×1
Output:
```text
آلیاژ تیتانیوم ×1
```
---
## 7.5 کریستال انرژی
ID:
```text
energy_crystal
```
Recipe:
```text
DIAMOND | OBSIDIAN | DIAMOND
OBSIDIAN | AMETHYST SHARD | OBSIDIAN
DIAMOND | OBSIDIAN | DIAMOND
```
Materials:
* Diamond ×4
* Obsidian ×4
* Amethyst Shard ×1
Output:
```text
کریستال انرژی ×1
```
---
## 7.6 صفحه آبسیدین
ID:
```text
obsidian_plate
```
Recipe:
```text
OBSIDIAN | IRON INGOT | OBSIDIAN
IRON INGOT | OBSIDIAN | IRON INGOT
OBSIDIAN | IRON INGOT | OBSIDIAN
```
Materials:
* Obsidian ×5
* Iron Ingot ×4
Output:
```text
صفحه آبسیدین ×1
```
---
## 7.7 شیشه تقویتشده
ID:
```text
reinforced_glass
```
Recipe:
```text
IRON INGOT | GLASS | IRON INGOT
GLASS | QUARTZ | GLASS
IRON INGOT | GLASS | IRON INGOT
```
Materials:
* Iron Ingot ×4
* Glass ×4
* Quartz ×1
Output:
```text
شیشه تقویتشده ×1
```
---
## 7.8 سیمپیچ مسی
ID:
```text
copper_coil
```
Recipe:
```text
COPPER INGOT | COPPER INGOT | COPPER INGOT
COPPER INGOT | REDSTONE | COPPER INGOT
COPPER INGOT | COPPER INGOT | COPPER INGOT
```
Materials:
* Copper Ingot ×8
* Redstone ×1
Output:
```text
سیمپیچ مسی ×1
```
---
## 7.9 مدار موشک
ID:
```text
rocket_circuit
```
Recipe:
```text
REDSTONE | سیمپیچ مسی | REDSTONE
سیمپیچ مسی | GOLD INGOT | سیمپیچ مسی
REDSTONE | سیمپیچ مسی | REDSTONE
```
Materials:
* Redstone ×4
* سیمپیچ مسی ×3
* Gold Ingot ×1
Output:
```text
مدار موشک ×1
```
---
## 7.10 سپر حرارتی
ID:
```text
thermal_shield
```
Recipe:
```text
آلیاژ تیتانیوم | صفحه آبسیدین | آلیاژ تیتانیوم
صفحه آبسیدین | FIRE CHARGE | صفحه آبسیدین
آلیاژ تیتانیوم | صفحه آبسیدین | آلیاژ تیتانیوم
```
Materials:
* آلیاژ تیتانیوم ×4
* صفحه آبسیدین ×4
* Fire Charge ×1
Output:
```text
سپر حرارتی ×1
```
---
## 7.11 هسته ناوبری
ID:
```text
navigation_core
```
Recipe:
```text
IRON INGOT | GOLD INGOT | IRON INGOT
مدار موشک | DIAMOND | مدار موشک
IRON INGOT | GOLD INGOT | IRON INGOT
```
Materials:
* Iron Ingot ×4
* Gold Ingot ×2
* مدار موشک ×2
* Diamond ×1
Output:
```text
هسته ناوبری ×1
```
---
## 7.12 هسته زمان
ID:
```text
time_core
```
Recipe:
```text
کریستال انرژی | آلیاژ تیتانیوم | کریستال انرژی
ENDER PEARL | CLOCK | ENDER PEARL
کریستال انرژی | آلیاژ تیتانیوم | کریستال انرژی
```
Materials:
* کریستال انرژی ×4
* آلیاژ تیتانیوم ×2
* Ender Pearl ×2
* Clock ×1
Output:
```text
هسته زمان ×1
```
IMPORTANT:
سنگ ماه در این Recipe وجود ندارد.
Return Fuel نیز در این Recipe وجود ندارد.
---
# 8. ROCKET COMPONENT RECIPES
## 8.1 دماغه موشک
ID:
```text
rocket_nose
```
```text
تیتانیوم | تیتانیوم | تیتانیوم
تیتانیوم | شیشه تقویتشده | تیتانیوم
AIR | فولاد | AIR
```
Materials:
* تیتانیوم ×5
* شیشه تقویتشده ×1
* فولاد ×1
Output:
```text
دماغه موشک ×1
```
---
## 8.2 بدنه موشک
ID:
```text
rocket_body
```
```text
آلومینیوم | فولاد | آلومینیوم
آلومینیوم | آلیاژ تیتانیوم | آلومینیوم
آلومینیوم | فولاد | آلومینیوم
```
Materials:
* آلومینیوم ×6
* فولاد ×2
* آلیاژ تیتانیوم ×1
Output:
```text
بدنه موشک ×1
```
---
## 8.3 موتور موشک
ID:
```text
rocket_engine
```
```text
فولاد | تیتانیوم | فولاد
تیتانیوم | کریستال انرژی | تیتانیوم
فولاد | سیمپیچ مسی | فولاد
```
Materials:
* فولاد ×4
* تیتانیوم ×3
* کریستال انرژی ×1
* سیمپیچ مسی ×1
Output:
```text
موتور موشک ×1
```
---
## 8.4 مخزن سوخت
ID:
```text
fuel_tank
```
```text
آلومینیوم | فولاد | آلومینیوم
فولاد | صفحه آبسیدین | فولاد
آلومینیوم | فولاد | آلومینیوم
```
Materials:
* آلومینیوم ×4
* فولاد ×4
* صفحه آبسیدین ×1
Output:
```text
مخزن سوخت ×1
```
---
## 8.5 کابین موشک
ID:
```text
cockpit
```
```text
شیشه تقویتشده | شیشه تقویتشده | شیشه تقویتشده
آلومینیوم | هسته ناوبری | آلومینیوم
فولاد | فولاد | فولاد
```
Materials:
* شیشه تقویتشده ×3
* آلومینیوم ×2
* هسته ناوبری ×1
* فولاد ×3
Output:
```text
کابین موشک ×1
```
---
## 8.6 کامپیوتر ناوبری
ID:
```text
navigation_computer
```
```text
مدار موشک | GOLD INGOT | مدار موشک
سیمپیچ مسی | هسته ناوبری | سیمپیچ مسی
مدار موشک | DIAMOND | مدار موشک
```
Materials:
* مدار موشک ×4
* Gold Ingot ×1
* سیمپیچ مسی ×2
* هسته ناوبری ×1
* Diamond ×1
Output:
```text
کامپیوتر ناوبری ×1
```
---
## 8.7 پایدارکننده زمان
ID:
```text
time_stabilizer
```
```text
آلیاژ تیتانیوم | کریستال انرژی | آلیاژ تیتانیوم
کریستال انرژی | هسته زمان | کریستال انرژی
آلیاژ تیتانیوم | کریستال انرژی | آلیاژ تیتانیوم
```
Materials:
* آلیاژ تیتانیوم ×4
* کریستال انرژی ×4
* هسته زمان ×1
Output:
```text
پایدارکننده زمان ×1
```
---
## 8.8 هسته کنترل موشک
ID:
```text
rocket_control_core
```
```text
کامپیوتر ناوبری | مدار موشک | کامپیوتر ناوبری
مدار موشک | هسته زمان | مدار موشک
کامپیوتر ناوبری | مدار موشک | کامپیوتر ناوبری
```
Materials:
* کامپیوتر ناوبری ×3
* مدار موشک ×4
* هسته زمان ×1
Output:
```text
هسته کنترل موشک ×1
```
---
# 9. ROCKET LAUNCH PAD
ID:
```text
rocket_launch_pad
```
Recipe:
```text
فولاد | IRON BLOCK | فولاد
IRON INGOT | OBSIDIAN | IRON INGOT
فولاد | COPPER INGOT | فولاد
```
Materials:
* فولاد ×4
* Iron Block ×1
* Iron Ingot ×2
* Obsidian ×1
* Copper Ingot ×1
Output:
```text
پایه پرتاب موشک ×1
```
CRITICAL:
Output MUST be the custom Rocket Launch Pad.
It MUST NOT become an Iron Block.
---
# 10. FUTURE FUEL
ID:
```text
future_fuel
```
Name:
```text
سوخت آینده
```
Recipe:
```text
BLAZE POWDER | کریستال انرژی | BLAZE POWDER
کریستال انرژی | هسته زمان | کریستال انرژی
BLAZE POWDER | کریستال انرژی | BLAZE POWDER
```
Materials:
* Blaze Powder ×4
* کریستال انرژی ×4
* هسته زمان ×1
Output:
```text
سوخت آینده ×1
```
Required for Earth → Moon travel:
```text
5 × سوخت آینده
```
---
# 11. RETURN FUEL
ID:
```text
return_fuel
```
Name:
```text
سوخت برگشت
```
Recipe:
```text
ماده قاقالی | برداشت مسلاله | ماده قاقالی
کلو میای | هسته زمان | کلو میای
ماده قاقالی | برداشت مسلاله | ماده قاقالی
```
Materials:
* ماده قاقالی ×4
* برداشت مسلاله ×2
* کلو میای ×2
* هسته زمان ×1
Output:
```text
سوخت برگشت ×1
```
Required for Moon → Earth:
```text
5 × سوخت برگشت
```
CRITICAL:
سنگ ماه MUST NOT be used in Return Fuel.
Do NOT substitute Moon Stone for any ingredient.
---
# 12. COMPLETE ROCKET
ID:
```text
complete_rocket
```
Name:
```text
موشک کامل
```
There MUST be NO normal crafting recipe for the Complete Rocket.
The Complete Rocket is created ONLY at the Launch Pad.
Required:
```text
دماغه موشک ×1
بدنه موشک ×1
موتور موشک ×1
مخزن سوخت ×1
کابین موشک ×1
کامپیوتر ناوبری ×1
پایدارکننده زمان ×1
هسته کنترل موشک ×1
```
Order does not matter.
When all 8 components are inserted:
```text
§a§l🚀 ساخت موشک
```
Construction time:
```text
30 seconds
```
Then:
```text
§a§l🚀 موشک با موفقیت ساخته شد!
```
The components must be consumed exactly once.
No duplication.
No item loss.
---
# 13. LAUNCH PAD GUI
Right-clicking the Launch Pad opens a chest-style custom GUI.
Players can put the 8 components into any slots.
Order is irrelevant.
When all 8 exist:
```text
§a§l🚀 ساخت موشک
```
appears.
The construction takes exactly 30 seconds by default.
Prevent:
* Shift-click duplication
* Drag duplication
* Double-click duplication
* Number-key exploits
* Offhand exploits
* Close/reopen exploits
* Disconnect exploits
* Restart exploits
---
# 14. ROCKET SEAT
The Rocket MUST have a visible chair/stair-like seat.
The player MUST NOT be placed inside a glass block.
The player MUST NOT be surrounded by a glass cage.
The camera must remain clear.
An invisible technical seat entity may be used internally, but it must:
* Be invisible
* Not obstruct the player
* Follow the Rocket
* Survive world transfer
* Be cleaned up correctly
The player and Rocket must remain attached together during travel.
---
# 15. FUEL STORAGE
Every Rocket has its own:
```text
Rocket UUID
Future Fuel
Return Fuel
```
Persist them in:
```text
plugins/PotatoTimeTravel/data.yml
```
Fuel must survive:
* Restart
* Logout
* Relog
* Moon travel
* World change
* Chunk unload
* Reconnection
Fuel is consumed only after all travel validation succeeds.
---
# 16. MOON WORLD COMMAND
Add:
```text
/moon set
```
Example:
```text
/moon set MoonWorld
```
This sets the Moon destination.
Save it permanently in:
```text
plugins/PotatoTimeTravel/data.yml
```
If the world does not exist:
```text
§cدنیای ماه وجود ندارد!
```
Do not teleport.
Do not consume fuel.
Also preserve:
```text
/rocket moon world
```
Both systems must use the same Moon World configuration.
---
# 17. MOON COMMANDS
Keep:
```text
/rocket moon world
/rocket moon pos1
/rocket moon pos2
/rocket moon random
/rocket moon info
```
Add:
```text
/moon set
```
Example:
```text
/moon set MoonWorld
```
---
# 18. EARTH → MOON
The player must:
1. Have a complete Rocket.
2. Sit on the Rocket.
3. Have 5 Future Fuel.
4. Have a valid Moon World.
5. Start the engine.
Messages:
```text
§aموشک با موفقیت روشن شد!
§eموتور موشک روشن شد...
§bموشک در حال صعود است...
§bدر حال حرکت به ماه...
§aبه ماه رسیدید!
```
Engine sound MUST play.
The Rocket MUST physically ascend:
```text
250 blocks
```
Do NOT instantly teleport.
Flow:
```text
Earth
↓
Engine starts
↓
Engine sound
↓
Physical ascent
↓
250 blocks
↓
Moon World
```
The Rocket and Player must transfer together.
Do NOT use:
```text
0 0 0
```
Do NOT automatically use Moon spawn.
Find a safe Moon arrival position.
---
# 19. SAVE EXACT EARTH LOCATION
When launching Earth → Moon, save the exact launch position for THAT Rocket UUID.
Save:
```text
World
X
Y
Z
Yaw
Pitch
```
Example:
```text
world: world
x: 125.53
y: 72.00
z: -348.21
yaw: 90
pitch: 0
```
This is the return destination.
Each Rocket must have its own saved location.
---
# 20. MOON → EARTH
Player sits in the Rocket.
Requirements:
```text
5 × سوخت برگشت
```
Start engine.
Play engine sound.
Show:
```text
§eدر حال بازگشت به زمین...
```
Rocket physically ascends:
```text
25 blocks
```
Then transfer:
```text
Moon World
↓
25 block ascent
↓
Earth World
↓
Exact saved Earth launch location
```
NEVER return to:
* Spawn
* World Spawn
* 0,0,0
* Random location
* Hardcoded coordinates
Return ONLY to the exact saved Earth launch position belonging to that Rocket UUID.
---
# 21. MOON RESOURCES
Required custom resources:
```text
سنگ ماه
ماده قاقالی
برداشت مسلاله
کلو میای
```
IDs:
```text
moon_stone
moon_qaghali_matter
moon_mesalleh_harvest
moon_klomia
```
All use PDC.
Moon Stone may be obtained using the Give command.
IMPORTANT:
Moon Stone is NOT a Return Fuel ingredient.
Return Fuel uses only:
```text
ماده قاقالی ×4
برداشت مسلاله ×2
کلو میای ×2
هسته زمان ×1
```
---
# 22. RECIPE BOOK
Commands:
```text
/rocket book
```
and:
```text
/timetravel book
```
Both open the same Recipe Book.
No permission required.
Title:
```text
§e§l✦ POTATO CRAFT — RECIPE BOOK ✦
```
54 slots.
Show ALL rocket/space recipes.
Include:
* NASA Crafting Table
* آلومینیوم
* تیتانیوم
* فولاد
* آلیاژ تیتانیوم
* کریستال انرژی
* صفحه آبسیدین
* شیشه تقویتشده
* سیمپیچ مسی
* مدار موشک
* سپر حرارتی
* هسته ناوبری
* هسته زمان
* دماغه موشک
* بدنه موشک
* موتور موشک
* مخزن سوخت
* کابین موشک
* کامپیوتر ناوبری
* پایدارکننده زمان
* هسته کنترل موشک
* پایه پرتاب موشک
* سوخت آینده
* سوخت برگشت
* اطلاعات ساخت موشک کامل
Clicking a recipe opens a detail GUI.
Show:
* Persian name
* Output
* Amount
* Ingredients
* Ingredient amounts
* Exact 3×3 pattern
* Required station
For Complete Rocket:
```text
موشک کامل با کرفت معمولی ساخته نمیشود.
این موشک در پایه پرتاب ساخته میشود.
۸ قطعه اصلی لازم است.
زمان ساخت: ۳۰ ثانیه
```
Recipe Book is read-only.
No item extraction.
No item insertion.
No shift-click exploit.
No drag exploit.
No double-click exploit.
No number-key exploit.
No offhand exploit.
Do NOT globally cancel every inventory event in a way that breaks other plugin inventories.
---
# 23. ADMIN GIVE COMMAND
Permission:
```text
potatocraft.rocket.admin
```
Command:
```text
/rocket give -
```
Examples:
```text
/rocket give Player nasa_crafting_table 1
/rocket give Player aluminium_ingot 1
/rocket give Player titanium_ingot 1
/rocket give Player steel_ingot 1
/rocket give Player titanium_alloy 1
/rocket give Player energy_crystal 1
/rocket give Player obsidian_plate 1
/rocket give Player reinforced_glass 1
/rocket give Player copper_coil 1
/rocket give Player rocket_circuit 1
/rocket give Player thermal_shield 1
/rocket give Player navigation_core 1
/rocket give Player time_core 1
/rocket give Player rocket_nose 1
/rocket give Player rocket_body 1
/rocket give Player rocket_engine 1
/rocket give Player fuel_tank 1
/rocket give Player cockpit 1
/rocket give Player navigation_computer 1
/rocket give Player time_stabilizer 1
/rocket give Player rocket_control_core 1
/rocket give Player rocket_launch_pad 1
/rocket give Player future_fuel 1
/rocket give Player return_fuel 1
```
Moon:
```text
/rocket give Player moon_stone 1
/rocket give Player moon_qaghali_matter 1
/rocket give Player moon_mesalleh_harvest 1
/rocket give Player moon_klomia 1
```
Support every custom item.
---
# 24. GIVE ALL
Command:
```text
/rocket giveall
```
Permission:
```text
potatocraft.rocket.admin
```
Give:
```text
پایه پرتاب موشک ×1
دماغه موشک ×1
بدنه موشک ×1
موتور موشک ×1
مخزن سوخت ×1
کابین موشک ×1
کامپیوتر ناوبری ×1
پایدارکننده زمان ×1
هسته کنترل موشک ×1
```
---
# 25. GIVE ALL MOON
Command:
```text
/rocket giveallmoon
```
Permission:
```text
potatocraft.rocket.admin
```
Give:
```text
سنگ ماه
ماده قاقالی
برداشت مسلاله
کلو میای
```
---
# 26. ALL IMPORTANT COMMANDS
Preserve:
```text
/rocket
/rocket help
/rocket book
/rocket launch set
/rocket return set
/rocket moon world
/rocket moon pos1
/rocket moon pos2
/rocket moon random
/rocket moon info
/rocket future pos1
/rocket future pos2
/rocket future info
/timetravel book
```
Add:
```text
/moon set
/rocket give -
/rocket giveall
/rocket giveallmoon
```
If the existing plugin already has a working Rocket launch command, preserve it.
---
# 27. ROCKET STATES
Use:
```text
READY
FUELED
COUNTDOWN
ASCENDING
TRAVELING
MOON
RETURNING
```
A Rocket cannot launch twice simultaneously.
A Rocket cannot start two construction timers.
A Rocket cannot create duplicate physical Rockets.
---
# 28. ROCKET UUID
Every Rocket has a unique UUID.
The UUID controls:
* Rocket identity
* Fuel
* Owner
* State
* Physical structure
* Launch location
* Return location
* Moon travel
* Persistence
* Anti-duplication
One Rocket UUID = one physical Rocket.
---
# 29. PERSISTENCE
Store in:
```text
plugins/PotatoTimeTravel/data.yml
```
Store:
```text
Moon World
Rocket UUID
Owner
Rocket World
Rocket Location
Rocket State
Future Fuel
Return Fuel
Earth Launch World
Earth Launch X
Earth Launch Y
Earth Launch Z
Earth Launch Yaw
Earth Launch Pitch
Construction State
Construction Timestamp
```
Everything must survive restart.
---
# 30. ANTI-DUPLICATION
Prevent duplication from:
* GUI closing
* Shift-click
* Drag
* Double-click
* Number keys
* Offhand
* Disconnect
* Reconnect
* Death
* Restart
* Chunk unload
* World unload
* World transfer
* Multiple clicks
* Multiple launches
Never consume components twice.
Never create two Rockets from one set of components.
Never create two Rockets with the same UUID.
Clean orphan technical seat entities.
---
# 31. CONFIG
Use configurable values:
```yaml
launch:
earth-ascent-height: 250
moon-ascent-height: 25
construction-time: 30
fuel:
future-required: 5
return-required: 5
moon:
world: ""
cooldown-seconds: 10
sounds:
engine-start:
enabled: true
sound: ENTITY_GENERIC_EXPLODE
volume: 1.0
pitch: 0.8
engine-running:
enabled: true
sound: BLOCK_FIRE_AMBIENT
volume: 1.0
pitch: 0.8
```
---
# 32. MESSAGES
Use Persian player messages.
Examples:
```text
§aموشک با موفقیت روشن شد!
§eموتور موشک روشن شد...
§bموشک در حال صعود است...
§bدر حال حرکت به ماه...
§aبه ماه رسیدید!
§eدر حال بازگشت به زمین...
§cسوخت کافی نیست!
§cدنیای ماه تنظیم نشده است!
§cدنیای ماه وجود ندارد!
§cقطعات موشک کامل نیستند!
§aموشک با موفقیت ساخته شد!
§cاین Recipe فقط در میز کرفتینگ ناسا قابل ساخت است!
§cاین آیتم در میز کرفتینگ ناسا قابل ساخت نیست!
```
---
# 33. RECIPE REGISTRY
Create one central Recipe Registry.
The registry powers:
* NASA Crafting Table
* Recipe Book
* Recipe Detail GUI
* Recipe validation
Every recipe has a unique NamespacedKey.
Examples:
```text
potatocraft:aluminium_ingot
potatocraft:titanium_ingot
potatocraft:steel_ingot
potatocraft:rocket_nose
potatocraft:rocket_body
potatocraft:rocket_engine
```
No duplicate keys.
No duplicate recipe definitions.
---
# 34. RECOMMENDED ARCHITECTURE
```text
ir.potatocraft.timetravel
PotatoTimeTravel
command/
RocketCommand
MoonCommand
rocket/
RocketManager
RocketData
RocketState
RocketStructureService
RocketSeatService
RocketTravelService
RocketFuelService
RocketConstructionService
moon/
MoonManager
MoonTravelService
MoonResourceService
crafting/
NasaCraftingTable
NasaCraftingListener
RecipeRegistry
item/
CustomItemManager
ItemRegistry
gui/
RecipeBookGUI
RecipeDetailGUI
RocketAssemblyGUI
FuelGUI
storage/
DataManager
util/
LocationUtil
SafeLocationService
MessageUtil
```
Reuse existing classes when possible.
---
# 35. COMPLETE PLAYER FLOW
```text
NORMAL CRAFTING TABLE
↓
4 Wooden Slabs
↓
میز کرفتینگ ناسا
↓
NASA CRAFTING TABLE
↓
Craft Rocket Materials
↓
Craft Rocket Components
↓
Craft Launch Pad
↓
Place Launch Pad
↓
Right Click
↓
Rocket Assembly GUI
↓
Insert 8 Components
↓
ساخت موشک
↓
30 Seconds
↓
Rocket Appears
↓
5 × سوخت آینده
↓
Sit on Rocket
↓
Start Engine
↓
Engine Sound
↓
Physical +250 Blocks
↓
Moon World
↓
Explore Moon
↓
Collect Moon Resources
↓
Craft Return Fuel
↓
5 × سوخت برگشت
↓
Sit on Rocket
↓
Start Engine
↓
Engine Sound
↓
Physical +25 Blocks
↓
Earth World
↓
EXACT ORIGINAL EARTH LOCATION
```
---
# 36. NON-NEGOTIABLE FINAL RULES
These rules MUST be followed exactly:
1. NASA Crafting Table is a NEW custom crafting table.
2. NASA Crafting Table ONLY crafts rocket/space items.
3. NASA Crafting Table MUST NOT craft unrelated items.
4. Normal Crafting Table MUST NOT craft rocket components.
5. Normal Crafting Table only creates NASA Crafting Table from four wooden slabs.
6. Every listed recipe must be implemented exactly.
7. Every custom output must be a real custom ItemStack.
8. Every custom item must have PDC.
9. Complete Rocket must NOT have a normal recipe.
10. Complete Rocket is assembled only at Launch Pad.
11. Launch Pad requires exactly the eight required components.
12. Component order does not matter.
13. Construction takes 30 seconds.
14. Earth → Moon requires 5 Future Fuel.
15. Moon → Earth requires 5 Return Fuel.
16. Moon Stone MUST NOT be used in Return Fuel.
17. Return Fuel MUST use the specified Moon resources and Time Core.
18. Earth → Moon physically ascends 250 blocks.
19. Moon → Earth physically ascends 25 blocks.
20. Engine sound plays on every launch.
21. `/moon set ` configures the Moon World.
22. Moon World configuration persists.
23. Exact Earth launch location is saved per Rocket UUID.
24. Return uses that exact saved location.
25. Return MUST NOT use spawn.
26. Return MUST NOT use 0,0,0.
27. Return MUST NOT use a random location.
28. Rocket and Player travel together.
29. Rocket has a visible chair/stair-like seat.
30. Player MUST NOT sit inside glass.
31. Camera MUST NOT be blocked.
32. Fuel persists.
33. Rocket data persists.
34. Existing Future functionality remains.
35. Existing working commands remain.
36. Existing Resource Pack compatibility remains.
37. No duplication exploits.
38. No item loss exploits.
39. Java 21 is required.
40. `mvn clean package` MUST succeed.
DO NOT IMPLEMENT A PARTIAL VERSION.
DO NOT OMIT ANY RECIPE.
DO NOT OMIT ANY COMMAND.
DO NOT OMIT THE RECIPE BOOK.
DO NOT OMIT PDC.
DO NOT OMIT PERSISTENCE.
DO NOT OMIT FUEL.
DO NOT OMIT EXACT RETURN LOCATION.
DO NOT TELEPORT DIRECTLY TO THE MOON.
DO NOT RETURN TO SPAWN.
DO NOT USE 0,0,0.
DO NOT USE MOON STONE IN RETURN FUEL.
DO NOT ALLOW NON-ROCKET RECIPES IN THE NASA CRAFTING TABLE.
DO NOT ALLOW ROCKET RECIPES IN THE NORMAL CRAFTING TABLE.
DO NOT MAKE COMPLETE ROCKET A NORMAL CRAFTING RECIPE.
DO NOT REMOVE EXISTING WORKING FEATURES.
DO NOT REPLACE THE VISIBLE ROCKET SEAT WITH A GLASS BLOCK.
DO NOT BREAK RESOURCE PACK COMPATIBILITY.
DO NOT CREATE DUPLICATION BUGS.
The final result MUST be a complete, stable, production-ready PotatoTimeTravel plugin that follows every requirement above.
Build the Maven/Paper 1.21 project from scratch with Persian custom items, PDC IDs, configuration, and persistent data.
Add the isolated NASA crafting flow, exact rocket/space recipes, assembly GUI, and read-only recipe book.
Add commands, launch-pad/rocket handling, fuel, moon configuration, and travel persistence.
Created a fresh Maven/Paper 1.21 plugin with Persian PDC-backed items, the NASA crafting station and rocket recipes, assembly and recipe-book GUIs, persisted construction and rocket data, admin give commands, moon-world configuration, and rocket fuel/travel handling.
Important limitation: the project was empty, so there was no existing Future World, resource, or command implementation to preserve. This fresh project therefore cannot preserve those absent systems, and it does not implement the full requested feature set.
package ir.potatocraft.timetravel;
import ir.potatocraft.timetravel.command.RocketCommand;
import ir.potatocraft.timetravel.crafting.RecipeRegistry;
import ir.potatocraft.timetravel.gui.GUIManager;
import ir.potatocraft.timetravel.item.CustomItemManager;
import ir.potatocraft.timetravel.rocket.RocketService;
import ir.potatocraft.timetravel.storage.DataManager;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;
public final class PotatoTimeTravel extends JavaPlugin {
private CustomItemManager items;
private DataManager data;
private RecipeRegistry recipes;
private GUIManager guiManager;
private RocketService rocketService;
@Override
public void onEnable() {
saveDefaultConfig();
items = new CustomItemManager(this);
data = new DataManager(this);
data.recoverInterruptedTravels();
recipes = new RecipeRegistry(this, items);
recipes.registerNasaTableRecipe();
guiManager = new GUIManager(this, items, data, recipes);
rocketService = new RocketService(this, items, data);
Bukkit.getPluginManager().registerEvents(guiManager, this);
Bukkit.getPluginManager().registerEvents(rocketService, this);
RocketCommand command = new RocketCommand(this, items, data, guiManager);
getCommand("rocket").setExecutor(command);
getCommand("rocket").setTabCompleter(command);
getCommand("moon").setExecutor(command);
getCommand("timetravel").setExecutor(command);
guiManager.resumeConstructions();
getLogger().info("PotatoTimeTravel enabled.");
}
@Override
public void onDisable() {
if (data != null) data.save();
}
public CustomItemManager items() { return items; }
public DataManager data() { return data; }
public RecipeRegistry recipes() { return recipes; }
}