Coming from older version of Skript, anyone want to help with errors?

Discussion in 'Skript' started by adam_nox, Jan 12, 2018.

  1. I am going from bukkit 1.6.4 right to spigot 1.12, and apparently a decent amount of syntax has changed or been deprecated. Anyone knowledgeable please chime in and let me know how to fix some of the following errors on startup! I feel like trying to fix them on my own is going to result in a lot of topics asking how to do 'x', because it no longer likes the way I used to do things.

    Thanks for any help!

    Code (Text):
    [12:36:02 ERROR]: [Skript] Could not hook into Vault. This can happen if Skript
    doesn't support the installed version of Vault
    [12:36:02 INFO]: [Skript] Loading variables...
    [12:36:02 INFO]: [Skript] Loaded 9 variables in 0.0 seconds
    [12:36:03 ERROR]: [Skript] There's no location in an on chunk generate event (br
    idge.sk, line 26: loop blocks from block at {_loc} to block 49 blocks below bloc
    k at {_loc}:')
    [12:36:03 ERROR]: [Skript] Can't compare 'block 2 blocks below vehicle of player
    ' with an item type (cartsncombat.sk, line 71: if block 2 blocks below vehicle o
    f player is air:')
    [12:36:03 ERROR]: [Skript] 'else' has to be placed just after an 'if' or 'else i
    f' section (cartsncombat.sk, line 77: else:')
    [12:36:04 ERROR]: [Skript] the compass target of the player can't be set to 'blo
    ck 128 blocks in front of player' because the latter is not a location (compass.
    sk, line 10: set the player's compass target to block 128 blocks in front of pla
    yer')
    [12:36:05 ERROR]: [Skript] Can't compare a damage cause with a potion (custom.sk
    , line 281: if damage cause is poison:')
    [12:36:06 ERROR]: [Skript] Can't compare a damage cause with a potion (custom.sk
    , line 367: if damage cause is poison:')
    [12:36:06 ERROR]: [Skript] Can't compare a damage cause with a potion (custom.sk
    , line 369: if damage cause is wither:')
    [12:36:06 ERROR]: [Skript] ':8265 or potion of:16425 or potion of:8233 or potion
     of:16393 or potion of:8201 or potion of:16457' is not a valid item data (custom
    .sk, line 625: if tool is potion of:8265 or potion of:16425 or potion of:8233 or
     potion of:16393 or potion of:8201 or potion of:16457:')
    [12:36:06 ERROR]: [Skript] ':8265 or potion of:16425 or potion of:8233 or potion
     of:16393 or potion of:8201 or potion of:16457' is not a valid item data (custom
    .sk, line 629: if item is potion of:8265 or potion of:16425 or potion of:8233 or
     potion of:16393 or potion of:8201 or potion of:16457:')
    [12:36:06 ERROR]: [Skript] can't understand this event: 'on consume potion' (cus
    tom.sk, line 632: on consume potion:')
    [12:36:07 ERROR]: [Skript] There's no loop that matches 'loop-entity' (custom.sk
    , line 739: loop-entity exists')
    [12:36:07 WARN]: [Skript] Possible name conflict of variables {deathchest::%loop
    -index%} and {deathchest::*} (there might be more conflicts). (deathchest.sk, li
    ne 29: clear {deathchest::%loop-index%}')
    [12:36:07 WARN]: [Skript] Starting a variable's name with an expression is disco
    uraged ({%arg 1%::*}). You could prefix it with the script's name: {dragon.%arg
    1%::*} (dragon.sk, line 16: clear {%arg 1%::*}')
    [12:36:07 WARN]: [Skript] Possible name conflict of variables {%arg 1%::*} and {
    dragonspawn::*} (there might be more conflicts). (dragon.sk, line 16: clear {%ar
    g 1%::*}')
    [12:36:07 ERROR]: [Skript] Can't understand this expression: 'block 10 blocks ab
    ove targeted block' (dragon.sk, line 109: set {_loc} to block 10 blocks above ta
    rgeted block')
    [12:36:07 ERROR]: [Skript] There are multiple loops that match loop-value. Use l
    oop-value-1/2/3/etc. to specify which loop's value you want. (dragon.sk, line 18
    1: distance between loop-entity and loop-value is greater than {_dist}:')
    [12:36:08 WARN]: [Skript] Possible name conflict of variables {blocks::*} and {%
    arg 1%::*} (there might be more conflicts). (earth.sk, line 37: add location of
    loop-block to {_blocks::*}')
    [12:36:08 ERROR]: [Skript] Can't understand this expression: 'the block 2 blocks
     above the targeted entity' (earth.sk, line 63: set {_yloc3} to the block 2 bloc
    ks above the targeted entity')
    [12:36:08 ERROR]: [Skript] Can't understand this expression: 'the block 3 blocks
     above the targeted entity' (earth.sk, line 64: set {_yloc4} to the block 3 bloc
    ks above the targeted entity')
    [12:36:08 ERROR]: [Skript] Can't understand this expression: 'the block 4 blocks
     above the targeted entity' (earth.sk, line 65: set {_yloc5} to the block 4 bloc
    ks above the targeted entity')
    [12:36:08 ERROR]: [Skript] Can't understand this expression: 'the block 5 blocks
     above the targeted entity' (earth.sk, line 66: set {_yloc6} to the block 5 bloc
    ks above the targeted entity')
    [12:36:08 ERROR]: [Skript] There are multiple loops that match loop-value. Use l
    oop-value-1/2/3/etc. to specify which loop's value you want. (earth.sk, line 123
    : distance between location of event-block and block at loop-value is less than
    3:')
    [12:36:08 ERROR]: [Skript] There are multiple loops that match loop-value. Use l
    oop-value-1/2/3/etc. to specify which loop's value you want. (earth.sk, line 130
    : distance between event-block and block at loop-value is less than 3:')
    [12:36:08 ERROR]: [Skript] Can't compare 'block 8 blocks above targeted entity'
    with an item type (earth.sk, line 223: block 8 blocks above targeted entity is n
    ot air:')
    [12:36:08 ERROR]: [Skript] Can't understand this condition/effect: set block 8 b
    locks above targeted entity to anvil (earth.sk, line 230: set block 8 blocks abo
    ve targeted entity to anvil')
    [12:36:09 ERROR]: [Skript] There's no loop that matches 'loop-player' (earth.sk,
     line 463: execute console command "/playsound ambient.weather.rain %loop-player
    %"')
    [12:36:09 ERROR]: [Skript] loop-block is not a direction (earth.sk, line 652: th
    e block 2 blocks above loop-block is air')
    [12:36:09 ERROR]: [Skript] the loop-block is not a direction (earth.sk, line 654
    : set {_rezloc} to the location 2 blocks above the loop-block')
    [12:36:09 WARN]: [Skript] an entity cannot be saved, i.e. the contents of the va
    riable {lastdeath} will be lost when the server stops. (earth.sk, line 675: set
    {lastdeath} to victim')
     
    #1 adam_nox, Jan 12, 2018
    Last edited: Jan 13, 2018
  2. Please download Skript v2.2. It is not available from bukkit, however you can find it somewhere else easily. v2.12 is really buggy and no longer supported.
     
  3. Apologies, I'm not on 2.12. I'm on 1.12 spigot. I will have to edit that. I got skript from here. I don't immediately see a version number: https://github.com/bensku/Skript/releases

    Is there a different download I should use for spigot 1.12?

    I've examined the code for the first three errors, and I don't understand the problems at all. It's possible one of them is a false positive, but I don't know what to do about the others. They used to work fine.

    Edit: Is there a page I can go look at syntax changes over the years?
     
    #4 adam_nox, Jan 13, 2018
    Last edited: Jan 13, 2018

  4. here:
    http://en.njol.ch/projects/skript/doc/events