Solved Enchnated tools

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

Time4Games

Active Member
Jul 25, 2020
203
4
18
So i wrote this code for a minigame im working on. I want the pickaxe u get to be enchanted but without any ecnhatnemt(like an enchanted book with no enchantments)(only the enchanment effect)
Also i use 2 spaces and not a tab

Code:
command /buywoodenpickaxe [<player>]:
  permission:sk.developer
  trigger:
    if {glass::%arg-1%} is bigger than 4:
      if {fortune::%arg-1%} is 0:
        wait 5 ticks
        remove 5 from {glass::%arg-1%}
        wait 3 ticks
        add 1 wooden pickaxe named "&bWooden Pickaxe &aLevel 1" to arg-1
        wait 5 ticks
        send "&bUpgrade Successful" to arg-1
      else if {fortune::%arg-1%} is 1:
        wait 5 ticks
        remove 5 from {glass::%arg-1%}
        wait 3 ticks
        add 1 wooden pickaxe named "&bWooden Pickaxe &aLevel 1" to arg-1
        wait 5 ticks
        send "&bUpgrade Successful" to arg-1
    else:
      Send "&cYou don't have enough glass to buy it" to arg-1
 
Last edited:
Try
Code:
give glowing iron pickaxe named "Glowing one" to player
If it doesn't work, try just "glow", and if it doesn't work even then, it could be that you need SkQuerry or another addon first
 
Status
Not open for further replies.