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}]