Hello. I'm trying to make a skript and I have a little problem. I'm trying to disable the drops but it won't work.
Everything working except the "event.setDropItems(false)". Someone please help me
Code:
on block break:
if event-block is coal_block:
if "%region at player%" contain "pontbanya":
if held item is diamond_pickaxe:
if player's held item isn't enchanted:
event.setDropItems(false)
set event-block to air
set {_waited} to difference between {pboost.%player%.lastused} and now
if {_waited} is less than 10 minutes:
add 0.1 to {%player%.pont}
json("%player%", "||&e&lPontok &8// &a+0.1 pont||ttp:&7Össz pontok: &e%{%player%.pont}%||")
stop
add 0.01 to {%player%.pont}
json("%player%", "||&e&lPontok &8// &a+0.01 pont||ttp:&7Össz pontok: &e%{%player%.pont}%||")
stop
cancel the event
send "&e&lPontok &8// &cEzzel itt nem bányászhatsz."
Everything working except the "event.setDropItems(false)". Someone please help me