-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
47 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,2 @@ | ||
scoreboard players set #1 calcu_temp 0 | ||
function galaxy:block/elevator/scan_to_temp-down | ||
execute if score #1 calcu_temp matches 1.. run function galaxy:block/elevator/tp-down | ||
function galaxy:block/elevator/tp-down | ||
tag @a[tag=reqElevatorGoDown] remove reqElevatorGoDown |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,2 @@ | ||
scoreboard players set #1 calcu_temp 0 | ||
function galaxy:block/elevator/scan_to_temp-up | ||
execute if score #1 calcu_temp matches 1.. run function galaxy:block/elevator/tp-up | ||
function galaxy:block/elevator/tp-up | ||
tag @a[tag=reqElevatorGoUp] remove reqElevatorGoUp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 0 additions & 6 deletions
6
data/galaxy/functions/block/elevator/scan_to_temp-down.mcfunction
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
data/galaxy/functions/block/elevator/scan_to_temp-up.mcfunction
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,21 @@ | ||
execute if score @s elevatorTempDown matches 2 as @a[tag=reqElevatorGoDown] at @s run tp @s ~ ~-2 ~ | ||
execute if score @s elevatorTempDown matches 3 as @a[tag=reqElevatorGoDown] at @s run tp @s ~ ~-3 ~ | ||
execute if score @s elevatorTempDown matches 4 as @a[tag=reqElevatorGoDown] at @s run tp @s ~ ~-4 ~ | ||
execute if score @s elevatorTempDown matches 5 as @a[tag=reqElevatorGoDown] at @s run tp @s ~ ~-5 ~ | ||
execute if score @s elevatorTempDown matches 6 as @a[tag=reqElevatorGoDown] at @s run tp @s ~ ~-6 ~ | ||
execute if score @s elevatorTempDown matches 7 as @a[tag=reqElevatorGoDown] at @s run tp @s ~ ~-7 ~ | ||
execute if score @s elevatorTempDown matches 8 as @a[tag=reqElevatorGoDown] at @s run tp @s ~ ~-8 ~ | ||
execute if score @s elevatorTempDown matches 9 as @a[tag=reqElevatorGoDown] at @s run tp @s ~ ~-9 ~ | ||
execute if score @s elevatorTempDown matches 10 as @a[tag=reqElevatorGoDown] at @s run tp @s ~ ~-10 ~ | ||
execute if score @s elevatorTempDown matches 11 as @a[tag=reqElevatorGoDown] at @s run tp @s ~ ~-11 ~ | ||
execute if score @s elevatorTempDown matches 12 as @a[tag=reqElevatorGoDown] at @s run tp @s ~ ~-12 ~ | ||
execute if score @s elevatorTempDown matches 13 as @a[tag=reqElevatorGoDown] at @s run tp @s ~ ~-13 ~ | ||
execute if score @s elevatorTempDown matches 14 as @a[tag=reqElevatorGoDown] at @s run tp @s ~ ~-14 ~ | ||
execute if score @s elevatorTempDown matches 15 as @a[tag=reqElevatorGoDown] at @s run tp @s ~ ~-15 ~ | ||
execute if score @s elevatorTempDown matches 16 as @a[tag=reqElevatorGoDown] at @s run tp @s ~ ~-16 ~ | ||
function galaxy:block/elevator/scan_init | ||
tag @e[tag=elevatorScanner] add checkDown | ||
execute as @e[tag=elevatorScanner] at @s run function galaxy:block/elevator/scan | ||
|
||
execute at @a[tag=reqElevatorGoDown] run function galaxy:block/elevator/sound-teleport | ||
execute if score #1 calcu_temp matches 2 as @a[tag=reqElevatorGoDown] at @s run tp @s ~ ~-2 ~ | ||
execute if score #1 calcu_temp matches 3 as @a[tag=reqElevatorGoDown] at @s run tp @s ~ ~-3 ~ | ||
execute if score #1 calcu_temp matches 4 as @a[tag=reqElevatorGoDown] at @s run tp @s ~ ~-4 ~ | ||
execute if score #1 calcu_temp matches 5 as @a[tag=reqElevatorGoDown] at @s run tp @s ~ ~-5 ~ | ||
execute if score #1 calcu_temp matches 6 as @a[tag=reqElevatorGoDown] at @s run tp @s ~ ~-6 ~ | ||
execute if score #1 calcu_temp matches 7 as @a[tag=reqElevatorGoDown] at @s run tp @s ~ ~-7 ~ | ||
execute if score #1 calcu_temp matches 8 as @a[tag=reqElevatorGoDown] at @s run tp @s ~ ~-8 ~ | ||
execute if score #1 calcu_temp matches 9 as @a[tag=reqElevatorGoDown] at @s run tp @s ~ ~-9 ~ | ||
execute if score #1 calcu_temp matches 10 as @a[tag=reqElevatorGoDown] at @s run tp @s ~ ~-10 ~ | ||
execute if score #1 calcu_temp matches 11 as @a[tag=reqElevatorGoDown] at @s run tp @s ~ ~-11 ~ | ||
execute if score #1 calcu_temp matches 12 as @a[tag=reqElevatorGoDown] at @s run tp @s ~ ~-12 ~ | ||
execute if score #1 calcu_temp matches 13 as @a[tag=reqElevatorGoDown] at @s run tp @s ~ ~-13 ~ | ||
execute if score #1 calcu_temp matches 14 as @a[tag=reqElevatorGoDown] at @s run tp @s ~ ~-14 ~ | ||
execute if score #1 calcu_temp matches 15 as @a[tag=reqElevatorGoDown] at @s run tp @s ~ ~-15 ~ | ||
execute if score #1 calcu_temp matches 16 as @a[tag=reqElevatorGoDown] at @s run tp @s ~ ~-16 ~ | ||
|
||
execute if score #1 calcu_temp matches 2..16 at @a[tag=reqElevatorGoDown] run function galaxy:block/elevator/sound-teleport |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,21 @@ | ||
execute if score @s elevatorTempUp matches 2 as @a[tag=reqElevatorGoUp] at @s run tp @s ~ ~2 ~ | ||
execute if score @s elevatorTempUp matches 3 as @a[tag=reqElevatorGoUp] at @s run tp @s ~ ~3 ~ | ||
execute if score @s elevatorTempUp matches 4 as @a[tag=reqElevatorGoUp] at @s run tp @s ~ ~4 ~ | ||
execute if score @s elevatorTempUp matches 5 as @a[tag=reqElevatorGoUp] at @s run tp @s ~ ~5 ~ | ||
execute if score @s elevatorTempUp matches 6 as @a[tag=reqElevatorGoUp] at @s run tp @s ~ ~6 ~ | ||
execute if score @s elevatorTempUp matches 7 as @a[tag=reqElevatorGoUp] at @s run tp @s ~ ~7 ~ | ||
execute if score @s elevatorTempUp matches 8 as @a[tag=reqElevatorGoUp] at @s run tp @s ~ ~8 ~ | ||
execute if score @s elevatorTempUp matches 9 as @a[tag=reqElevatorGoUp] at @s run tp @s ~ ~9 ~ | ||
execute if score @s elevatorTempUp matches 10 as @a[tag=reqElevatorGoUp] at @s run tp @s ~ ~10 ~ | ||
execute if score @s elevatorTempUp matches 11 as @a[tag=reqElevatorGoUp] at @s run tp @s ~ ~11 ~ | ||
execute if score @s elevatorTempUp matches 12 as @a[tag=reqElevatorGoUp] at @s run tp @s ~ ~12 ~ | ||
execute if score @s elevatorTempUp matches 13 as @a[tag=reqElevatorGoUp] at @s run tp @s ~ ~13 ~ | ||
execute if score @s elevatorTempUp matches 14 as @a[tag=reqElevatorGoUp] at @s run tp @s ~ ~14 ~ | ||
execute if score @s elevatorTempUp matches 15 as @a[tag=reqElevatorGoUp] at @s run tp @s ~ ~15 ~ | ||
execute if score @s elevatorTempUp matches 16 as @a[tag=reqElevatorGoUp] at @s run tp @s ~ ~16 ~ | ||
function galaxy:block/elevator/scan_init | ||
tag @e[tag=elevatorScanner] add checkUp | ||
execute as @e[tag=elevatorScanner] at @s run function galaxy:block/elevator/scan | ||
|
||
execute at @a[tag=reqElevatorGoUp] run function galaxy:block/elevator/sound-teleport | ||
execute if score #1 calcu_temp matches 2 as @a[tag=reqElevatorGoUp] at @s run tp @s ~ ~2 ~ | ||
execute if score #1 calcu_temp matches 3 as @a[tag=reqElevatorGoUp] at @s run tp @s ~ ~3 ~ | ||
execute if score #1 calcu_temp matches 4 as @a[tag=reqElevatorGoUp] at @s run tp @s ~ ~4 ~ | ||
execute if score #1 calcu_temp matches 5 as @a[tag=reqElevatorGoUp] at @s run tp @s ~ ~5 ~ | ||
execute if score #1 calcu_temp matches 6 as @a[tag=reqElevatorGoUp] at @s run tp @s ~ ~6 ~ | ||
execute if score #1 calcu_temp matches 7 as @a[tag=reqElevatorGoUp] at @s run tp @s ~ ~7 ~ | ||
execute if score #1 calcu_temp matches 8 as @a[tag=reqElevatorGoUp] at @s run tp @s ~ ~8 ~ | ||
execute if score #1 calcu_temp matches 9 as @a[tag=reqElevatorGoUp] at @s run tp @s ~ ~9 ~ | ||
execute if score #1 calcu_temp matches 10 as @a[tag=reqElevatorGoUp] at @s run tp @s ~ ~10 ~ | ||
execute if score #1 calcu_temp matches 11 as @a[tag=reqElevatorGoUp] at @s run tp @s ~ ~11 ~ | ||
execute if score #1 calcu_temp matches 12 as @a[tag=reqElevatorGoUp] at @s run tp @s ~ ~12 ~ | ||
execute if score #1 calcu_temp matches 13 as @a[tag=reqElevatorGoUp] at @s run tp @s ~ ~13 ~ | ||
execute if score #1 calcu_temp matches 14 as @a[tag=reqElevatorGoUp] at @s run tp @s ~ ~14 ~ | ||
execute if score #1 calcu_temp matches 15 as @a[tag=reqElevatorGoUp] at @s run tp @s ~ ~15 ~ | ||
execute if score #1 calcu_temp matches 16 as @a[tag=reqElevatorGoUp] at @s run tp @s ~ ~16 ~ | ||
|
||
execute if score #1 calcu_temp matches 2..16 at @a[tag=reqElevatorGoUp] run function galaxy:block/elevator/sound-teleport |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters