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

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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

Discussion in 'Skript' started by Unsimply, Nov 17, 2022.

Thread Status:
Not open for further replies.
  1. Unsimply

    Unsimply Member

    Joined:
    Nov 17, 2022
    Messages:
    1
    Likes Received:
    0
    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.
     
  2. iFammYT

    iFammYT Member

    Joined:
    Nov 6, 2022
    Messages:
    13
    Likes Received:
    1
    Code (Text):
    1. on block break:
    2.     if block under event-block is stone:
    3.         if player has permission "block.detect":
    4.             send "block break detected" to player
    thank me later :emoji_smile:
     
Thread Status:
Not open for further replies.

Share This Page

Loading...