#How do i stop iron golem attacking spider Sound is going be annoying

1 messages · Page 1 of 1 (latest)

pine rapids
#

Server version: 1.19.4

Skript version: 2.8.7

SkBee version: 3.5.6

I have checked https://skripthub.net/docs/?id=1007

Nothing happens

    if target is iron golem:
        if target is a cave spider:
            cancel the event```
hearty shadow
#

target would be spider

#

but you should look at the second example

#

on skripthub

pine rapids
#

I did

hearty shadow
#

umm

#

why didn't you use it then?

pine rapids
#

I did use it noting happens

hearty shadow
#
on target:
    if target is iron golem:
        if event-entity is a enderman, spider, witch, skeleton or zombie:
            cancel the event
    if event-entity is iron golem:
        if target is a enderman, spider, witch, skeleton or zombie:
            cancel the event
#

this?

pine rapids
#

yep

hearty shadow
#

weird, it makes the iron golem not attack the zombies for me but the zombies still attack the iron golem

pine rapids
#

Is there way to find it ?

hearty shadow
#

omg

pine rapids
#

?

hearty shadow
#
on target:
    if target is a spider:
        event-entity is a iron golem
        cancel event
    else if target is a iron golem:
        event-entity is a spider
        cancel event
pine rapids
#

Nvm

hearty shadow
#

well that works for me

pine rapids
#

It works I reloaded wrong file