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

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

  • 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.

Sphro

Member
May 28, 2017
18
0
0
20
Code:
on right click on sign:
    if line 1 of clicked block is "&9&l[REDEEM]":
        if line 2 of clicked block is "&aCommon Set":
            if player has 1 of 416 named "&7[&aCommon&7] &bDiamond Armor Set" with lore "{@COMMON_LORE}":
                remove 1 of 416 named "&7[&aCommon&7] &bDiamond Armor Set" with lore "{@COMMON_LORE}" from the player
                give 1 of diamond helmet protection 3 and unbreaking 2 to the player
                give 1 of diamond chestplate of protection 3 and unbreaking 2 to the player
                give 1 of diamond leggings of protection 3 and unbreaking 2 to the player
                give 1 of diamond boots of protection 3 and unbreaking 2 to the player
                execute Console command "execute %player% ~ ~ ~ /playsound random.orb %player% ~ ~ ~ 1 2"
            else:
                message "&cYou do not have &ax1 Common Diamond Armor Set&c."
                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!
 
You forgot 'of' in line 6. Use
Code:
give 1 of diamond helmet of protection 3 and unbreaking 2 to the player
 
set local var to the item and enchant the local var, same for lores if it doesn’t work within one syntax
 
That fixes one thing, but i'm still getting the same error. To this day it's still not working
Send your code (since it works in the parser)
 
Status
Not open for further replies.