HHGames/data/herohost/function/misc/warp.mcfunction
2024-12-04 13:52:42 +01:00

12 lines
540 B
Mcfunction

# --- HeroGames - Copyright (c) HeroHost team (code provided by HeroChris). ---
execute if score @s +hc.warp matches 1 in herohost:world run tp @s 5 109 50 -90 0
execute if score @s +hc.warp matches 2 in herohost:world run tp @s 50 125 -15 -118 0
# effects
execute at @s run playsound minecraft:block.amethyst_block.step record @s ~ ~ ~ 0.7 0.7
# [ WIP ] execute as @s at @s run particle minecraft:reverse_portal ~ ~1 ~ 0.5 0.5 0.5 0.1 20
# reset
scoreboard players set @s +hc.warp 0
scoreboard players enable @s +hc.warp