This is my first skript of any substance. i wanna exclude tridents from a kill count and reward skript to keep people from using farms to boost kill count. how do i identify the use of a trident and exclude it from the kill count?
my skript
variables:
{creeperkills::%player%} = 0
{zombiekills::%player%} = 0
{skeletonkills::%player%} = 0
{witchkills::%player%} = 0
{spiderkills::%player%} = 0
{endermankills::%player%} = 0
{pillagerkills::%player%} = 0
{piglinkills::%player%} = 0
{blazekills::%player%} = 0
on death:
if victim is creeper:
add 1 to {creeperkills::%attacker%}
add 1 to {total::%attacker%}
if {creeperkills::%attacker%} >= 100:
give 5 diamond to attacker
send "&6Congratulations! You received 5 diamonds for killing 100 Creepers!" to attacker
set {creeperkills::%attacker%} to 0
if victim is zombie:
add 1 to {zombiekills::%attacker%}
add 1 to {total::%attacker%}
if {zombiekills::%attacker%} >= 1000:
give 5 diamond to attacker
send "&6Congratulations! You received 5 diamonds for killing 1000 Zombies!" to attacker
set {zombiekills::%attacker%} to 0
if victim is skeleton:
add 1 to {skeletonkills::%attacker%}
add 1 to {total::%attacker%}
if {skeletonkills::%attacker%} >= 1000:
give 5 diamond to attacker
send "&6Congratulations! You received 5 diamonds for killing 1000 Skeletons!" to attacker
set {skeletonkills::%attacker%} to 0
if victim is witch:
add 1 to {witchkills::%attacker%}
add 1 to {total::%attacker%}
if {witchkills::%attacker%} >= 500:
give 5 diamond to attacker
send "&6Congratulations! You received 5 diamonds for killing 500 Witches!" to attacker
set {witchkills::%attacker%} to 0
if victim is spider:
add 1 to {spiderkills::%attacker%}
add 1 to {total::%attacker%}
if {spiderkills::%attacker%} >= 1000:
give 5 diamond to attacker
send "&6Congratulations! You received 5 diamonds for killing 1000 Spiders!" to attacker
set {spiderkills::%attacker%} to 0
if victim is enderman:
add 1 to {endermankills::%attacker%}
add 1 to {total::%attacker%}
if {endermankills::%attacker%} >= 1000:
give 5 diamond to attacker
send "&6Congratulations! You received 5 diamonds for killing 1000 Enderman!" to attacker
set {endermankills::%attacker%} to 0
if victim is pillager:
add 1 to {pillagerkills::%attacker%}
add 1 to {total::%attacker%}
if {pillagerkills::%attacker%} >= 100:
give 5 diamond to attacker
send "&6Congratulations! You received 5 diamonds for killing 100 Pillagers!" to attacker
set {pillagerkills::%attacker%} to 0
if victim is piglin:
add 1 to {piglinkills::%attacker%}
add 1 to {total::%attacker%}
if {piglinkills::%attacker%} >= 1000:
give 5 diamond to attacker
send "&6Congratulations! You received 5 diamonds for killing 1000 Piglins!" to attacker
set {piglinkills::%attacker%} to 0
if victim is blaze:
add 1 to {blazekills::%attacker%}
add 1 to {total::%attacker%}
if {blazekills::%attacker%} >= 100:
give 5 diamond to attacker
send "&6Congratulations! You received 5 diamonds for killing 100 Blaze!" to attacker
set {blazekills::%attacker%} to 0
command /mobkills:
trigger:
send "&3%{creeperkills::%player%}% Creeper Kills" to player
send "&3%{zombiekills::%player%}% Zombie Kills" to player
send "&3%{skeletonkills::%player%}% Skeleton Kills" to player
send "&3%{witchkills::%player%}% Witch Kills" to player
send "&3%{spiderkills::%player%}% Spider Kills" to player
send "&3%{endermankills::%player%}% Enderman Kills" to player
send "&3%{pillagerkills::%player%}% Pillager Kills" to player
send "&3%{piglinkills::%player%}% Piglin Kills" to player
send "&3%{blazekills::%player%}% Blaze Kills" to player
send "&5Total Mob Kills%{total::%uuid of player%}%" to player
command /mkt:
trigger:
send "&5Total Mob Kills%{total::%uuid of player%}%" to player
my skript
variables:
{creeperkills::%player%} = 0
{zombiekills::%player%} = 0
{skeletonkills::%player%} = 0
{witchkills::%player%} = 0
{spiderkills::%player%} = 0
{endermankills::%player%} = 0
{pillagerkills::%player%} = 0
{piglinkills::%player%} = 0
{blazekills::%player%} = 0
on death:
if victim is creeper:
add 1 to {creeperkills::%attacker%}
add 1 to {total::%attacker%}
if {creeperkills::%attacker%} >= 100:
give 5 diamond to attacker
send "&6Congratulations! You received 5 diamonds for killing 100 Creepers!" to attacker
set {creeperkills::%attacker%} to 0
if victim is zombie:
add 1 to {zombiekills::%attacker%}
add 1 to {total::%attacker%}
if {zombiekills::%attacker%} >= 1000:
give 5 diamond to attacker
send "&6Congratulations! You received 5 diamonds for killing 1000 Zombies!" to attacker
set {zombiekills::%attacker%} to 0
if victim is skeleton:
add 1 to {skeletonkills::%attacker%}
add 1 to {total::%attacker%}
if {skeletonkills::%attacker%} >= 1000:
give 5 diamond to attacker
send "&6Congratulations! You received 5 diamonds for killing 1000 Skeletons!" to attacker
set {skeletonkills::%attacker%} to 0
if victim is witch:
add 1 to {witchkills::%attacker%}
add 1 to {total::%attacker%}
if {witchkills::%attacker%} >= 500:
give 5 diamond to attacker
send "&6Congratulations! You received 5 diamonds for killing 500 Witches!" to attacker
set {witchkills::%attacker%} to 0
if victim is spider:
add 1 to {spiderkills::%attacker%}
add 1 to {total::%attacker%}
if {spiderkills::%attacker%} >= 1000:
give 5 diamond to attacker
send "&6Congratulations! You received 5 diamonds for killing 1000 Spiders!" to attacker
set {spiderkills::%attacker%} to 0
if victim is enderman:
add 1 to {endermankills::%attacker%}
add 1 to {total::%attacker%}
if {endermankills::%attacker%} >= 1000:
give 5 diamond to attacker
send "&6Congratulations! You received 5 diamonds for killing 1000 Enderman!" to attacker
set {endermankills::%attacker%} to 0
if victim is pillager:
add 1 to {pillagerkills::%attacker%}
add 1 to {total::%attacker%}
if {pillagerkills::%attacker%} >= 100:
give 5 diamond to attacker
send "&6Congratulations! You received 5 diamonds for killing 100 Pillagers!" to attacker
set {pillagerkills::%attacker%} to 0
if victim is piglin:
add 1 to {piglinkills::%attacker%}
add 1 to {total::%attacker%}
if {piglinkills::%attacker%} >= 1000:
give 5 diamond to attacker
send "&6Congratulations! You received 5 diamonds for killing 1000 Piglins!" to attacker
set {piglinkills::%attacker%} to 0
if victim is blaze:
add 1 to {blazekills::%attacker%}
add 1 to {total::%attacker%}
if {blazekills::%attacker%} >= 100:
give 5 diamond to attacker
send "&6Congratulations! You received 5 diamonds for killing 100 Blaze!" to attacker
set {blazekills::%attacker%} to 0
command /mobkills:
trigger:
send "&3%{creeperkills::%player%}% Creeper Kills" to player
send "&3%{zombiekills::%player%}% Zombie Kills" to player
send "&3%{skeletonkills::%player%}% Skeleton Kills" to player
send "&3%{witchkills::%player%}% Witch Kills" to player
send "&3%{spiderkills::%player%}% Spider Kills" to player
send "&3%{endermankills::%player%}% Enderman Kills" to player
send "&3%{pillagerkills::%player%}% Pillager Kills" to player
send "&3%{piglinkills::%player%}% Piglin Kills" to player
send "&3%{blazekills::%player%}% Blaze Kills" to player
send "&5Total Mob Kills%{total::%uuid of player%}%" to player
command /mkt:
trigger:
send "&5Total Mob Kills%{total::%uuid of player%}%" to player