HHGames/data/herohost/function/misc/lock.mcfunction

9 lines
487 B
Mcfunction
Raw Permalink Normal View History

2024-11-28 23:12:43 +01:00
# --- HeroGames - Copyright (c) HeroHost team (code provided by HeroChris). ---
advancement revoke @s only herohost:misc/lock
2024-11-29 03:26:36 +01:00
title @s actionbar [{"translate":"hhost.minigame.locked","fallback":"You can't do that! This is not yours to touch."}]
playsound minecraft:block.nether_wood.break master @s ~ ~ ~ 1 1 1
# advancement related
scoreboard players add @s +hc.locked 1
execute if score @s +hc.locked matches 10.. run advancement grant @s only herohost:herohost/hard_listener