Code:
on place of dried kelp block:
set {owner::%location of event-block%} to player
if {maxgen::%uuid of player%} is not set:
set {maxgen::%uuid of player%} to 15
if {gen::%uuid of player%} >= 15:
cancel event
send "&cYou already placed max generators"
if {gen::%uuid of player%} < 15:
add 1 to {gen::%uuid of player%}
send "&7You have placed &c%{gen::%uuid of player%}%&7/&c15 &7generators"
every 100 ticks:
if {owner::%location of event-block%} is online:
while event-block is dried kelp block:
drop 1 kelp above location of event-block
The part that does not work is the every 100 ticks it detecting if the owner of the generator is online, even when I leave it continues to produce, anyone have any idea why?
Last edited: