Solved Enchanting Item with Separate Variable

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

Mapzman

Member
Mar 26, 2017
11
0
1
Skript won't allow me to enchant an item if the enchant level is a separate variable, does anyone know a workaround?

{sharpnessLevel.%loop-player%} is any integer over 0

code_language.skript:
if loop-item is a sword:
    enchant loop-item with Sharpness {sharpnessLevel.%loop-player%}
 
Try
code_language.skript:
enchant loop-item with "sharpness %{sharpnessLevel.%loop-player%}%" parsed as enchantment type
 
  • Like
Reactions: lucasmooon
Wow thanks it worked, I tried parsing it as an enchant type, but I must have typed it wrong
 
Status
Not open for further replies.