Ramina__ Posted September 3, 2021 Share Posted September 3, 2021 There is an issue with the line: if pickaxe has enchant "fortune 1": Here is the whole code so far: on block break: set {_loc} to location of block if player's held item is pickaxe: if pickaxe has enchant "fortune 1": set {_randodrop} to random integer between 1 and 6 if {_randodrop} = 1: drop 1 iron ingot at {_loc} else: if {_randodrop} =2: drop 2 iron ingot at {_loc} else: if {_randodrop} = 3: drop 3 iron ingot at {_loc} else: drop 1 iron ore at {_loc} Link to comment Share on other sites More sharing options...
AdjelG Posted September 3, 2021 Share Posted September 3, 2021 Hey! Moved this to the Skript Discussion category. Link to comment Share on other sites More sharing options...
emopediaMC Posted September 4, 2021 Share Posted September 4, 2021 23 hours ago, nolando09 said: There is an issue with the line: if pickaxe has enchant "fortune 1": Here is the whole code so far: on block break: set {_loc} to location of block if player's held item is pickaxe: if pickaxe has enchant "fortune 1": set {_randodrop} to random integer between 1 and 6 if {_randodrop} = 1: drop 1 iron ingot at {_loc} else: if {_randodrop} =2: drop 2 iron ingot at {_loc} else: if {_randodrop} = 3: drop 3 iron ingot at {_loc} else: drop 1 iron ore at {_loc} Hey! Could you try "if pickaxe is enchanted with fortune 1:" for me? That should work. Developer Joined Minecraft in 2010 on PC Joined Minehut in August 2016 1 year Skript experience 2 months Java experience 5 months Javascript experience Link to comment Share on other sites More sharing options...
Ramina__ Posted September 5, 2021 Author Share Posted September 5, 2021 On 9/4/2021 at 6:32 PM, emopediaMC said: Hey! Could you try "if pickaxe is enchanted with fortune 1:" for me? That should work. Well there is no errors but it only drops raw iron 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