

# -> Attributes
attribute @s entity_interaction_range modifier add overly_realistic:default_entity_interaction_range -1.2 add_value
attribute @s block_interaction_range modifier add overly_realistic:default_block_interaction_range -1.7 add_value
attribute @s movement_speed modifier add overly_realistic:default_movement_speed -0.0055 add_value
attribute @s attack_damage modifier add overly_realistic:default_attack_damage -0.5 add_value
attribute @s attack_speed modifier add overly_realistic:default_attack_speed -0.35 add_value
attribute @s block_break_speed modifier add overly_realistic:default_block_break_speed -0.93 add_value
attribute @s camera_distance modifier add overly_realistic:default_camera_distance -500.0 add_value
attribute @s sneaking_speed modifier add overly_realistic:default_sneaking_speed -0.05 add_value

# -> Local vars
scoreboard players set @s OverlyRealistic.Player.Stats.Stamina 10
scoreboard players set @s OverlyRealistic.Player.Stats.MaxStamina 10
scoreboard players set @s OverlyRealistic.Player.Stats.Thirst 100
scoreboard players set @s OverlyRealistic.Player.Stats.Status 0
scoreboard players set @s OverlyRealistic.Player.Stats.Hygiene 100
scoreboard players set @s OverlyRealistic.Player.BleedingTimer 0
scoreboard players set @s OverlyRealistic.Player.Stats.MentalHealth 100
scoreboard players set @s OverlyRealistic.Player.IllnessCooldownTime 550
execute store result score @s OverlyRealistic.Player.Stats.Intelligence run \
    random value 0..5
scoreboard players reset @s OverlyRealistic.Player.Stats.Speed
scoreboard players reset @s OverlyRealistic.Player.Stats.Strength
scoreboard players set @s OverlyRealistic.Player.Stats.Carbs 50
scoreboard players set @s OverlyRealistic.Player.Stats.Fats 50
scoreboard players set @s OverlyRealistic.Player.Stats.Proteins 50

# -> Set wisdom skills
scoreboard players set @s OverlyRealistic.Player.WisdomStats.Equitation 0
scoreboard players set @s OverlyRealistic.Player.WisdomStats.Equitation_XP 0
scoreboard players set @s OverlyRealistic.Player.WisdomStats.Equitation_XP_Max 1200
scoreboard players set @s OverlyRealistic.Player.WisdomStats.Fishing 0
scoreboard players set @s OverlyRealistic.Player.WisdomStats.Fishing_XP 0
scoreboard players set @s OverlyRealistic.Player.WisdomStats.Fishing_XP_Max 1200
scoreboard players set @s OverlyRealistic.Player.WisdomStats.Mining 0
scoreboard players set @s OverlyRealistic.Player.WisdomStats.Mining_XP 0
scoreboard players set @s OverlyRealistic.Player.WisdomStats.Mining_XP_Max 1200
scoreboard players set @s OverlyRealistic.Player.WisdomStats.Combat 0
scoreboard players set @s OverlyRealistic.Player.WisdomStats.Combat_XP 0
scoreboard players set @s OverlyRealistic.Player.WisdomStats.Combat_XP_Max 1200
scoreboard players set @s OverlyRealistic.Player.WisdomStats.Husbandry 0
scoreboard players set @s OverlyRealistic.Player.WisdomStats.Husbandry_XP 0
scoreboard players set @s OverlyRealistic.Player.WisdomStats.Husbandry_XP_Max 1200
scoreboard players set @s OverlyRealistic.Player.WisdomStats.Building 0
scoreboard players set @s OverlyRealistic.Player.WisdomStats.Building_XP 0
scoreboard players set @s OverlyRealistic.Player.WisdomStats.Building_XP_Max 1200
scoreboard players set @s OverlyRealistic.Player.WisdomStats.Archery 0
scoreboard players set @s OverlyRealistic.Player.WisdomStats.Archery_XP 0
scoreboard players set @s OverlyRealistic.Player.WisdomStats.Archery_XP_Max 1200
scoreboard players set @s OverlyRealistic.Player.WisdomStats.Cookery 0
scoreboard players set @s OverlyRealistic.Player.WisdomStats.Cookery_XP 0
scoreboard players set @s OverlyRealistic.Player.WisdomStats.Cookery_XP_Max 1200
scoreboard players set @s OverlyRealistic.Player.WisdomStats.Blacksmithing 0
scoreboard players set @s OverlyRealistic.Player.WisdomStats.Blacksmithing_XP 0
scoreboard players set @s OverlyRealistic.Player.WisdomStats.Blacksmithing_XP_Max 1200
scoreboard players set @s OverlyRealistic.Player.WisdomStats.Healthcare 0
scoreboard players set @s OverlyRealistic.Player.WisdomStats.Healthcare_XP 0
scoreboard players set @s OverlyRealistic.Player.WisdomStats.Healthcare_XP_Max 1200
scoreboard players set @s OverlyRealistic.Player.WisdomStats.Scribing 0
scoreboard players set @s OverlyRealistic.Player.WisdomStats.Scribing_XP 0
scoreboard players set @s OverlyRealistic.Player.WisdomStats.Scribing_XP_Max 1200

# -> Team
team join overly_realistic.players @s

# -> Tag
tag @s add OverlyRealistic.Player.PlayerHasData
