diff --git a/data/ferdinland/function/command/init.mcfunction b/data/ferdinland/function/command/init.mcfunction index 05a1e71..13a39cf 100644 --- a/data/ferdinland/function/command/init.mcfunction +++ b/data/ferdinland/function/command/init.mcfunction @@ -1,2 +1,3 @@ scoreboard objectives add transportCreative trigger +scoreboard objectives add transportSMP trigger scoreboard objectives add menu trigger diff --git a/data/ferdinland/function/command/transport_smp.mcfunction b/data/ferdinland/function/command/transport_smp.mcfunction new file mode 100644 index 0000000..364bd4e --- /dev/null +++ b/data/ferdinland/function/command/transport_smp.mcfunction @@ -0,0 +1 @@ +transfer 10.0.0.13 25566 diff --git a/data/ferdinland/function/command/trigger.mcfunction b/data/ferdinland/function/command/trigger.mcfunction index c5cd932..16533a3 100644 --- a/data/ferdinland/function/command/trigger.mcfunction +++ b/data/ferdinland/function/command/trigger.mcfunction @@ -2,6 +2,10 @@ scoreboard players enable @a transportCreative execute as @a[scores={transportCreative=1..}] run function ferdinland:command/transport_creative scoreboard players set @a transportCreative 0 +scoreboard players enable @a transportSMP +execute as @a[scores={transportSMP=1..}] run function ferdinland:command/transport_creative +scoreboard players set @a transportSMP 0 + scoreboard players enable @a menu execute as @a[scores={menu=1..}] run function ferdinland:command/menu_open scoreboard players set @a menu 0