Jump to content

I need some help. [SOLVED]


Frydex

Recommended Posts

So I've been stumped. I want it to be if you have an iron pickaxe (or above) you'll get the diamond drop the problem is it's not letting me use else. and you can use a stone pickaxe & wooden pickaxe to still get it.

[Skript]
on break of diamond ore:
    clear drops
    if player's held item is iron pickaxe or diamond pickaxe or netherite pickaxe:
    add diamond to player's inventory
    (doesn't let me use else)
    send "You do not have the correct pickaxe level"

Edited by Frydex
Link to comment
Share on other sites

27 minutes ago, Frydex said:

So I've been stumped. I want it to be if you have an iron pickaxe (or above) you'll get the diamond drop the problem is it's not letting me use else. and you can use a stone pickaxe & wooden pickaxe to still get it.

[Skript]
on break of diamond ore:
    clear drops
    if player's held item is iron pickaxe or diamond pickaxe or netherite pickaxe:
    add diamond to player's inventory
    (doesn't let me use else)
    send "You do not have the correct pickaxe level"

You didn't indent it correctly, so it won't let you use the "else:"

 

 

image.png.bc433d6489d70ad831075fe76809b993.png
 

Owner of Lifestealed, Labs, Encore, UNOfficially and Observed
 

OG [VIP] 12/26/20 - 10/27/2021
OG [PRO] 12/27/21 - 11/18/2022
OG [LEGEND] 11/18/2022 - 3/14/2023
[DEFAULT] 3/14/2023 - 5/8/2024

[MOD] 5/8/2024 - Present

 

Link to comment
Share on other sites

  • Frydex changed the title to I need some help. [SOLVED]

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