Solved Remove pickaxe

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

Riet

Member
Dec 11, 2019
11
1
0
21
Code:
remove all pickaxes of efficiency 4 from player's inventory

This works when the pickaxe is only enchanted with efficiency, but when there are other enchants it doesnt work, anyone know how to fix this?
 
Use the 'if' condition, eg:
Code:
if players tool of efficiency 4 and fortune 3:
   stop

Something like that, good luck

- TheCringleYT

Thats not what he asked for XD
[doublepost=1584356390,1584356088][/doublepost]
Code:
remove all pickaxes of efficiency 4 from player's inventory

This works when the pickaxe is only enchanted with efficiency, but when there are other enchants it doesnt work, anyone know how to fix this?

Code:
loop all items in player's inventory:
    if loop-item is enchanted with efficiency 4:
        remove loop-item from player's inventory
 
Thats not what he asked for XD
[doublepost=1584356390,1584356088][/doublepost]

Code:
loop all items in player's inventory:
    if loop-item is enchanted with efficiency 4:
        remove loop-item from player's inventory
Ill give this a shot
[doublepost=1584640634][/doublepost]It worked, thanks very much
 
Status
Not open for further replies.