# ==================================================
# void vb.button.chargeMap()
# ==================================================

scoreboard players set vb.button.chargeMap.__hasFunctionReturned__ tbms.var 0
scoreboard players operation vb.button.chargeMap._0._0 tbms.var = vb.load.terrain tbms.var
execute if score vb.button.chargeMap._0._0 tbms.var matches 1 run function vb/load/terrain1
execute if score vb.button.chargeMap._0._0 tbms.var matches 2 run function vb/load/terrain2
execute if score vb.button.chargeMap._0._0 tbms.var matches 3 run function vb/load/terrain3
function vb/load/reset_power
clear @a
