So why aint this working, Making a pets skript the same as PvPingMC's.
#-------------------------- < Cow Pet > --------------------------
on rightclick:
loop all items in player's inventory:
if loop-item is a skull of "MHF_Cow" parsed as offlineplayer named "&6&lCow Pet &7[LVL 0]" with lore "&f||&e&lPASSIVE||&7Removes any debuff on use of pet||&f||&e&lLEVEL: &e0||&e&lEXP: &e0 / 100||&c&l¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦":
if {cowCooldown.%player%} is false:
set {cowCooldown.%player%} to true
remove nausea from player
remove blindness from player
remove slowness from player
remove mining fatigue from player
remove wither from player
message "&e&l(!) &eYou have removed all debuffs using your &6Cow Pet!" to player
wait 5 seconds
set {cowCooldown.%player%} to false
on rightclick:
loop all items in player's inventory:
if loop-item is a skull of "MHF_Cow" parsed as offlineplayer named "&6&lCow Pet &7[LVL 0]" with lore "&f||&e&lPASSIVE||&7Removes any debuff on use of pet||&f||&e&lLEVEL: &e0||&e&lEXP: &e0 / 100||&c&l¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦":
remove 1 skull of "MHF_Cow" parsed as offlineplayer named "&6&lCow Pet &7[LVL 0]" with lore "&f||&e&lPASSIVE||&7Removes any debuff on use of pet||&f||&e&lLEVEL: &e0||&e&lEXP: &e0 / 100||&c&l¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦" from player
give 1 skull of "MHF_Cow" parsed as offlineplayer named "&6&lCow Pet &7[LVL 0]" with lore "&f||&e&lPASSIVE||&7Removes any debuff on use of pet||&f||&e&lLEVEL: &e0||&e&lEXP: &e0 / 100||&a&l¦¦¦¦&c&l¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦" to player
#-------------------------- < Cow Pet > --------------------------
on rightclick:
loop all items in player's inventory:
if loop-item is a skull of "MHF_Cow" parsed as offlineplayer named "&6&lCow Pet &7[LVL 0]" with lore "&f||&e&lPASSIVE||&7Removes any debuff on use of pet||&f||&e&lLEVEL: &e0||&e&lEXP: &e0 / 100||&c&l¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦":
if {cowCooldown.%player%} is false:
set {cowCooldown.%player%} to true
remove nausea from player
remove blindness from player
remove slowness from player
remove mining fatigue from player
remove wither from player
message "&e&l(!) &eYou have removed all debuffs using your &6Cow Pet!" to player
wait 5 seconds
set {cowCooldown.%player%} to false
on rightclick:
loop all items in player's inventory:
if loop-item is a skull of "MHF_Cow" parsed as offlineplayer named "&6&lCow Pet &7[LVL 0]" with lore "&f||&e&lPASSIVE||&7Removes any debuff on use of pet||&f||&e&lLEVEL: &e0||&e&lEXP: &e0 / 100||&c&l¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦":
remove 1 skull of "MHF_Cow" parsed as offlineplayer named "&6&lCow Pet &7[LVL 0]" with lore "&f||&e&lPASSIVE||&7Removes any debuff on use of pet||&f||&e&lLEVEL: &e0||&e&lEXP: &e0 / 100||&c&l¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦" from player
give 1 skull of "MHF_Cow" parsed as offlineplayer named "&6&lCow Pet &7[LVL 0]" with lore "&f||&e&lPASSIVE||&7Removes any debuff on use of pet||&f||&e&lLEVEL: &e0||&e&lEXP: &e0 / 100||&a&l¦¦¦¦&c&l¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦" to player
code_language.skript:
#-------------------------- < Cow Pet > --------------------------
on rightclick:
loop all items in player's inventory:
if loop-item is a skull of "MHF_Cow" parsed as offlineplayer named "&6&lCow Pet &7[LVL 0]" with lore "&f||&e&lPASSIVE||&7Removes any debuff on use of pet||&f||&e&lLEVEL: &e0||&e&lEXP: &e0 / 100||&c&l¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦":
if {cowCooldown.%player%} is false:
set {cowCooldown.%player%} to true
remove nausea from player
remove blindness from player
remove slowness from player
remove mining fatigue from player
remove wither from player
message "&e&l(!) &eYou have removed all debuffs using your &6Cow Pet!" to player
wait 5 seconds
set {cowCooldown.%player%} to false
on rightclick:
loop all items in player's inventory:
if loop-item is a skull of "MHF_Cow" parsed as offlineplayer named "&6&lCow Pet &7[LVL 0]" with lore "&f||&e&lPASSIVE||&7Removes any debuff on use of pet||&f||&e&lLEVEL: &e0||&e&lEXP: &e0 / 100||&c&l¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦":
remove 1 skull of "MHF_Cow" parsed as offlineplayer named "&6&lCow Pet &7[LVL 0]" with lore "&f||&e&lPASSIVE||&7Removes any debuff on use of pet||&f||&e&lLEVEL: &e0||&e&lEXP: &e0 / 100||&c&l¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦" from player
give 1 skull of "MHF_Cow" parsed as offlineplayer named "&6&lCow Pet &7[LVL 0]" with lore "&f||&e&lPASSIVE||&7Removes any debuff on use of pet||&f||&e&lLEVEL: &e0||&e&lEXP: &e0 / 100||&a&l¦¦¦¦&c&l¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦" to player