How to remove drops in "on break" but without canceling event?

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

mimic007

Member
Dec 22, 2018
2
0
0
How to remove drops in "on break" event but not cancel event?
I want to create skript that will add drops from breaking block into player's inventory but I do not want to cancel this event.
Thanks for any help.
 
The only way is with cancel event...

on break:
cancel event
set block at event-block to air
drop 1 dirt
 
That is not true. On discord someone gave me solution.
In skript-mirron addon there is way to use event methods, so using this addon it is possible to:
Code:
on break:
  event.setDropItems(false)
 
That is not true. On discord someone gave me solution.
In skript-mirron addon there is way to use event methods, so using this addon it is possible to:
Code:
on break:
  event.setDropItems(false)
I did not know that. Excuse me. And please mark the topic as resolved
 
Status
Not open for further replies.