skript help 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.

frunktrunk

New Member
Mar 8, 2021
7
0
1
so I am making a skript where if you have a certain item, you can exchange it for diamonds, xp levels or similar.

this is my skript:


Command /egkjwoighjlkgm:
trigger:
if player has 1 of emerald named "&aLegendary Token" parsed as itemtype:
remove 1 emerald named "&aLegendary Token" from player's inventory
give player 10 of diamond

and the error is this:
upload_2021-3-10_21-43-29.png

i have no idea what this means, can anyone help?
 
so I am making a skript where if you have a certain item, you can exchange it for diamonds, xp levels or similar.

this is my skript:


Command /egkjwoighjlkgm:
trigger:
if player has 1 of emerald named "&aLegendary Token" parsed as itemtype:
remove 1 emerald named "&aLegendary Token" from player's inventory
give player 10 of diamond

and the error is this:
View attachment 5837
i have no idea what this means, can anyone help?
There is no need to parse as itemtype.

code_language.skript:
command /cmd:
   trigger:
       set {_item} to emerald named "&aLegendary Token"
       if player's inventory contains {_item}:
           remove 1 of {_item} from player's inventory
           give 10 diamonds to player's inventory
 
  • Like
Reactions: frunktrunk
There is no need to parse as itemtype.

code_language.skript:
command /cmd:
   trigger:
       set {_item} to emerald named "&aLegendary Token"
       if player's inventory contains {_item}:
           remove 1 of {_item} from player's inventory
           give 10 diamonds to player's inventory
i do the command, but then it doesnt do anything and just says unknown command
[doublepost=1615451074,1615449084][/doublepost]
i do the command, but then it doesnt do anything and just says unknown command
nevermind i fixed the unknown command problem, but it still does not do anything
 
i do the command, but then it doesnt do anything and just says unknown command
[doublepost=1615451074,1615449084][/doublepost]
nevermind i fixed the unknown command problem, but it still does not do anything
Try check if you have the item in the invntory.

code_language.skript:
if player's inventory contains {_item}:
    send "You have it"
else:
    send "You dont have it"
If executing the command returns you the second message, then it is a problem with the item you are holding.
 
Status
Not open for further replies.