Adam Nowakowski
📎 1 file 8,013 chars
📄
pasted-code-1794387741803.txt
txt 216 lines
▶
# PORTAL GUN PRIME — COMPLETE PROJECT PROMPT

Create a fully functional Minecraft Java Edition 1.21.11 Portal Gun inspired by **Rick Prime's technology**.

## 1. Minecraft environment
- Minecraft Java Edition 1.21.11.
- Server: Aternos.
- Server software: Purpur.
- The project must work on a multiplayer server.
- Do not require players to install client-side mods.
- Use compatible server-side plugins, datapacks and resource packs where necessary.
- Explain exactly where every generated file must be installed.
- Do not provide fake or incomplete functionality. Clearly identify anything that cannot be implemented without a client mod.

## 2. Portal Gun appearance and item
Create a unique Portal Gun Prime item.

The weapon must have:
- A massive, angular, square-shaped body.
- A glowing green sphere.
- Green technological details and particles.
- A visible trigger.
- A crank on the left side.
- A small red display on the handle, NOT on the side of the main body.
- Detailed futuristic handle.
- A distinctive Rick Prime aesthetic.

The item must have its own custom texture and model.

Use Popped Chorus Fruit as the base item, but make sure ordinary Popped Chorus Fruit remains unchanged.

The weapon must have:
- Custom name: PORTAL GUN PRIME.
- Custom lore.
- Unique visual appearance.
- No accidental activation when holding ordinary Popped Chorus Fruit.

## 3. Special crafting recipe
The Portal Gun must be obtainable through a difficult, special crafting recipe.

Requirements:
- The recipe must be available to all players.
- It must be craftable in a crafting table.
- It must be difficult and expensive.
- The recipe must be documented clearly.
- Crafting must produce the actual custom Portal Gun, not an ordinary item.

Suggested ingredients:
- Nether Star.
- Dragon Egg.
- Echo Shards.
- Netherite Ingots.
- Netherite Block.

You may improve the recipe if necessary, but keep it extremely difficult.

## 4. Special crafting sound
When a player successfully crafts the Portal Gun:
- Play a unique futuristic technological sound.
- Make it feel like an advanced experimental weapon activating.
- Add green particles around the crafting player if technically possible.
- The sound must only play when the actual Portal Gun is crafted.
- Do not play it for ordinary crafting.

Use appropriate Minecraft sounds or a custom sound in the resource pack.

## 5. Special GUI
Create a custom GUI inspired by the interface from this Portal Gun add-on:

https://www.curseforge.com/minecraft-bedrock/addons/portal-gun-addon-tek

Important:
- Use the GUI style and layout as inspiration.
- Adapt it to Rick Prime's technology.
- The interface should be predominantly white and light gray.
- Include green technological accents.
- Do not include a portrait of Rick.
- Do not include a charge meter.
- Do not use vampire imagery, fangs or vampire eyes.
- Do not make a generic green dashboard.
- Make the interface look like an actual Portal Gun control panel.

The GUI should include:
- A list of saved destinations.
- Dimension information.
- Coordinates.
- A way to select a destination.
- An option to add a custom destination.
- An option to delete a custom destination.
- Blender Mode toggle.
- Clear visual indication of the currently selected destination.

Use the best possible implementation without client-side mods. If a fully independent custom screen is impossible, create the closest possible inventory-based GUI with a custom resource pack.

## 6. Sixteen built-in destinations

Include these destinations in the exact order:

1. OMEGA — Overworld: 29999979.749 313 29999981.786
2. WIOSKA 2.0 — Overworld: -1793 209 -2010
3. DOMEK — Overworld: -1494 56 -621
4. BAZA W ENDZIE — The End: -2032 10 -533
5. BURGER MART — Overworld: -1638.5 64 -590.5
6. CENTRUM HANDLOWE — Overworld: -1513.5 68 -510.5
7. DOM PABLO — Overworld: -1481.5 70 -434.5
8. DOM OLKA — Overworld: -1604.5 66 -454.5
9. DOM JANKA — Overworld: -1626.602 -63 -494.176
10. THE END — The End: 3.752 61 -5.281
11. THE NETHER — Nether: -218.539 97 -235.703
12. DOM KURFIXERA — Overworld: -1603.657 116 -603.302
13. COMMAND BLOCKI END — The End: 29999977.442 71 29999939.858
14. TAJNA BAZA — Overworld: -1519.602 53 -645.494
15. BUNKIER BEZPIECZENSTWA — Overworld: -1504.626 62 -647.690
16. STASH / MAGAZYN — The End: -1443.497 3 -15.489

The system must correctly switch dimensions before teleporting.

## 7. Custom destinations
Players must be able to:
- Add their own destination.
- Enter a custom name.
- Save the dimension.
- Save X, Y and Z coordinates.
- Select and delete their own saved destinations.

Each player's custom destinations must be private to that player.

The 16 built-in destinations should be available to everyone.

## 8. Portal mechanics
The Portal Gun should work like an advanced portal weapon.

Requirements:
- Left-click and right-click controls must be clearly defined.
- The player can select a destination in the GUI.
- Activating the gun creates a green oval portal.
- The portal must be vertical and oval-shaped.
- Use green particles to create a smooth portal outline.
- The portal must appear in front of the player, not follow them.
- The portal must not look like a green circle or an inappropriate shape.
- The portal should remain open for 5 seconds.
- Entering the portal teleports the player to the selected destination.
- The portal disappears after 5 seconds.
- The portal must not teleport players repeatedly in a loop.
- Prevent accidental repeated activation.
- No unnecessary chat spam.

## 9. Blender Mode
Add a special Blender Mode.

When enabled:
- Any entity entering the portal is eliminated.
- This includes the portal owner.
- It must not be possible to bypass this mode using a Totem of Undying.
- The portal owner is not exempt.
- The effect only applies to entities entering the active portal.
- The normal teleport function is disabled while Blender Mode is active.

Make sure this is implemented safely and reliably.

## 10. Multiplayer
- Every player can craft their own Portal Gun.
- Every player can use their own Portal Gun.
- Every player has their own selected destination.
- Every player has their own custom destinations.
- One player's GUI selection must not change another player's selection.
- One player's portal must not interfere with another player's portal.
- Prevent players from activating someone else's portal settings accidentally.

## 11. Sounds and effects
Add unique sounds for:
- Opening the GUI.
- Selecting a destination.
- Activating the Portal Gun.
- Opening a portal.
- Entering a portal.
- Closing a portal.
- Activating Blender Mode.
- Crafting the Portal Gun.

Use custom sounds where possible, with a resource pack.

Add appropriate green particles and futuristic effects without causing excessive server lag.

## 12. Technical requirements
- Use compatible Minecraft 1.21.11 syntax.
- Do not use obsolete commands or outdated datapack formats.
- Do not require unavailable Skript addons.
- Do not assume that a datapack can directly create a completely custom client interface.
- Use a plugin if required for GUI functionality.
- Use a resource pack for custom models, textures and sounds.
- Ensure that all files have the correct folder structure.
- Include all required configuration files.
- Make sure the project can be installed on Aternos.

## 13. Deliverables
Generate:
1. The complete server plugin or datapack.
2. The custom resource pack.
3. The Portal Gun model and texture.
4. The GUI implementation.
5. The crafting recipe.
6. The sound files or sound configuration.
7. All required configuration files.
8. A complete installation guide for Aternos.
9. A testing checklist.

Do not just describe how to make the project. Generate the actual files and complete code.

Before finishing, check for errors, missing dependencies and compatibility with Minecraft Java 1.21.11.

**PROJECT NAME: PORTAL GUN PRIME**

**CREATOR: REXOR_PRIME**

This is Rick Prime's original technology. It must not look like Rick C-137's equipment.
Kodari AI
KodariNov 11 at 9:03 am 1
PortalGunPrime
A complete Minecraft 1.21.11 datapack and resource pack system implementing Rick Prime's Portal Gun. Creates a custom Portal Gun Prime item using Popped Chorus Fruit with unique model, texture, and lore. Implements an expensive crafting recipe requiring Nether Star, Dragon Egg, and Netherite. Features an inventory-based GUI for destination selection with 16 built-in locations across all dimensions, plus private player custom destinations. Portal mechanics create green oval particle portals that teleport players to selected coordinates with proper dimension switching. Includes Blender Mode that eliminates any entity entering the portal, bypassing Totem of Undying. Provides custom sounds, particles, and multiplayer support with per-player state management. Includes complete installation guide for Aternos servers and testing checklist.

This is a Minecraft 1.21.4 datapack project, while you asked for a Purpur plugin for 1.21.11 and a custom resource pack; Kodari supports Java server plugins and datapacks, but not resource packs.

Adam Nowakowski

so make an datapack whitout resourse packs

Kodari AI
KodariNov 11 at 10:42 am 3
  • Build a vanilla 1.21.4 datapack with a hard recipe, player-private destination selection, a clickable chat menu, and five-second portal effects.

  • Support 16 shared destinations plus one private “save my current location” destination per player; use /trigger controls rather than client-side assets.

  • Keep the pack resource-pack-free and call out the client-side and datapack-only limits in the install notes.

Created the resource-pack-free datapack in portal_gun_prime/. It targets Minecraft Java 1.21.4 (pack format 48), not the 1.21.11 version in the attached specification.

It includes the difficult crafting recipe, a renamed and tagged Popped Chorus Fruit item, a clickable chat control panel, all 16 shared destinations, private per-player saved locations, dimension-aware teleporting, five-second particle portals, Blender Mode, and vanilla crafting/portal sounds.

Install: Download the ZIP using the export button and place the extracted portal_gun_prime folder in your world’s datapacks/ directory. On Aternos, upload it under the world’s datapacks folder. Run /reload, then /datapack list to confirm it loaded.

Use: Craft with the pattern NBN / SED / NEN: N = Netherite Ingot, B = Netherite Block, S = Nether Star, E = Echo Shard, D = Dragon Egg. Open controls with /trigger pg_menu set 1; select a destination, then activate with /trigger pg_fire set 1 while holding the crafted item. The menu also has save/delete custom destination and Blender Mode controls. Test by selecting a destination and activating near another player or entity.

Datapack-only limits: The control panel is clickable chat, not a custom inventory screen. The custom destination saves your current location (rounded to 0.1 block); you can’t enter a custom name or coordinates. Without a resource pack, there’s no custom gun model or texture—the item keeps the Popped Chorus Fruit appearance. Ordinary Popped Chorus Fruit is unchanged, but the crafted gun inherits that item’s vanilla use behavior; use the trigger command rather than right-clicking it to avoid consuming it.

Adam Nowakowski

can you make new one and name it 67 portal?

Kodari AI
KodariNov 11 at 10:49 am 1
  1. Rename the datapack folder and its in-game pack name to 67 Portal, keeping the existing functionality.

The datapack’s in-game name is now 67 Portal. Its folder is still portal_gun_prime; install that folder in your world’s datapacks/ directory, then run /reload.

Adam Nowakowski

ok what i need to do?

Kodari AI
KodariNov 11 at 10:54 am 1
  1. Download the ZIP using the export button and extract it.

  2. Install the 67_portal folder inside your world’s datapacks folder. Make sure pack.mcmeta is directly inside 67_portal, not buried in another folder.

    • On Aternos, stop the server, download the world, add the datapack to <world>/datapacks/, then upload the updated world again.

  3. Start the server and run /reload. Check that it loaded with /datapack list.

  4. Craft the Portal Gun, then open its controls with /trigger pg_menu set 1. Select a destination and activate it with /trigger pg_fire set 1 while holding the crafted item.

Version note: this pack targets Minecraft Java 1.21.4. Your original spec mentioned 1.21.11, so it isn’t verified for that version.

Kodari can make mistakes. Review important code before using.
Files
67_portal
Code
24 286
67_portal/data/portal_prime/function/menu/show.mcfunction
scoreboard players reset @s pg_menu
playsound minecraft:block.lectern.page_turn player @s ~ ~ ~ 0.8 1.2
tellraw @s [{"text":"╔ PORTAL GUN PRIME CONTROL PANEL ╗","color":"dark_green","bold":true}]
tellraw @s [{"text":"Select a destination below. Click an entry to select it.","color":"gray"}]
execute if score @s pg_blender_mode matches 1 run tellraw @s [{"text":"BLENDER MODE: ON — entities entering are killed","color":"dark_green","bold":true}]
execute unless score @s pg_blender_mode matches 1 run tellraw @s [{"text":"BLENDER MODE: OFF — entrants teleport normally","color":"gray"}]
execute if score @s pg_selected matches 1 run tellraw @s [{"text":"▶ SELECTED: OMEGA","color":"green","bold":true}]
execute if score @s pg_selected matches 2 run tellraw @s [{"text":"▶ SELECTED: WIOSKA 2.0","color":"green","bold":true}]
execute if score @s pg_selected matches 3 run tellraw @s [{"text":"▶ SELECTED: DOMEK","color":"green","bold":true}]
execute if score @s pg_selected matches 4 run tellraw @s [{"text":"▶ SELECTED: BAZA W ENDZIE","color":"green","bold":true}]
execute if score @s pg_selected matches 5 run tellraw @s [{"text":"▶ SELECTED: BURGER MART","color":"green","bold":true}]
execute if score @s pg_selected matches 6 run tellraw @s [{"text":"▶ SELECTED: CENTRUM HANDLOWE","color":"green","bold":true}]
execute if score @s pg_selected matches 7 run tellraw @s [{"text":"▶ SELECTED: DOM PABLO","color":"green","bold":true}]
execute if score @s pg_selected matches 8 run tellraw @s [{"text":"▶ SELECTED: DOM OLKA","color":"green","bold":true}]
execute if score @s pg_selected matches 9 run tellraw @s [{"text":"▶ SELECTED: DOM JANKA","color":"green","bold":true}]
execute if score @s pg_selected matches 10 run tellraw @s [{"text":"▶ SELECTED: THE END","color":"green","bold":true}]
execute if score @s pg_selected matches 11 run tellraw @s [{"text":"▶ SELECTED: THE NETHER","color":"green","bold":true}]
execute if score @s pg_selected matches 12 run tellraw @s [{"text":"▶ SELECTED: DOM KURFIXERA","color":"green","bold":true}]
execute if score @s pg_selected matches 13 run tellraw @s [{"text":"▶ SELECTED: COMMAND BLOCKI END","color":"green","bold":true}]
execute if score @s pg_selected matches 14 run tellraw @s [{"text":"▶ SELECTED: TAJNA BAZA","color":"green","bold":true}]
execute if score @s pg_selected matches 15 run tellraw @s [{"text":"▶ SELECTED: BUNKIER BEZPIECZENSTWA","color":"green","bold":true}]
execute if score @s pg_selected matches 16 run tellraw @s [{"text":"▶ SELECTED: STASH / MAGAZYN","color":"green","bold":true}]
execute if score @s pg_selected matches 17 run tellraw @s [{"text":"▶ SELECTED: CUSTOM DESTINATION","color":"green","bold":true}]
tellraw @s [{"text":"[1] OMEGA — Overworld 29999979.749 313 29999981.786","color":"white","clickEvent":{"action":"run_command","value":"/trigger pg_select set 1"},"hoverEvent":{"action":"show_text","contents":"Select OMEGA"}}]
tellraw @s [{"text":"[2] WIOSKA 2.0 — Overworld -1793 209 -2010","color":"gray","clickEvent":{"action":"run_command","value":"/trigger pg_select set 2"}}]
tellraw @s [{"text":"[3] DOMEK — Overworld -1494 56 -621","color":"white","clickEvent":{"action":"run_command","value":"/trigger pg_select set 3"}}]
tellraw @s [{"text":"[4] BAZA W ENDZIE — The End -2032 10 -533","color":"gray","clickEvent":{"action":"run_command","value":"/trigger pg_select set 4"}}]
tellraw @s [{"text":"[5] BURGER MART — Overworld -1638.5 64 -590.5","color":"white","clickEvent":{"action":"run_command","value":"/trigger pg_select set 5"}}]
tellraw @s [{"text":"[6] CENTRUM HANDLOWE — Overworld -1513.5 68 -510.5","color":"gray","clickEvent":{"action":"run_command","value":"/trigger pg_select set 6"}}]
tellraw @s [{"text":"[7] DOM PABLO — Overworld -1481.5 70 -434.5","color":"white","clickEvent":{"action":"run_command","value":"/trigger pg_select set 7"}}]
tellraw @s [{"text":"[8] DOM OLKA — Overworld -1604.5 66 -454.5","color":"gray","clickEvent":{"action":"run_command","value":"/trigger pg_select set 8"}}]
tellraw @s [{"text":"[9] DOM JANKA — Overworld -1626.602 -63 -494.176","color":"white","clickEvent":{"action":"run_command","value":"/trigger pg_select set 9"}}]
tellraw @s [{"text":"[10] THE END — The End 3.752 61 -5.281","color":"gray","clickEvent":{"action":"run_command","value":"/trigger pg_select set 10"}}]
tellraw @s [{"text":"[11] THE NETHER — Nether -218.539 97 -235.703","color":"white","clickEvent":{"action":"run_command","value":"/trigger pg_select set 11"}}]
tellraw @s [{"text":"[12] DOM KURFIXERA — Overworld -1603.657 116 -603.302","color":"gray","clickEvent":{"action":"run_command","value":"/trigger pg_select set 12"}}]
tellraw @s [{"text":"[13] COMMAND BLOCKI END — The End 29999977.442 71 29999939.858","color":"white","clickEvent":{"action":"run_command","value":"/trigger pg_select set 13"}}]
tellraw @s [{"text":"[14] TAJNA BAZA — Overworld -1519.602 53 -645.494","color":"gray","clickEvent":{"action":"run_command","value":"/trigger pg_select set 14"}}]
tellraw @s [{"text":"[15] BUNKIER BEZPIECZENSTWA — Overworld -1504.626 62 -647.690","color":"white","clickEvent":{"action":"run_command","value":"/trigger pg_select set 15"}}]
tellraw @s [{"text":"[16] STASH / MAGAZYN — The End -1443.497 3 -15.489","color":"gray","clickEvent":{"action":"run_command","value":"/trigger pg_select set 16"}}]
execute if score @s pg_custom_ready matches 1 run tellraw @s [{"text":"[17] CUSTOM DESTINATION — saved at your current location","color":"green","clickEvent":{"action":"run_command","value":"/trigger pg_select set 17"}}]
execute unless score @s pg_custom_ready matches 1 run tellraw @s [{"text":"[17] CUSTOM DESTINATION — save your location first","color":"dark_gray"}]
tellraw @s [{"text":"[OPEN PORTAL]","color":"green","bold":true,"clickEvent":{"action":"run_command","value":"/trigger pg_fire set 1"},"hoverEvent":{"action":"show_text","contents":"Hold the crafted Portal Gun first"}},{"text":"  [TOGGLE BLENDER]","color":"dark_green","clickEvent":{"action":"run_command","value":"/trigger pg_blender set 1"}},{"text":"  [SAVE CURRENT LOCATION]","color":"white","clickEvent":{"action":"run_command","value":"/trigger pg_custom set 1"}}]
execute if score @s pg_custom_ready matches 1 run tellraw @s [{"text":"[DELETE CUSTOM DESTINATION]","color":"red","clickEvent":{"action":"run_command","value":"/trigger pg_delete set 1"}}]
tellraw @s [{"text":"Portals appear in front of you and last 5 seconds. Activation requires holding the crafted item.","color":"gray","italic":true}]