#MxGuiCreator v0.1 #Autor skryptu: MichixYT #Wymagania: #- Skript 2.2-Dev35 lub wyzszy command /mxguicreator [] []: aliases: mxgc, gc, guicreator permission: mxguicreator.use permission message: &8» &cBrak uprawnien! trigger: if arg-1 is not set: send "&8» &cDostepne argumenty: stworz, usun, edytuj" stop if arg-2 is not set: send "&8» &cPodaj nazwe GUI" stop if arg-1 is "stworz": if {mxgc::%arg-2%} is set: send "&8» &cIstnieje juz GUI o takiej nazwie" stop set {mxgc::%arg-2%} to true open chest inventory with 3 rows named arg-2 to player set {mxgc::create::%player%} to true stop if arg-1 is "usun": if {mxgc::%arg-2%} is not set: send "&8» &cGUI o takiej nazwie nie istnieje" stop clear {mxgc::%arg-2%} clear {mxgc::%arg-2%::*} send "&8» &cUsunales GUI o nazwie %arg-2%" if arg-1 is "edytuj": if {mxgc::%arg-2%} is not set: send "&8» &cGUI o takiej nazwie nie istnieje" stop set {mxgc::create::%player%} to true open chest inventory with 3 rows named arg-2 to player loop 27 times: set slot loop-number - 1 of player's current inventory to {mxgc::%arg-2%::slot::%loop-number - 1%} on inventory click: if name of player's current inventory contains " - Konfiguracja slotu ": if clicked slot is 10: close player's inventory wait 2 ticks send "&8» &aWpisz komende na chacie (bez &2/&a), wpisz &2anuluj &aaby anulowac" set {mxgc::create::%player%::slot} to true stop if {mxgc::%name of player's current inventory%} is not set: stop if {mxgc::create::%player%} is not set: if clicked inventory is player's inventory: stop cancel event if {mxgc::%name of player's current inventory%::slot::%clicked slot%::command} is set: close player's inventory execute player command "%{mxgc::%name of player's current inventory%::slot::%clicked slot%::command}%" else: if clicked type is right mouse button: set {_slot} to "%clicked slot%" set {_inventory} to name of player's current inventory close player's inventory open chest inventory with 3 rows named "%{_inventory}% - Konfiguracja slotu %clicked slot%" to player set slot 10 of player's current inventory to bedrock named "Wykonaj komende" stop wait 1 tick set {_s} to clicked slot set {mxgc::%name of player's current inventory%::slot::%clicked slot%} to slot {_s} of player's current inventory on inventory close: clear {mxgc::create::%player%} on command: if {mxgc::%command%} is set: cancel event open chest inventory with 3 rows named command to player loop 27 times: set slot loop-number - 1 of player's current inventory to {mxgc::%command%::slot::%loop-number - 1%} on chat: if {mxgc::create::%player%::slot} is not set: stop if message is "anuluj": cancel event clear {mxgc::create::%player%::slot} send "&8» &aPomyslnie anulowales" stop cancel event clear {mxgc::create::%player%::slot} set {mxgc::%{_inventory}%::slot::%{_slot}%::command} to message send "&8» &aPomyslnie ustawiles komende na &2/%message%"