Solved Do something on mob kill

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

Tropical

Member
Jan 29, 2017
19
0
1
29
Skript Version: Whatever version supports 1.8
Skript Author: ???
Minecraft Version: 1.8
---
Full Code:

code_language.skript:
on death:
    if attacker is a player:
        if victim is a chicken or sheep:  
            if {kill::%player%} is not set:
                set {kill::%player%} to true
                send "&c&lTUTORIAL &7Awesome job! Killing mobs will drop the mob's head. You have two options with Mob Heads. You can sell them for $10 using &c/sellhead&7 or you can transfer them into Tokens with &c/transfer&7."

Errors on Reload:
None


Console Errors: (if applicable)
None

Other Useful Info:
I want it to send that message the first time a player kills a mob. But, whenever I kill a chicken or sheep, nothing is sent. I've deleted all variables within variables.csv, and still nothing.

Addons using (including versions):
None

Troubleshooting:
N/A

Have you tried searching the docs? Yes
Have you tried searching the forums? Yes
What other methods have you tried to fix it? N/A
 
I'm 99% sure that it sends the message to the victim by default so just add to attacker at the end
 
Status
Not open for further replies.