Hey guys, i wrote a skript for a gui menu with flansmod (it explains the id's):
command /choosegunsp:
trigger:
set {executor.player} to player
wait 1 tick
open chest with 1 row named "&c&l-Primary-" to player
format slot 0 of player with red stained glass named "&b" to be unstealable
format slot 1 of player with orange stained glass named "&b" to be unstealable
format slot 2 of player with 4308 named "&c&lM16A4" with lore "&cClick to choose the M16A4!" to close then run "choosepm16"
command choosepm16:
trigger:
execute console command "minecraft:give %{executor.player}% 4308 1 0 {attachments:{barrel:{Count:1,Damage:0,id:4266},grip:{Count:1,Damage:0,id:4264},scope:{Count:1,Damage:0,id:4265}}}"
execute console command "minecraft:give %{executor.player}% 4166 12 0"
execute console command "choosegunss"
command /choosegunss:
executable by: players and console
trigger:
set {executor.player} to player
wait 1 tick
open chest with 1 row named "&c&l-Secondary-" to player
format slot 0 of player with 4336 named "&c&lW1200" with lore "&cClick to choose the W1200" to close then run "choosesw1200"
command choosesw1200:
trigger:
execute console command "minecraft:give %{executor.player}% 4336 1 0 {attachments:{scope:{Count:1,Damage:0,id:4262},grip:{Count:1,Damage:0,id:4264}}}"
execute console command "minecraft:give %{executor.player}% 4197 8 0"
The first gui menu works, after i choose the m16a4 option, it executes the 2 console commands, but doesnt open the next gui (/choosegunss)
How can i fix that?
command /choosegunsp:
trigger:
set {executor.player} to player
wait 1 tick
open chest with 1 row named "&c&l-Primary-" to player
format slot 0 of player with red stained glass named "&b" to be unstealable
format slot 1 of player with orange stained glass named "&b" to be unstealable
format slot 2 of player with 4308 named "&c&lM16A4" with lore "&cClick to choose the M16A4!" to close then run "choosepm16"
command choosepm16:
trigger:
execute console command "minecraft:give %{executor.player}% 4308 1 0 {attachments:{barrel:{Count:1,Damage:0,id:4266},grip:{Count:1,Damage:0,id:4264},scope:{Count:1,Damage:0,id:4265}}}"
execute console command "minecraft:give %{executor.player}% 4166 12 0"
execute console command "choosegunss"
command /choosegunss:
executable by: players and console
trigger:
set {executor.player} to player
wait 1 tick
open chest with 1 row named "&c&l-Secondary-" to player
format slot 0 of player with 4336 named "&c&lW1200" with lore "&cClick to choose the W1200" to close then run "choosesw1200"
command choosesw1200:
trigger:
execute console command "minecraft:give %{executor.player}% 4336 1 0 {attachments:{scope:{Count:1,Damage:0,id:4262},grip:{Count:1,Damage:0,id:4264}}}"
execute console command "minecraft:give %{executor.player}% 4197 8 0"
The first gui menu works, after i choose the m16a4 option, it executes the 2 console commands, but doesnt open the next gui (/choosegunss)
How can i fix that?