I need to be able to break something in a certain area, and it cancels event but still drops drop.

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

Darty_ss

Member
Jul 29, 2021
3
0
1
Code:
on break:
    if bound with id "blocks1" is not set:
        set {_loc1} to the location of -32, 73, 356 of the world "voidworld"
        set {_loc2} to the location at -20, 73, 340 of the world "voidworld"
        create bound with id "blocks1" between {_loc1} and {_loc2}
    if location of event-block is within bound with id "blocks1":
        cancel event
        drop drops of event-block using player's tool

command /refreshbound:
    permission: op
    trigger:
        delete bound with id "blocks1"




Idk why this doesnt work



 
Last edited:
Please put your code in code blocks, and I'm not sure how to work with bounds, but what exactly does not work?
1. I dont know how to put it in code blocks so if you could help w/ that.

2. It doesnt cancel event. So the block doesnt respawn
 
Can you debug your code? (Add messages to see where it stops)
Lbi5NOU.png
 
Status
Not open for further replies.