Jump to content
  • 0

Skript cant compare entity type with ___


Pancake123

Question

on damage:
    if attacker is a zombie named "&4Damaging Zombie":
        increase damage by 4

    this is my code. I have had this issue before and it randomly was fixed. I have looked it up and all of the solutions are in a diffrent context so I cant figure out how to get this to work. It keeps saying "Cant compare entity with 'a zombie named "&4Damaging Zombie"'

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

I do not think 'increase damage by 4' is a statement, it is possible your error is truly coming from there. Skript sometimes has a weird tendency to target the wrong lines for errors.

Additionally, the 'if' is unnecessary, please try my code.

 

on damage:
	attacker is zombie with name "&4Damaging Zombie"
	increase damage by 4

 

rose city STICKER

RosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaR

i code, animate, develop, UI design, learn, and adapt, as well as make servers, of course

💐Joined Minehut sometime in 2014
💐VIP sometime in 2018
💐Legend in January 2021
💐Helper on 4/11/2021
💐♥ (Retired) on 5/17/2021
💐 Moderator on 8/18/2023

Link to comment
Share on other sites

  • 0

I tried both of those things and neither worked. Gave me the same error. I found alot of issues like this online but none of those solutions work in this context or at least I cant figure that out. I have tried so many variations of the code but it gives the same error or just that it isn't real code.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...