Item lores problem and enchantment problem !

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

Lukkeeh

Member
Jun 24, 2017
11
0
1
Minecraft server jar: spigot-1.8.8-R0.1-SNAPSHOT-latest
skript version: Skript_2.2-dev37c 1.8.8
Skript addons: TuSKe

I do have a problem when trying to enchant more than 2 enchantments on an item via a skript : Code down below

Working code: give 2 diamond swords of sharpness 4 and unbreaking 3 named "&eSword" to player
Give error code: give 2 diamond swords of sharpness 4 and unbreaking 3 and fireaspect 2 named "&eSword" to player
Also tried this code: give 2 diamond swords of sharpness 4,unbreaking 3 and fireaspect 2 named "&eSword" to player

Still gives he same error :
error 1.png


Got the same problem when naming an items lore like this:
Working code: give 2 diamond swords of sharpness 4 and unbreaking 3 named "&eSword" to player
Not working: give 2 diamond swords of sharpness 4 and unbreaking 3 named "&eSword" with lore "Test" to player
Also tried different versions with naming lore and watched alot of others projects and it still wont work with mine its the same error as the one above. Tried to change skript versions and everything but wont work.. Can't name gui items with lores either !


The whole code
command /awasadonator41:
permission: awasadonator
trigger:
if {cooldown::%player's uuid%::awasadonator1} is greater than now:
set {_waited} to difference between {cooldown::%player's uuid%::awasadonator1} and now
send "&eTry again in &a%{_waited}%"
else:
set {cooldown::%player's uuid%::awasadonator1} to 24 hours from now
give 2 diamond swords of sharpness 4 and unbreaking 3 named "&eSword" with lore "Hej" to player
give 1 bow of power 4 and unbreaking 3 named "&eBow" to player
send "&8[&6Hylo&8] &7You've choose the Weapon kit! &aChoose a new kit in 24 hours!" to player

Thanks for helping me been stuck with this for awhile now
 
Skript errors do not look like that and you should get your skript version updated.
I popped it into the parser and it said No errors. The outdated version is probs it.
I fixed some indentation errors
code_language.skript:
command /awasadonator41:
  permission: awasadonator
  trigger:
    if {cooldown::%player's uuid%::awasadonator1} is greater than now:
      set {_waited} to difference between {cooldown::%player's uuid%::awasadonator1} and now
      send "&eTry again in &a%{_waited}%"
    else:
      set {cooldown::%player's uuid%::awasadonator1} to 24 hours from now
      give 2 diamond swords of sharpness 4 and unbreaking 3 named "&eSword" with lore "Hej" to player
      give 1 bow of power 4 and unbreaking 3 named "&eBow" to player
      send "&8[&6Hylo&8] &7You've choose the Weapon kit! &aChoose a new kit in 24 hours!" to player
If the error keeps happening even if you have updated. Reach out to me for further investigation