Enchant item help

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

toriset

Member
Jan 9, 2020
2
0
1
25
Pretty much i want a basic skript:
When i right click with a pickaxe it sets the tier of the efficiency enchantment by 1 higher than it was already.

My code:
View attachment upload_2020-11-18_10-26-20.png

I get no errors, but when i right click it nothing happens

EDIT: Also i cant do "enchant player's tool with efficiency {_l2}"
 
Code:
on right click:
  if player's tool is any pickaxe
meh
 
No need to make it complicated:

Code:
on rightclick:
    player's tool is any pickaxe:
        enchant player's tool with efficiency (level of efficiency on player's tool + 1)

Also, this has already been covered here
 
Status
Not open for further replies.