how would I do it when I break the sea lantern the apples stop spawning.
Code:
on place of a sea lantern:
set {_loc} to the location 1 meter above the block
set block 1 meters above the block to glass
loop 100 times:
wait 5 seconds
drop 10 apples at the event-location