Nutin_rf Posted August 1, 2021 Share Posted August 1, 2021 (edited) on mine of iron ore: if player's held item is wooden pickaxe: cancel event send "&b&nStone pickaxe or higher &f&nneeded to mine in this cave!" else: cancel event set event-block to stone give player 1 iron ore wait 7 seconds set event-block to iron ore These exact lines work just fine for coal ore and cobble stone. However, When I mine Iron ore with a wooden pickaxe, it just disappears, instead of doing nothing. The part where it gives me the Iron ore works fine, however. Edit: I tried restarting the server and that didn't work either. Edited August 1, 2021 by Nutin_rf IF I HELPED LEAVE A LIKE JUST A RANDOM PERSON WHO PLAYS MINEHUT! Link to comment Share on other sites More sharing options...
Lapzzo Posted August 1, 2021 Share Posted August 1, 2021 on mine of iron ore: if player's tool is a wooden pickaxe: cancel event send "&b&nYou need a Stone pickaxe or higher &f&nneeded to mine in this cave!" else: cancel event set event-block to stone give player 1 iron ore wait 7 seconds set event-block to iron ore Link to comment Share on other sites More sharing options...
Lapzzo Posted August 1, 2021 Share Posted August 1, 2021 This is not tested, but im pretty sure will work! Link to comment Share on other sites More sharing options...
Nutin_rf Posted August 1, 2021 Author Share Posted August 1, 2021 Wait nevermind! I got it fixed now. I learned that on mine only works if you have the right type of pickaxe, so I had to use the on break. Here is the new skript: on break: if event-block is iron ore: if player's world = "mine": set event-block to stone if player's held item is wooden pickaxe: set event-block to iron ore send "&b&nStone pickaxe or higher &f&nneeded to mine in this cave!" to player else: cancel event set event-block to stone give player 1 iron ore wait 25 seconds set event-block to iron ore Can a mod close this thread? IF I HELPED LEAVE A LIKE JUST A RANDOM PERSON WHO PLAYS MINEHUT! Link to comment Share on other sites More sharing options...
Lapzzo Posted August 1, 2021 Share Posted August 1, 2021 25 minutes ago, Nutin_rf said: Wait nevermind! I got it fixed now. I learned that on mine only works if you have the right type of pickaxe, so I had to use the on break. Nice! Link to comment Share on other sites More sharing options...
Punish Posted August 3, 2021 Share Posted August 3, 2021 On 8/1/2021 at 10:53 PM, Nutin_rf said: Wait nevermind! I got it fixed now. I learned that on mine only works if you have the right type of pickaxe, so I had to use the on break. Here is the new skript: on break: if event-block is iron ore: if player's world = "mine": set event-block to stone if player's held item is wooden pickaxe: set event-block to iron ore send "&b&nStone pickaxe or higher &f&nneeded to mine in this cave!" to player else: cancel event set event-block to stone give player 1 iron ore wait 25 seconds set event-block to iron ore Can a mod close this thread? good 2 Every time you tell a lie, You'll have to tell a 100 more. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now