Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @EventHandler
- public void onBlockPlace(BlockPlaceEvent event)
- {
- Location origin = event.getBlock().getLocation();
- int radius = 5;
- for (int i = -radius; i < radius; i++)
- for (int j = -radius; j < radius; j++)
- for (int k = -radius; k < radius; k++)
- if (origin.add(i, j, k).distance(origin) <= radius)
- event.getBlock().getWorld().getBlockAt(origin.add(i, j, k)).setType(Material.DIRT);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement