Pickaxe enchant checker

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

Travis Janzen

Member
Aug 13, 2019
2
0
0
25
I have been trying to figure out how to check what enchantments a players pickaxe is when they mine a block. I have searched multiple forum pages and the docs, skUnity came up with tool of the player is enchanted with efficiency 2. Every time I reload the skript in game it says it can't compare a slot with 'enchanted with silktouch' Have any idea whats going wrong?
Skript version: 2.4 5beta (latest)
minecraft version: 1.14.4
no console errors
Code:
Code:
on mine of stone:
    if tool of the player is enchanted with silktouch:
        execute console command "give %player% steak"
 
Last edited:
Code:
on break of stone:
    if player's tool is enchanted with silk touch:
        give player a steak
Thank you that worked!
But everytime I reload the skript it gives me the error can't compare a slot with 'enchant with silktouch'
it would just be nice if there would be a fix to that.
 
Status
Not open for further replies.