I want it to sell all the dirt in the chest every 10 seconds and give the money to the placer of the chest ({voidchest.owner.%location of block%}) can anyone help me do this? I would appreciate it so very much
code_language.skript:
on place of chest:
if name of player's tool is "&bVoid Chest":
if lore of player's tool is "&7This will automatically sell all items inside of the container.||&f||&b&lLIMITED TIME VOIDCHEST":
add location of block to {voidchest.list::*}
set {voidchest.owner.%location of block%} to player
message "&e&l(!) &7You have placed down a voidchest!"
every 10 seconds in "world":
loop items in block at {voidchest.list::*}'s inventory:
if loop-item is dirt:
set {_dirt} to number of dirt in event-block's inventory
set {_value1} to {_dirt} * 100
set {_addingmoney} to {_dirt}
add {_addingmoney} to "%{voidchest.owner.%event-block%}%"'s balance