Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for (double x = all.getLocation().getX() - 4; x < all.getLocation().getX() + 4; x++) {
- for (double z = all.getLocation().getZ() - 4; z < all.getLocation().getZ() + 4; z++) {
- Location location = new Location(all.getWorld(), x, all.getLocation().getY() + 10, z);
- blocks.clear();
- blocks.add(all.getWorld().getBlockAt(location));
- Random random = new Random();
- Block block = blocks.get(random.nextInt(blocks.size()));
- block.getWorld().spawnEntity(block.getLocation(), EntityType.PRIMED_TNT);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement