#Can someone fix this for me?

1 messages · Page 1 of 1 (latest)

tacit quartz
#

I want the skript to cancel the drop when a block is mined and give the player the item directly but when i mine a grass block or ore i get the block if it's mined with silktouch pleas help..

on mine:
    if event-block is not air:
        set {_mined_block} to event-block
        cancel event
    if player can't hold {_mined_block}:
        stop
    else:
        set event-block to air
        give {_mined_block} to player
merry pollen
#

Thats not what we do here. We can explain issues and walk you through them, but we dont do it for you

#
  1. The first if statement is useless
  2. Use the drops of BLOCK using TOOL expression
tacit quartz
merry pollen
#

I gave you the syntax

#

You can also see the docs if you’d prefer that (theres also examples there)