Skript error

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

    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.

Mooner510

Member
Apr 10, 2020
1
0
1
CODE:
Code:
on death of player:
    if damage cause is void:
        set the death message to "&7%victim% fall into the void"
    #/kill command
    if damage cause is unknown:
        set the death message to "&7%victim% died"

Reload Error:
Code:
[16:05:28 ERROR]: Can't compare a damage cause with a types.art (death.sk, line 10: if damage cause is void:')
[16:05:28 ERROR]: Can't compare a damage cause with an inventory action (death.sk, line 20: if damage cause is unknown:')

Minecraft Version: 1.12.2
Skript Version: 2.4.1
Use Addon: skrayfall v1.9.20, skutilities v0.9.2, TuSke v1.8.2, SkChoke v1.1, SkQuery v4.1.1

I'm not good at English..
Help :emoji_frowning:
 
Last edited:
Hey,
just had exactly the same problem :emoji_slight_smile:
changed it to:
Code:
 if damage causes is the void:

That fixed it for me...
 
Status
Not open for further replies.