Uwaga naprawiłem to ale nie działa tak jak chciałem:
Plugin działa tak:
for(int i = b.getY(); i > 0; i--) {
Location loc = new Location(p.getLocation().getWorld(), b.getX(), i, b.getZ());
if(loc.getBlock().getType() == Material.AIR) {
loc.getBlock().setType(Material.OBSIDIAN);
}
}
A ja chciałem tak jak w sk:
set block to obsidian
set {_a} to location of block
loop 300 times:
set {_a} to location of block under {_a}
if block at {_a} is air:
set block at {_a} to obsidian
wait 0.1 second
else:
stop