Solved Copper Ore, Cobbled deepslate, and Deepslate dont work.

  • 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 community!

    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.

Cat Cake

Member
Aug 21, 2020
4
0
1
I wrote code like this:
Code:
on mine:
    if event-block is deepslate diamond ore:
        cancel event
        set event-block to bedrock
        if player doesn't have enough space for 1 diamond:
            drop 1 diamond
        else:
            give 1 diamond to player
        wait 5 seconds
        set event-block to deepslate diamond ore
and it works perfectly fine, but if I write this:
Code:
on mine:
    if event-block is Deepslate:
        cancel event
        set event-block to bedrock
        if player doesn't have enough space for 1 deepslate:
            drop 1 deepslate
        else:
            give 1 deepslate to player
        wait 5 seconds
        set event-block to deepslate
it give me an error. I tried capitilising stuff and it fixed some things but it still doesnt work correctly. This only happens on minehut else where it works fine and the only new blocks it does this for are copper or, deepslate, cobbled deepslate and deepslate copper ore. Please tell me a solution to this if you can. Thank you so much!!!
 
Status
Not open for further replies.