Last active
February 28, 2023 14:02
-
-
Save Chaosmeister/b2d46c7a6b767d48c429cff020f1c15d to your computer and use it in GitHub Desktop.
Minecraft Menu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on rightclick: | |
if event-block is not interactable: | |
if name of event-item is "Funktionen": | |
cancel event | |
wait 5 ticks | |
close player's inventory | |
set {_gui} to a new chest inventory with 1 row with name "FunktionenGUI" | |
set slot 0 of {_gui} to torch named "Teleport" | |
set slot 2 of {_gui} to iron door named "Welten" | |
set slot 6 of {_gui} to ender pearl named "Gamemode" | |
set slot 7 of {_gui} to Sunflower named "Tag" | |
set slot 8 of {_gui} to chest named "Abfalleimer" | |
open {_gui} to player | |
on drop: | |
if event-item is stone named "Funktionen": | |
cancel event | |
on inventory click: | |
if name of event-inventory is "FunktionenGUI": | |
cancel event | |
if name of event-item is "Teleport": | |
set {_gui} to a new chest inventory with 1 row with name "TeleportGUI" | |
set {_index} to 0 | |
loop all players: | |
if loop-player is not player: | |
set slot {_index} of {_gui} to torch named name of loop-player | |
add 1 to {_index} | |
open {_gui} to player | |
if name of event-item is "Welten": | |
set {_gui} to a new chest inventory with 1 row with name "WeltGUI" | |
set {_index} to 0 | |
loop all worlds: | |
set slot {_index} of {_gui} to iron door named "%loop-value%" | |
add 1 to {_index} | |
open {_gui} to player | |
if name of event-item is "Gamemode": | |
set {_gui} to a new chest inventory with 1 row with name "GamemodeGUI" | |
set slot 0 of {_gui} to creeper head named "Survival" | |
set slot 1 of {_gui} to crafting table named "Kreativ" | |
open {_gui} to player | |
if name of event-item is "Abfalleimer": | |
set {_gui} to a new chest inventory with 1 row with name "Abfalleimer" | |
open {_gui} to player | |
if name of event-item is "Tag": | |
command "/time set morning %world%" | |
if name of event-inventory is "GamemodeGUI": | |
if event-item exists: | |
cancel event | |
if name of event-item is "Survival": | |
make player execute command "/gamemode survival %name of player%" | |
make player say "spielmodus: survival" | |
if name of event-item is "Kreativ": | |
make player execute command "/gamemode creative %name of player%" | |
make player say "spielmodus: kreativ" | |
if name of event-inventory is "TeleportGUI": | |
if event-item exists: | |
cancel event | |
make player execute command "/tp %name of event-item%" | |
if name of event-inventory is "WeltGUI": | |
if event-item exists: | |
cancel event | |
make player execute command "/world spawn %name of event-item%" | |
make player say "ist jetzt auf welt %name of event-item%" | |
on every 60 ticks: | |
loop all players: | |
if slot 8 of loop-player is not stone named "Funktionen": | |
set slot 8 of loop-player to 1 stone named "Funktionen" | |
if amount of stone named "Funktionen" of loop-player > 1: | |
remove all stone named "Funktionen" from loop-player | |
set slot 8 of loop-player to 1 stone named "Funktionen" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment