1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT??:

    You can always check our our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

"the former is neither an item type, an inventory not an experience point"

Discussion in 'Skript' started by Sphro, Feb 28, 2019.

Thread Status:
Not open for further replies.
  1. Sphro

    Sphro Member

    Joined:
    May 28, 2017
    Messages:
    18
    Likes Received:
    0
    Code (Text):
    1. on right click on sign:
    2.     if line 1 of clicked block is "&9&l[REDEEM]":
    3.         if line 2 of clicked block is "&aCommon Set":
    4.             if player has 1 of 416 named "&7[&aCommon&7] &bDiamond Armor Set" with lore "{@COMMON_LORE}":
    5.                 remove 1 of 416 named "&7[&aCommon&7] &bDiamond Armor Set" with lore "{@COMMON_LORE}" from the player
    6.                 give 1 of diamond helmet protection 3 and unbreaking 2 to the player
    7.                 give 1 of diamond chestplate of protection 3 and unbreaking 2 to the player
    8.                 give 1 of diamond leggings of protection 3 and unbreaking 2 to the player
    9.                 give 1 of diamond boots of protection 3 and unbreaking 2 to the player
    10.                 execute Console command "execute %player% ~ ~ ~ /playsound random.orb %player% ~ ~ ~ 1 2"
    11.             else:
    12.                 message "&cYou do not have &ax1 Common Diamond Armor Set&c."
    13.                 execute Console command "execute %player% ~ ~ ~ /playsound mob.endermen.portal %player% ~ ~ ~ 1 0"
    https://prnt.sc/mr4gzj - The error i'm getting, applies to all 4 lines above (Image importing isn't working right)

    Having trouble figuring out why the skript isn't working. This is after updating it to 2.2 (The most updated 1.8 Skript version possible) from 2.0 and it was working just fine in 2.0. Help is SUPER appreciated, thank you!
     
  2. ShaneBee

    Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,124
    Likes Received:
    164
    When you say 2.2, are you using 2.2dev37c?
    And are you using Spigot 1.8 or 1.8.8?
     
  3. TPGamesNL

    Supporter

    Joined:
    Jan 20, 2018
    Messages:
    1,380
    Likes Received:
    85
    Medals:
    You forgot 'of' in line 6. Use
    Code (Text):
    1. give 1 of diamond helmet of protection 3 and unbreaking 2 to the player
     
  4. Nutts

    Nutts Member

    Joined:
    Feb 9, 2019
    Messages:
    10
    Likes Received:
    0
    Mark as solved?
     
  5. Sphro

    Sphro Member

    Joined:
    May 28, 2017
    Messages:
    18
    Likes Received:
    0
    That fixes one thing, but i'm still getting the same error. To this day it's still not working
     
  6. Runakai

    Runakai Well-Known Member

    Joined:
    Apr 27, 2018
    Messages:
    411
    Likes Received:
    23
    set local var to the item and enchant the local var, same for lores if it doesn’t work within one syntax
     
  7. TPGamesNL

    Supporter

    Joined:
    Jan 20, 2018
    Messages:
    1,380
    Likes Received:
    85
    Medals:
    Send your code (since it works in the parser)
     
Thread Status:
Not open for further replies.
Loading...