How do I track blocks being broken by the block below it?

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

    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.

Unsimply

Member
Nov 17, 2022
1
0
1
Hi, I have a block (that is breakable when the block below it is broken). It needs to remove some entities around it and drop a custom item when breaking it. I use `on break` for that. However, if I break the block below it, the `on break` event doesn't run. How can I circumvent that? Thanks.
 
Code:
on block break:
    if block under event-block is stone:
        if player has permission "block.detect":
            send "block break detected" to player

thank me later :emoji_smile:
 
Status
Not open for further replies.