Skip to content

Commit

Permalink
Fix mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
DinnerBeef committed Oct 18, 2024
1 parent b79666a commit b461e11
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion data/lt/function/systems/elevator/on_tick.mcfunction
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
execute as @e[predicate=lt:elevator/go_down] at @s if score @s system.elevator matches 0 run function lt:systems/elevator/teleport_down with entity @e[type=minecraft:marker,distance=..2,limit=1] data
execute as @e[predicate=lt:elevator/go_up] at @s if score @s system.elevator matches 0 run function lt:systems/elevator/teleport_up with entity @e[type=minecraft:marker,distance=..2,limit=1] data
execute as @a if score @s system.elevator matches 1.. run scoreboard players remove @s system.elevator 1
execute as @a if score @s system.elevator matches 1.. run scoreboard players remove @s system.elevator 1
execute as @a unless score @s system.elevator matches 0..100 run scoreboard players set @s system.elevator 0

0 comments on commit b461e11

Please sign in to comment.