Warp functionality
This commit is contained in:
12
data/herohost/function/misc/warp.mcfunction
Normal file
12
data/herohost/function/misc/warp.mcfunction
Normal file
@ -0,0 +1,12 @@
|
||||
# --- 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
|
Reference in New Issue
Block a user