Solved On mine, clear drops

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

couger44

Supporter
Feb 19, 2017
713
31
28
Chile
Skript Version: 2.2

How can I do, so that when mining, cancel the drops?

Code:

code_language.skript:
on mine of diamond ore:
    clear drops
    if player's tool is a pickaxe:
        add 1 of diamond to the player

I trying using
code_language.skript:
cancel drops
#and
cancel event
 
cancel drops/etc is not plausible since it only works for on death event.

What you can do is cancel the event, set the block to air then add the item to the player
 
on mine of diamond_ore:
cancel event
set event-block to air
broadcast "congrats i'm smart i know skript inside out xD squared.com/meme"
 
on mine of diamond_ore:
cancel event
set event-block to air
broadcast "congrats i'm smart i know skript inside out xD squared.com/meme"
I going try
[doublepost=1495244752,1495243897][/doublepost]
on mine of diamond_ore:
cancel event
set event-block to air
broadcast "congrats i'm smart i know skript inside out xD squared.com/meme"
Is Working!, Thanks!
 
Status
Not open for further replies.