HHGames/data/herohost/functions/main.mcfunction
HeroChris 231e0d2486 Effects
- Sound effect
- Particle effect
- offHand tnt for visualization
2023-11-01 16:01:25 +01:00

13 lines
590 B
Mcfunction

# --- HeroGames - Copyright (c) HeroHost team (code provided by HeroChris). ---
# core handling
execute as @a[tag=!hc.initialized] run function herohost:core/initialize
execute as @a[scores={+hc.disconnect=1..}] run function herohost:core/reconnect
# protection
gamemode adventure @a[tag=!hc.debug,gamemode=!adventure]
execute as @a[nbt=!{Dimension:"herohost:world"},tag=!hc.debug] in herohost:world run tp @s 0 100 0 0 0
kill @e[type=item,nbt={Item:{tag:{clear:1b}}}]
# games
execute in herohost:world if entity @p[x=-125,y=50,z=-376,dx=250,dy=100,dz=250] run function herohost:tnt/core