Hello, i am anting to know if it is possible to change what is in a gui menu based on what was pressed on the gui menu before without making several gui menus. Example: In gui menu i press plotmine 1 then it opens gui menu where i can change the blocks, then if i press plotmine 2 it opens the same gui menu just where i can change the blocks to something other then from plotmine 1, thanks here is code.
Code:
command /plotminesetup:
description: Menu that players use to setup their plotmines
executable by: players
permission: plotmine.setup
trigger:
set {_netherstar::*} to "&bSmå &8»&7 %{plotmines.small.%player%}%&8/%{plotmines.small.all.%player%}%", "&bMellem &8»&7 %{plotmines.medium.%player%}%&8/%{plotmines.medium.all.%player%}%", "&bStore &8»&7 %{plotmines.big.%player%}%&8/%{plotmines.big.all.%player%}%", "" and "&cKlik for at gå tilbage"
if {plotmines.small.all.%player%}, {plotmines.medium.all.%player%} or {plotmines.big.all.%player%} is greater than 0:
wait 2 ticks
open chest with 6 rows named "&9&lPlotmine - Opsæt" to player
wait 1 tick
format slot 0 of player with blue stained glass pane named "-" to be unstealable
format slot 1 of player with purple stained glass pane named "-" to be unstealable
format slot 2 of player with blue stained glass pane named "-" to be unstealable
format slot 3 of player with purple stained glass pane named "-" to be unstealable
format slot 4 of player with blue stained glass pane named "-" to be unstealable
format slot 5 of player with purple stained glass pane named "-" to be unstealable
format slot 6 of player with blue stained glass pane named "-" to be unstealable
format slot 7 of player with purple stained glass pane named "-" to be unstealable
format slot 8 of player with blue stained glass pane named "-" to be unstealable
format slot 10 of player with iron pickaxe named "&9&lSmå plotmines" with lore "&7Her ses dine små plotmines" to be unstealable
format slot 13 of player with gold pickaxe named "&9&lMellem plotmines" with lore "&7Her ses dine mellem plotmines" to be unstealable
format slot 16 of player with diamond pickaxe named "&9&lStore plotmines" with lore "&7Her ses dine store plotmines" to be unstealable
format slot 19 of player with red clay named "&c&lLille plotmine 1" with lore "&7Du ejer ikke en lille plotmine" to be unstealable
format slot 22 of player with red clay named "&c&lMellem plotmine 1" with lore "&7Du ejer ikke en mellem plotmine" to be unstealable
format slot 25 of player with red clay named "&c&lStor plotmine 1" with lore "&7Du ejer ikke en stor plotmine" to be unstealable
format slot 28 of player with red clay named "&c&lLille plotmine 2" with lore "&7Du ejer ikke lille plotmine nr. 2" to be unstealable
format slot 31 of player with red clay named "&c&lMellem plotmine 2" with lore "&7Du ejer ikke mellem plotmine nr. 2" to be unstealable
format slot 34 of player with red clay named "&c&lStor plotmine 2" with lore "&7Du ejer ikke stor plotmine nr. 2" to be unstealable
format slot 37 of player with red clay named "&c&lLille plotmine 3" with lore "&7Du ejer ikke lille plotmine nr. 3" to be unstealable
format slot 40 of player with red clay named "&c&lMellem plotmine 3" with lore "&7Du ejer ikke mellem plotmine nr. 3" to be unstealable
format slot 43 of player with red clay named "&c&lStor plotmine 3" with lore "&7Du ejer ikke stor plotmine nr. 3" to be unstealable
format slot 49 of player with nether star named "&9&lDine plotmines" with lore {_netherstar::*} to close then run [execute player command "/plotmine"]
format slot 45 of player with blue stained glass pane named "-" to be unstealable
format slot 46 of player with purple stained glass pane named "-" to be unstealable
format slot 47 of player with blue stained glass pane named "-" to be unstealable
format slot 48 of player with purple stained glass pane named "-" to be unstealable
format slot 50 of player with purple stained glass pane named "-" to be unstealable
format slot 51 of player with blue stained glass pane named "-" to be unstealable
format slot 52 of player with purple stained glass pane named "-" to be unstealable
format slot 53 of player with blue stained glass pane named "-" to be unstealable
if {plotmines.small.all.%player%} is greater than 0:
format slot 19 of player with lime clay named "&2&lLille plotmine 1" with lore "&7Klik for at sætte/fjerne dine plotmines" to be unstealable
if {plotmines.small.all.%player%} is greater than 1:
format slot 28 of player with lime clay named "&2&lLille plotmine 2" with lore "&7Klik for at sætte/fjerne dine plotmines" to be unstealable
if {plotmines.small.all.%player%} is greater than 2:
format slot 37 of player with lime clay named "&2&lLille plotmine 3" with lore "&7Klik for at sætte/fjerne dine plotmines" to be unstealable
if {plotmines.medium.all.%player%} is greater than 0:
format slot 22 of player with lime clay named "&2&lMellem plotmine 1" with lore "&7Klik for at sætte/fjerne dine plotmines" to be unstealable
if {plotmines.medium.all.%player%} is greater than 1:
format slot 31 of player with lime clay named "&2&lMellem plotmine 2" with lore "&7Klik for at sætte/fjerne dine plotmines" to be unstealable
if {plotmines.medium.all.%player%} is greater than 2:
format slot 40 of player with lime clay named "&2&lMellem plotmine 3" with lore "&7Klik for at sætte/fjerne dine plotmines" to be unstealable
if {plotmines.big.all.%player%} is greater than 0:
format slot 25 of player with lime clay named "&2&lStor plotmine 1" with lore "&7Klik for at sætte/fjerne dine plotmines" to be unstealable
if {plotmines.big.all.%player%} is greater than 1:
format slot 34 of player with lime clay named "&2&lStor plotmine 2" with lore "&7Klik for at sætte/fjerne dine plotmines" to be unstealable
if {plotmines.big.all.%player%} is greater than 2:
format slot 43 of player with lime clay named "&2&lStor plotmine 3" with lore "&7Klik for at sætte/fjerne dine plotmines" to be unstealable
else if {plotmines.small.%player%}, {plotmines.medium.%player%} and {plotmines.big.%player%} is 0:
message "&c&lFEJL &8» &7Du ejer ingen plotmines, køb dem i /buy"
command /plotmineblocks:
description: Change what blocks are in your plotmine
executable by: players
permission: plotmine.blocks
trigger:
set {_netherstar::*} to "&bSmå &8»&7 %{plotmines.small.%player%}%&8/%{plotmines.small.all.%player%}%", "&bMellem &8»&7 %{plotmines.medium.%player%}%&8/%{plotmines.medium.all.%player%}%", "&bStore &8»&7 %{plotmines.big.%player%}%&8/%{plotmines.big.all.%player%}%", "" and "&cKlik for at gå tilbage"
if {plotmines.small.all.%player%}, {plotmines.medium.all.%player%} or {plotmines.big.all.%player%} is greater than 0:
wait 2 ticks
open chest with 6 rows named "&9&lPlotmine - Opsæt" to player
wait 1 tick
format slot 0 of player with blue stained glass pane named "-" to be unstealable
format slot 1 of player with purple stained glass pane named "-" to be unstealable
format slot 2 of player with blue stained glass pane named "-" to be unstealable
format slot 3 of player with purple stained glass pane named "-" to be unstealable
format slot 4 of player with blue stained glass pane named "-" to be unstealable
format slot 5 of player with purple stained glass pane named "-" to be unstealable
format slot 6 of player with blue stained glass pane named "-" to be unstealable
format slot 7 of player with purple stained glass pane named "-" to be unstealable
format slot 8 of player with blue stained glass pane named "-" to be unstealable
format slot 49 of player with nether star named "&9&lDine plotmines" with lore {_netherstar::*} to close then run [execute player command "/plotmine"]
format slot 45 of player with blue stained glass pane named "-" to be unstealable
format slot 46 of player with purple stained glass pane named "-" to be unstealable
format slot 47 of player with blue stained glass pane named "-" to be unstealable
format slot 48 of player with purple stained glass pane named "-" to be unstealable
format slot 50 of player with purple stained glass pane named "-" to be unstealable
format slot 51 of player with blue stained glass pane named "-" to be unstealable
format slot 52 of player with purple stained glass pane named "-" to be unstealable
format slot 53 of player with blue stained glass pane named "-" to be unstealable