# ==================================================
# void vb.load.setHub()
# ==================================================

function vb/load/remove_hub
execute as @a run scoreboard players set @s vb.button.area 0
scoreboard players set vb.load.inHub tbms.var 1
effect @e[type=zedafox:volleyball_net] invisibility infinite 0 true
effect @e[type=zedafox:meow_inanimate,tag=player] invisibility infinite 0 true
fill 986 51 9 1014 51 -9 structure_void replace barrier
event entity @e[type=zedafox:helicotnt] despawn
setblock 996 50 0 barrier
setblock 997 50 3 barrier
setblock 997 50 -3 barrier
execute rotated 90 0 positioned 996 50 0 run function vb/zzz_sl_block/197
execute rotated 90 0 positioned 997 50 3 run function vb/zzz_sl_block/200
execute rotated 90 0 positioned 997 50 -3 run function vb/zzz_sl_block/203
replaceitem entity @a slot.hotbar 0 zedafox:gear 1 0 {"item_lock": {"mode": "lock_in_slot"}}
replaceitem entity @a slot.hotbar 7 zedafox:flag 1 0 {"item_lock": {"mode": "lock_in_slot"}}
replaceitem entity @a slot.hotbar 8 zedafox:stats 1 0 {"item_lock": {"mode": "lock_in_slot"}}
execute rotated 180 0 positioned 1000 55 12 run summon zedafox:setting_display
execute rotated 180 0 positioned 1000 50 13 run summon zedafox:indication_arrow
replaceitem entity @e[type=zedafox:meow_inanimate,tag=player] slot.armor.chest 0 air
event entity @e[type=zedafox:powerup] despawn
inputpermission set @a movement enabled
inputpermission set @a camera enabled
