Attacker Is Slime Does Not Work

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

WallyTube

New Member
Aug 17, 2019
5
0
0
27
I Am Trying To Make Slimes Passive Animals On My Server But Recently Found That `Slimes` Are Having A Hard Time Detecting. When Usually All I Need To Do Is: 'attacker is slime', it thinks I'm talking about the visual effect as shown in the error messages. If anyone can tell me any alternatives to fix this bug, that would be great!

Code:
on damage:
    attacker is slime
    cancel event

on entity target:
    if target is a player:
        if event-entity is slime:
            cancel event

Entity Target Works, Just the Damage Canceler Doesn't.
 
Try this uwu
Code:
on damage:
    if attacker is slimes:
        cancel event
 
on entity target:
    if target is a player:
        if event-entity is slimes:
            cancel event
Hope it helps lol
 
Status
Not open for further replies.