Jump to content

I am making a clean cut skript and there is an issue..


Ramina__

Recommended Posts

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...