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

Enchant

Discussion in 'Skript' started by Sitrr, Nov 20, 2022.

Tags:
Thread Status:
Not open for further replies.
  1. Sitrr

    Sitrr Member

    Joined:
    Mar 28, 2022
    Messages:
    3
    Likes Received:
    0
    if clicked slot is 12:
    @if number of diamond in player's inventory >= 2 ^ {attnum::%{team::%uuid of player%}%}:
    @@set {attprice::%{team::%uuid of player%}%} to 2 ^ ({attnum::%{team::%uuid of player%}%} + 1)
    @@loop all items in player's inventory:
    @@@if loop-item is sword:
    @@@@enchant loop-item with {attnum::%{team::%uuid of player%}%}
    @@execute op command "/opengu2"

    the enchant does not work
    Could you tell how to put a variable into the integer part of enchant?
     
  2. Pierrelasse

    Pierrelasse Active Member

    Joined:
    Apr 20, 2022
    Messages:
    116
    Likes Received:
    4
    upload_2022-11-26_12-17-22.png
    upload_2022-11-26_12-17-46.png

    upload_2022-11-26_12-18-32.png upload_2022-11-26_12-18-33.png upload_2022-11-26_12-18-33.png upload_2022-11-26_12-18-33.png upload_2022-11-26_12-18-33.png upload_2022-11-26_12-18-33.png upload_2022-11-26_12-18-33.png upload_2022-11-26_12-18-33.png :emoji_poop::emoji_poop::emoji_poop::emoji_poop::emoji_poop:
    --- Double Post Merged, Nov 26, 2022, Original Post Date: Nov 26, 2022 ---
    if loop-item is sword:

    sword does not exist so you will need to do

    ... is stone sword or iron sword
    or you do
    ... is any sword
     
Thread Status:
Not open for further replies.

Share This Page

Loading...