
# -> Reset adv trigger
advancement revoke @s only overly_realistic:player/place_weighted_blocks/player_place_block_weight_1

# -> Decrease stamina
scoreboard players remove @s[scores={OverlyRealistic.Player.WisdomStats.Building=..2}] OverlyRealistic.Player.Stats.Stamina 3
scoreboard players remove @s[scores={OverlyRealistic.Player.WisdomStats.Building=2..}] OverlyRealistic.Player.Stats.Stamina 2

# -> Altitude checks
execute if entity @s[y=100,dy=9999] run \
    scoreboard players remove @s OverlyRealistic.Player.Stats.Stamina 1
execute if entity @s[y=200,dy=9999] run \
    scoreboard players remove @s OverlyRealistic.Player.Stats.Stamina 1
execute if entity @s[y=300,dy=9999] run \
    scoreboard players remove @s OverlyRealistic.Player.Stats.Stamina 1

# -> Add to building XP
scoreboard players add @s OverlyRealistic.Player.WisdomSpecialized.BlocksPlaced 1
execute if score @s OverlyRealistic.Player.WisdomSpecialized.BlocksPlaced matches 25.. run \
    function overly_realistic:players/wisdom/building/add_to_skill_xp_c_place_blocks_25
