add command alias and function for opening the main menu
This commit is contained in:
parent
f4fb8952e9
commit
fc37caa161
@ -1 +1,2 @@
|
||||
scoreboard objectives add transportCreative trigger
|
||||
scoreboard objectives add menu trigger
|
||||
|
||||
1
data/ferdinland/function/command/menu_open.mcfunction
Normal file
1
data/ferdinland/function/command/menu_open.mcfunction
Normal file
@ -0,0 +1 @@
|
||||
guis open menu
|
||||
@ -1,3 +1,7 @@
|
||||
scoreboard players enable @a transportCreative
|
||||
execute as @a[scores={transportCreative=1..}] run say test
|
||||
execute as @a[scores={transportCreative=1..}] run function ferdinland:command/transport_creative
|
||||
scoreboard players set @a transportCreative 0
|
||||
|
||||
scoreboard players enable @a menu
|
||||
execute as @a[scores={menu=1..}] run function ferdinland:command/menu_open
|
||||
scoreboard players set @a menu 0
|
||||
|
||||
Loading…
Reference in New Issue
Block a user