## Load message
tellraw @a [{text:"Loaded [ "},{text:"Vanillabean",bold:true,color:"#F8E4BB"},{text:" ]",color:white,bold:false}]

## Schedule functions
# 1 second
schedule function vb:schedule/1s 1s
# 2.5 seconds
schedule function vb:schedule/50t 50t
# 10 seconds
schedule function vb:schedule/10s 10s
# 30 seconds
schedule function vb:schedule/30s 30s

## Gamerules
# Normally changing gamerules in one dimension affects all dimensions, but on server softwares like Paper, you have to run commands for each individually
execute in minecraft:overworld run function vb:gamerules
execute in minecraft:the_nether run function vb:gamerules
execute in minecraft:the_end run function vb:gamerules

## Settings
# Setting objectives
scoreboard objectives add vb.settings.disable_welcome_message dummy
scoreboard objectives add vb.settings.disable_custom_trades dummy
scoreboard objectives add vb.settings.disable_custom_fishing dummy
scoreboard objectives add vb.settings.disable_custom_sniffer dummy
scoreboard objectives add vb.settings.disable_villager_names dummy
scoreboard objectives add vb.settings.disable_things_that_grief dummy
scoreboard objectives add vb.settings.disable_boss_weather dummy

## Teams
team add vb.no_nametag
team modify vb.no_nametag nametagVisibility never

## These objectives are used in calculations, not to store data
scoreboard objectives add vb.dummy1 dummy
scoreboard objectives add vb.dummy2 dummy
scoreboard objectives add vb.dummy3 dummy
scoreboard objectives add vb.dummy4 dummy
scoreboard objectives add vb.dummy5 dummy
scoreboard objectives add vb.dummy6 dummy
scoreboard objectives add vb.dummy7 dummy
scoreboard objectives add vb.dummy8 dummy
scoreboard objectives add vb.dummy9 dummy

## Objectives for players (reset each tick)
scoreboard objectives add vb.tick_data.right_click minecraft.used:minecraft.warped_fungus_on_a_stick
scoreboard objectives add vb.tick_data.goat_horn minecraft.used:minecraft.goat_horn
scoreboard objectives add vb.tick_data.jump minecraft.custom:minecraft.jump
scoreboard objectives add vb.tick_data.sneak minecraft.custom:minecraft.sneak_time
# Used right clickable custom item this tick (so we don't trigger any more)
scoreboard objectives add vb.tick_data.custom_item_rc dummy

## Entity scores
scoreboard objectives add vb.entity.rabbit_type dummy
scoreboard objectives add vb.entity.wolf_type dummy
scoreboard objectives add vb.entity.subwoofer_state dummy
scoreboard objectives add vb.entity.coin_press_state dummy
scoreboard objectives add vb.entity.boss_time dummy
scoreboard objectives add vb.entity.boss_health dummy
scoreboard objectives add vb.entity.drowned_necromancer_heal dummy
scoreboard objectives add vb.entity.oceanic_orb_data dummy
scoreboard objectives add vb.entity.guaranteed_fish dummy
scoreboard objectives add vb.entity.can_reel_in_drowned_necromancer dummy
scoreboard objectives add vb.entity.chance_boosted dummy
scoreboard objectives add vb.entity.chance_boosted_cat dummy
scoreboard objectives add vb.entity.random_name_id dummy
scoreboard objectives add vb.entity.random_name_gender dummy
scoreboard objectives add vb.entity.fish_trap_in_water dummy
scoreboard objectives add vb.entity.trident_in_ground dummy
scoreboard objectives add vb.entity.lava_fishing_goal dummy
scoreboard objectives add vb.entity.cat_favor dummy
scoreboard objectives add vb.entity.void_core_active dummy

## ID scoreboards
scoreboard objectives add vb.id.player dummy
scoreboard objectives add vb.id.chakram dummy
scoreboard objectives add vb.id.bossbar dummy
scoreboard objectives add vb.id.oceanic_orb dummy

## Raycasting
scoreboard objectives add vb.raycast dummy

## Timers
scoreboard objectives add vb.timer.void_damage dummy
scoreboard objectives add vb.timer.lava_fishing dummy
scoreboard objectives add vb.timer.jeb_ dummy
scoreboard objectives add vb.timer.chakram dummy
scoreboard objectives add vb.timer.ambient_sound dummy
scoreboard objectives add vb.timer.boss_attack dummy
scoreboard objectives add vb.timer.esky dummy
scoreboard objectives add vb.timer.talisman_cooldown dummy
scoreboard objectives add vb.timer.despawn dummy
scoreboard objectives add vb.timer.cat_barter dummy
