Hi im trying to make my code drop the items that are mined on the floor at players feet if inventory is full, i have skbee installed as a plugin and here is my code:
code_language.skript:
on break:
if {build.%player%} is set:
"%region at event-block%" does not contain "mine"
cancel drops of items
if drops of event-block is set:
"%region at event-block%" contains "mine"
give player drops of event-block using player's tool #or drop if inv is full
cancel drops of items
stop
"%region at event-block%" contains "mine"
set {_drops} to level of fortune on player's tool
if level of fortune on player's tool is not set:
set {_drops} to 1
set {_x} to random integer between 1 and {_drops}
cancel drops of items
give player {_x} of event-block #or drop if inv is full
on place:
if {build.%player%} is set:
cancel event
on break:
if {build.%player%} is set:
"%region at event-block%" contains "world"
"%region at event-block%" does not contain "mine"
cancel event
command /build:
permission: admin.build
trigger:
if {build.%player%} is not set:
set {build.%player%} to true
send "&r[&4SU&r] &eBuild mode &c&nOff"
else:
delete {build.%player%}
send "&r[&4SU&r] &eBuild mode &a&nOn"
on join:
player has permission "admin.build"
set {build.%player%} to true
send colored "&r[&4SU&r] &eBuild mode &c&nOff&e."
send colored "&r[&4SU&r] &ePlease use &9&n&l/build&r&e to &a&n&lenable&r&e/&c&n&ldiasble"