tag @a add petseffect

scoreboard objectives add petstimer dummy petstimer
scoreboard players add @a petstimer 1
execute @a[scores={petstimer=55..}] ~ ~ ~ function checkpets
execute @a[scores={petstimer=55..}] ~ ~ ~ scoreboard players set @s petstimer 0

scoreboard players add @a[hasitem={location=slot.hotbar,item=vatonage:enderman_pet}] speedeffect 1
scoreboard players add @a[hasitem={location=slot.hotbar,item=vatonage:ocelot_pet}] speedeffect 1
scoreboard players add @a[hasitem={location=slot.hotbar,item=vatonage:sheep_pet}] speedeffect 1
scoreboard players add @a[hasitem={location=slot.hotbar,item=vatonage:chicken_pet}] speedeffect 1
scoreboard players add @a[hasitem={location=slot.hotbar,item=vatonage:blaze_pet}] strengtheffect 1
scoreboard players add @a[hasitem={location=slot.hotbar,item=vatonage:wolf_pet}] strengtheffect 1
scoreboard players add @a[hasitem={location=slot.hotbar,item=vatonage:iron_golem_pet}] resistanceeffect 1
scoreboard players add @a[hasitem={location=slot.hotbar,item=vatonage:pig_pet}] jump_boosteffect 1
scoreboard players add @a[hasitem={location=slot.hotbar,item=vatonage:spider_pet}] jump_boosteffect 1
scoreboard players add @a[hasitem={location=slot.hotbar,item=vatonage:slime_pet}] jump_boosteffect 2
scoreboard players add @a[hasitem={location=slot.hotbar,item=vatonage:silverfish_pet}] hasteeffect 1