Entity no hit

  • 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!


Active Member
Mar 14, 2017
Category: Miscellaneous

Suggested name: test

What I want:
When a player attacks a "cow, horse, pig, sheep, bat" it will cancel it and send "cant do that."

I have this: https://hastebin.com/kujaqipeyu.vbs

(doesn't work)
Ideas for commands: None

Ideas for permissions: None

When I'd like it by: within 1 day
on damage:
    if attacker is player:
        if victim is a cow or horse or pig or sheep or bat or creeper:
            cancel event
            message "&cYou can't do that"