
execute as @e[c=1,type=player] at @s run function attributeDisplay

inputpermission set @a[scores={stun=1..}] dismount disabled
inputpermission set @a[scores={stun=0}] dismount enabled
inputpermission set @a[scores={stun=1..}] lateral_movement disabled
inputpermission set @a[scores={stun=1..,burst_cd=1..}] jump disabled
inputpermission set @a[scores={stun=1..,burst_cd=0}] jump enabled
inputpermission set @a[scores={stun=0,block=0,stamina=1..}] jump enabled

effect @e[tag=armor:mrc_vest] speed 20 2 true
effect @e[tag=armor:mrc_vest] jump_boost 20 2 true
scoreboard players set @e[tag=armor:mrc_vest] dash_cd 20

hud @a hide item_text
hud @a hide health
hud @a hide armor

event entity @e[type=player,tag=movement:laydown] weapon_name:none
event entity @e[type=player,tag=movement:laydown] weapon_equip:unarmed

tag @e[family=superarmor,c=1] add stunImmune

scoreboard players add @e[family=custom_mob] hunterRank 0
scoreboard players set @e[scores={hunterRank=0},family=custom_mob] rankMultiplier 1
scoreboard players set @e[scores={hunterRank=6},family=custom_mob] rankMultiplier 1
scoreboard players set @e[scores={hunterRank=3..4},family=custom_mob] rankMultiplier 2
scoreboard players set @e[scores={hunterRank=1..2},family=custom_mob] rankMultiplier 6
scoreboard players set @e[scores={hunterRank=-1},family=custom_mob] rankMultiplier 10

tag @a remove reputation:good
tag @a remove reputation:verygood
tag @a remove reputation:excellent
tag @a remove reputation:bad
tag @a remove reputation:verybad
tag @a remove reputation:feared
tag @a[scores={reputation=1..30}] add reputation:good
tag @a[scores={reputation=31..100}] add reputation:verygood
tag @a[scores={reputation=101..}] add reputation:excellent

execute as @e[scores={statusShock=1..,stamina=..0}] at @s run scriptevent status:shock
scoreboard players remove @e[scores={statusShock=1..}] statusShock 1

scoreboard players remove @e[scores={ignite_dur=1..}] ignite_dur 1

tag @e[scores={reputation=-20..-1}] add reputation:bad
tag @e[scores={reputation=-50..-21}] add reputation:verybad
tag @e[scores={reputation=..-51}] add reputation:feared

execute as @e[scores={statusShock=1..,stamina=..0}] at @s run scriptevent status:shock

scoreboard players add @e[type=player] statusCycle 1
scoreboard players set @e[type=player,scores={statusCycle=5..}] statusCycle 1

scoreboard players remove @e[scores={statusSad=1..,stamina=1..}] emotionP 1
scoreboard players remove @e[scores={statusSad=1..,stamina=1..}] statusSad 1

execute as @e[scores={statusBurn=1..}] at @s run scriptevent status:burn

scoreboard players remove @e[scores={bleedDuration=1..,statusBleed=1..}] statusBleed 1
scoreboard players remove @e[scores={bleedDuration=1..}] bleedDuration 1

scoreboard players set @e[scores={statusFragile=10..}] statusFragile 9
scoreboard players remove @e[tag=!iframes,tag=!iframes,scores={fragileDuration=1..,statusFragile=1..}] fragileDuration 1
scoreboard players remove @e[scores={fragileDuration=0,statusFragile=1..}] statusFragile 1
scoreboard players add @e[scores={fragileDuration=0,statusFragile=1..}] fragileDuration 10

scoreboard players set @e[type=player] worldTimer 0
scoreboard players set globalTime worldTimer 0