Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package Gispell;
- import java.util.ArrayList;
- import java.util.HashMap;
- import java.util.Map;
- import org.bukkit.Bukkit;
- import org.bukkit.Location;
- import org.bukkit.Material;
- import org.bukkit.Sound;
- import org.bukkit.World;
- import org.bukkit.craftbukkit.v1_13_R2.entity.CraftEntity;
- import org.bukkit.entity.EntityType;
- import org.bukkit.entity.Fireball;
- import org.bukkit.entity.Player;
- import org.bukkit.event.EventHandler;
- import org.bukkit.event.Listener;
- import org.bukkit.event.block.Action;
- import org.bukkit.event.entity.EntityDamageByEntityEvent;
- import org.bukkit.event.player.PlayerInteractEvent;
- import org.bukkit.inventory.ItemStack;
- import org.bukkit.plugin.Plugin;
- import org.bukkit.plugin.java.JavaPlugin;
- import org.bukkit.potion.PotionEffect;
- import org.bukkit.potion.PotionEffectType;
- import org.bukkit.scheduler.BukkitRunnable;
- import org.bukkit.scheduler.BukkitScheduler;
- import org.bukkit.scheduler.BukkitTask;
- import net.minecraft.server.v1_13_R2.Entity;
- import net.minecraft.server.v1_13_R2.EntityFireball;
- public class ClassGispellProperties implements Listener {
- @EventHandler
- public void RestrictPlaceOnFloor(PlayerInteractEvent event) {
- Player player = event.getPlayer();
- Action action = event.getAction();
- ItemStack item = event.getItem();
- if(item == null) return;
- if(item.getType() == Material.PLAYER_HEAD && item.hasItemMeta()
- && item.getItemMeta().hasDisplayName()
- && item.getItemMeta().getDisplayName().equalsIgnoreCase("§6§lBOULE DE FEU §8[§e§lUnique§8]")
- || item.getItemMeta().getDisplayName().equalsIgnoreCase("§6§lBOULE DE FEU §8[§3§lRare§8]")
- || item.getItemMeta().getDisplayName().equalsIgnoreCase("§6§lGEODE CRYSTALINE §8[§a§lEpique§8]")
- || item.getItemMeta().getDisplayName().equalsIgnoreCase("§6§lGEODE CRYSTALINE §8[§5§lMythique§8]")
- || item.getItemMeta().getDisplayName().equalsIgnoreCase("§6§lAURA DE GUERISON §8[§3§lRare§8]")
- || item.getItemMeta().getDisplayName().equalsIgnoreCase("§6§lAURA DE GUERISON §8[§e§lUnique§8]")) {
- if(action == Action.LEFT_CLICK_BLOCK || action == Action.RIGHT_CLICK_BLOCK) {
- event.setCancelled(true);
- }
- }
- }
- //#==================================================================================================================================================================#
- ////BOULE DE FEU #
- //#==================================================================================================================================================================#
- @EventHandler
- public void BouleDeFeu(PlayerInteractEvent event) {
- Player player = event.getPlayer();
- Action action = event.getAction();
- ItemStack item = event.getItem();
- if(item == null) return;
- if(item.getType() == Material.PLAYER_HEAD && item.hasItemMeta()
- && item.getItemMeta().hasDisplayName()
- && item.getItemMeta().getDisplayName().equalsIgnoreCase("§6§lBOULE DE FEU §8[§e§lUnique§8]")
- || item.getItemMeta().getDisplayName().equalsIgnoreCase("§6§lBOULE DE FEU §8[§3§lRare§8]")) {
- if(action == Action.RIGHT_CLICK_AIR || action == Action.LEFT_CLICK_AIR || action == Action.RIGHT_CLICK_BLOCK || action == Action.LEFT_CLICK_BLOCK) {
- event.setCancelled(true);
- Fireball fireball = player.launchProjectile(Fireball.class);
- fireball.setGlowing(true);
- fireball.setVelocity(player.getEyeLocation().getDirection().multiply(2));
- }
- }
- }
- //#==================================================================================================================================================================#
- ////BOULE DE FEU #
- //#==================================================================================================================================================================#
- //#==================================================================================================================================================================#
- //AURA DE GUERISON #
- //#==================================================================================================================================================================#
- @EventHandler
- public void AuraDeGuerison(PlayerInteractEvent event) {
- Player player = event.getPlayer();
- Action action = event.getAction();
- ItemStack item = event.getItem();
- Location location = player.getLocation();
- if(item == null) return;
- if(item.getType() == Material.PLAYER_HEAD && item.hasItemMeta()
- && item.getItemMeta().hasDisplayName()
- && item.getItemMeta().getDisplayName().equalsIgnoreCase("§6§lAURA DE GUERISON §8[§3§lRare§8]")
- || item.getItemMeta().getDisplayName().equalsIgnoreCase("§6§lAURA DE GUERISON §8[§e§lUnique§8]")) {
- if(action == Action.RIGHT_CLICK_AIR || action == Action.LEFT_CLICK_AIR || action == Action.RIGHT_CLICK_BLOCK || action == Action.LEFT_CLICK_BLOCK) {
- event.setCancelled(true);
- player.addPotionEffect(new PotionEffect(PotionEffectType.REGENERATION, 300, 1));
- player.addPotionEffect(new PotionEffect(PotionEffectType.HEAL, 10, 1));
- player.playSound(location, Sound.BLOCK_BEACON_POWER_SELECT, 200, 1);
- ArrayList<Entity> playeraround = new ArrayList<>();
- for(org.bukkit.entity.Entity ent : player.getNearbyEntities(7, 3, 7)) {
- if(ent instanceof Player) {
- ((Player) ent).addPotionEffect(new PotionEffect(PotionEffectType.REGENERATION, 300, 1));
- ((Player) ent).addPotionEffect(new PotionEffect(PotionEffectType.HEAL, 10, 1));
- ((Player) ent).playSound(location, Sound.BLOCK_BEACON_POWER_SELECT, 200, 1);
- }
- playeraround.add((Entity) ent);
- }
- }
- }
- }
- //#==================================================================================================================================================================#
- //AURA DE GUERISON #
- //#==================================================================================================================================================================#
- //#==================================================================================================================================================================#
- //GEODE CRYSTALINE #
- //#==================================================================================================================================================================#
- public final Plugin plugin;
- public ClassGispellProperties(Plugin plugin) {
- this.plugin = plugin;
- }
- @EventHandler
- public void GeodeCrystaline(PlayerInteractEvent event) {
- Player player = event.getPlayer();
- Action action = event.getAction();
- ItemStack item = event.getItem();
- Location location = player.getLocation();
- if(item == null) return;
- if(item.getType() == Material.PLAYER_HEAD && item.hasItemMeta()
- && item.getItemMeta().hasDisplayName()
- && item.getItemMeta().getDisplayName().equalsIgnoreCase("§6§lGEODE CRYSTALINE §8[§a§lEpique§8]")
- || item.getItemMeta().getDisplayName().equalsIgnoreCase("§6§lGEODE CRYSTALINE §8[§5§lMythique§8]")) {
- if(action == Action.RIGHT_CLICK_AIR || action == Action.LEFT_CLICK_AIR || action == Action.RIGHT_CLICK_BLOCK || action == Action.LEFT_CLICK_BLOCK) {
- event.setCancelled(true);
- player.playSound(location, Sound.ENTITY_ZOMBIE_VILLAGER_CURE, 300, 0);
- player.playSound(location, Sound.BLOCK_BEACON_AMBIENT, 300, 3);
- player.addPotionEffect(new PotionEffect(PotionEffectType.REGENERATION, 300, 1), true);
- World world = player.getWorld();
- double x1 = player.getLocation().getX();
- double y1 = player.getLocation().getY();
- double z1 = player.getLocation().getZ();
- if(world.getBlockAt(new Location(world, x1 + 2, y1, z1 + 2)).getType() == Material.AIR) {
- world.getBlockAt(new Location(world, x1 + 2, y1, z1 + 2)).setType(Material.GRANITE);
- Bukkit.getScheduler().runTaskLater(plugin, new Runnable() {
- @Override
- public void run() {
- world.getBlockAt(new Location(world, x1 + 2, y1, z1 + 2)).setType(Material.AIR);
- }
- }, 5 * 20);
- }if(world.getBlockAt(new Location(world, x1 + 3, y1, z1 + 1)).getType() == Material.AIR) {
- world.getBlockAt(new Location(world, x1 + 3, y1, z1 + 1)).setType(Material.POLISHED_GRANITE);
- Bukkit.getScheduler().runTaskLater(plugin, new Runnable() {
- @Override
- public void run() {
- world.getBlockAt(new Location(world, x1 + 3, y1, z1 + 1)).setType(Material.POLISHED_GRANITE);
- }
- }, 5 * 20);
- }if(world.getBlockAt(new Location(world, x1 + 3, y1, z1)).getType() == Material.AIR) {
- world.getBlockAt(new Location(world, x1 + 3, y1, z1)).setType(Material.GRANITE);
- Bukkit.getScheduler().runTaskLater(plugin, new Runnable() {
- @Override
- public void run() {
- world.getBlockAt(new Location(world, x1 + 3, y1, z1 + 1)).setType(Material.POLISHED_GRANITE);
- }
- }, 5 * 20);
- }if(world.getBlockAt(new Location(world, x1 + 3, y1, z1 - 1)).getType() == Material.AIR) {
- world.getBlockAt(new Location(world, x1 + 3, y1, z1 - 1)).setType(Material.GRANITE);
- Bukkit.getScheduler().runTaskLater(plugin, new Runnable() {
- @Override
- public void run() {
- world.getBlockAt(new Location(world, x1 + 3, y1, z1 + 1)).setType(Material.POLISHED_GRANITE);
- }
- }, 5 * 20);
- }if(world.getBlockAt(new Location(world, x1 + 2, y1, z1 - 2)).getType() == Material.AIR) {
- world.getBlockAt(new Location(world, x1 + 2, y1, z1 - 2)).setType(Material.WHITE_STAINED_GLASS );
- Bukkit.getScheduler().runTaskLater(plugin, new Runnable() {
- @Override
- public void run() {
- world.getBlockAt(new Location(world, x1 + 3, y1, z1 + 1)).setType(Material.POLISHED_GRANITE);
- }
- }, 5 * 20);
- }if(world.getBlockAt(new Location(world, x1 + 1, y1, z1 - 3)).getType() == Material.AIR) {
- world.getBlockAt(new Location(world, x1 + 1, y1, z1 - 3)).setType(Material.COARSE_DIRT);
- Bukkit.getScheduler().runTaskLater(plugin, new Runnable() {
- @Override
- public void run() {
- world.getBlockAt(new Location(world, x1 + 3, y1, z1 + 1)).setType(Material.POLISHED_GRANITE);
- }
- }, 5 * 20);
- }if(world.getBlockAt(new Location(world, x1, y1, z1 - 3)).getType() == Material.AIR) {
- world.getBlockAt(new Location(world, x1, y1, z1 - 3)).setType(Material.POLISHED_GRANITE);
- Bukkit.getScheduler().runTaskLater(plugin, new Runnable() {
- @Override
- public void run() {
- world.getBlockAt(new Location(world, x1 + 3, y1, z1 + 1)).setType(Material.POLISHED_GRANITE);
- }
- }, 5 * 20);
- }if(world.getBlockAt(new Location(world, x1 - 1, y1, z1 - 3)).getType() == Material.AIR) {
- world.getBlockAt(new Location(world, x1 - 1, y1, z1 - 3)).setType(Material.GRANITE);
- Bukkit.getScheduler().runTaskLater(plugin, new Runnable() {
- @Override
- public void run() {
- world.getBlockAt(new Location(world, x1 + 3, y1, z1 + 1)).setType(Material.POLISHED_GRANITE);
- }
- }, 5 * 20);
- }if(world.getBlockAt(new Location(world, x1 - 2, y1, z1 - 2)).getType() == Material.AIR) {
- world.getBlockAt(new Location(world, x1 - 2, y1, z1 - 2)).setType(Material.WHITE_STAINED_GLASS );
- Bukkit.getScheduler().runTaskLater(plugin, new Runnable() {
- @Override
- public void run() {
- world.getBlockAt(new Location(world, x1 + 3, y1, z1 + 1)).setType(Material.POLISHED_GRANITE);
- }
- }, 5 * 20);
- }if(world.getBlockAt(new Location(world, x1 - 3, y1, z1 - 1)).getType() == Material.AIR) {
- world.getBlockAt(new Location(world, x1 - 3, y1, z1 - 1)).setType(Material.COARSE_DIRT);
- Bukkit.getScheduler().runTaskLater(plugin, new Runnable() {
- @Override
- public void run() {
- world.getBlockAt(new Location(world, x1 + 3, y1, z1 + 1)).setType(Material.POLISHED_GRANITE);
- }
- }, 5 * 20);
- }if(world.getBlockAt(new Location(world, x1 - 3, y1, z1)).getType() == Material.AIR) {
- world.getBlockAt(new Location(world, x1 - 3, y1, z1)).setType(Material.GRANITE);
- Bukkit.getScheduler().runTaskLater(plugin, new Runnable() {
- @Override
- public void run() {
- world.getBlockAt(new Location(world, x1 + 3, y1, z1 + 1)).setType(Material.POLISHED_GRANITE);
- }
- }, 5 * 20);
- }if(world.getBlockAt(new Location(world, x1 - 3, y1, z1 + 1)).getType() == Material.AIR) {
- world.getBlockAt(new Location(world, x1 - 3, y1, z1 + 1)).setType(Material.WHITE_STAINED_GLASS );
- Bukkit.getScheduler().runTaskLater(plugin, new Runnable() {
- @Override
- public void run() {
- world.getBlockAt(new Location(world, x1 + 3, y1, z1 + 1)).setType(Material.POLISHED_GRANITE);
- }
- }, 5 * 20);
- }if(world.getBlockAt(new Location(world, x1 - 2, y1, z1 + 2)).getType() == Material.AIR) {
- world.getBlockAt(new Location(world, x1 - 2, y1, z1 + 2)).setType(Material.GRANITE);
- Bukkit.getScheduler().runTaskLater(plugin, new Runnable() {
- @Override
- public void run() {
- world.getBlockAt(new Location(world, x1 + 3, y1, z1 + 1)).setType(Material.POLISHED_GRANITE);
- }
- }, 5 * 20);
- }if(world.getBlockAt(new Location(world, x1 - 1, y1, z1 + 3)).getType() == Material.AIR) {
- world.getBlockAt(new Location(world, x1 - 1, y1, z1 + 3)).setType(Material.COARSE_DIRT);
- Bukkit.getScheduler().runTaskLater(plugin, new Runnable() {
- @Override
- public void run() {
- world.getBlockAt(new Location(world, x1 + 3, y1, z1 + 1)).setType(Material.POLISHED_GRANITE);
- }
- }, 5 * 20);
- }if(world.getBlockAt(new Location(world, x1, y1, z1 + 3)).getType() == Material.AIR) {
- world.getBlockAt(new Location(world, x1, y1, z1 + 3)).setType(Material.GRANITE);
- Bukkit.getScheduler().runTaskLater(plugin, new Runnable() {
- @Override
- public void run() {
- world.getBlockAt(new Location(world, x1 + 3, y1, z1 + 1)).setType(Material.POLISHED_GRANITE);
- }
- }, 5 * 20);
- }if(world.getBlockAt(new Location(world, x1 + 1, y1, z1 + 3)).getType() == Material.AIR) {
- world.getBlockAt(new Location(world, x1 + 1, y1, z1 + 3)).setType(Material.GRANITE);
- Bukkit.getScheduler().runTaskLater(plugin, new Runnable() {
- @Override
- public void run() {
- world.getBlockAt(new Location(world, x1 + 3, y1, z1 + 1)).setType(Material.POLISHED_GRANITE);
- }
- }, 5 * 20);
- }if(world.getBlockAt(new Location(world, x1 + 3, y1, z1 - 3)).getType() == Material.AIR) {
- world.getBlockAt(new Location(world, x1 + 3, y1, z1 - 3)).setType(Material.WHITE_STAINED_GLASS );
- Bukkit.getScheduler().runTaskLater(plugin, new Runnable() {
- @Override
- public void run() {
- world.getBlockAt(new Location(world, x1 + 3, y1, z1 + 1)).setType(Material.POLISHED_GRANITE);
- }
- }, 5 * 20);
- }if(world.getBlockAt(new Location(world, x1 - 3, y1, z1 - 3)).getType() == Material.AIR) {
- world.getBlockAt(new Location(world, x1 - 3, y1, z1 - 3)).setType(Material.WHITE_STAINED_GLASS );
- Bukkit.getScheduler().runTaskLater(plugin, new Runnable() {
- @Override
- public void run() {
- world.getBlockAt(new Location(world, x1 + 3, y1, z1 + 1)).setType(Material.POLISHED_GRANITE);
- }
- }, 5 * 20);
- }if(world.getBlockAt(new Location(world, x1 - 4, y1, z1)).getType() == Material.AIR) {
- world.getBlockAt(new Location(world, x1 - 4, y1, z1)).setType(Material.WHITE_STAINED_GLASS );
- Bukkit.getScheduler().runTaskLater(plugin, new Runnable() {
- @Override
- public void run() {
- world.getBlockAt(new Location(world, x1 + 3, y1, z1 + 1)).setType(Material.POLISHED_GRANITE);
- }
- }, 5 * 20);
- //
- }if(world.getBlockAt(new Location(world, x1 + 2, y1 + 1, z1 + 2)).getType() == Material.AIR) {
- world.getBlockAt(new Location(world, x1 + 2, y1 + 1, z1 + 2)).setType(Material.POLISHED_GRANITE);
- Bukkit.getScheduler().runTaskLater(plugin, new Runnable() {
- @Override
- public void run() {
- world.getBlockAt(new Location(world, x1 + 3, y1, z1 + 1)).setType(Material.POLISHED_GRANITE);
- }
- }, 5 * 20);
- }if(world.getBlockAt(new Location(world, x1 + 3, y1 + 1, z1 + 1)).getType() == Material.AIR) {
- world.getBlockAt(new Location(world, x1 + 3, y1 + 1, z1 + 1)).setType(Material.WHITE_STAINED_GLASS );
- Bukkit.getScheduler().runTaskLater(plugin, new Runnable() {
- @Override
- public void run() {
- world.getBlockAt(new Location(world, x1 + 3, y1, z1 + 1)).setType(Material.POLISHED_GRANITE);
- }
- }, 5 * 20);
- }if(world.getBlockAt(new Location(world, x1 + 3, y1 + 1, z1)).getType() == Material.AIR) {
- world.getBlockAt(new Location(world, x1 + 3, y1 + 1, z1)).setType(Material.COARSE_DIRT);
- Bukkit.getScheduler().runTaskLater(plugin, new Runnable() {
- @Override
- public void run() {
- world.getBlockAt(new Location(world, x1 + 3, y1, z1 + 1)).setType(Material.POLISHED_GRANITE);
- }
- }, 5 * 20);
- }if(world.getBlockAt(new Location(world, x1 + 3, y1 + 1, z1 - 1)).getType() == Material.AIR) {
- world.getBlockAt(new Location(world, x1 + 3, y1 + 1, z1 - 1)).setType(Material.WHITE_STAINED_GLASS );
- Bukkit.getScheduler().runTaskLater(plugin, new Runnable() {
- @Override
- public void run() {
- world.getBlockAt(new Location(world, x1 + 3, y1, z1 + 1)).setType(Material.POLISHED_GRANITE);
- }
- }, 5 * 20);
- }if(world.getBlockAt(new Location(world, x1 + 2, y1 + 1, z1 - 2)).getType() == Material.AIR) {
- world.getBlockAt(new Location(world, x1 + 2, y1 + 1, z1 - 2)).setType(Material.COARSE_DIRT);
- Bukkit.getScheduler().runTaskLater(plugin, new Runnable() {
- @Override
- public void run() {
- world.getBlockAt(new Location(world, x1 + 3, y1, z1 + 1)).setType(Material.POLISHED_GRANITE);
- }
- }, 5 * 20);
- }if(world.getBlockAt(new Location(world, x1 + 1, y1 + 1, z1 - 3)).getType() == Material.AIR) {
- world.getBlockAt(new Location(world, x1 + 1, y1 + 1, z1 - 3)).setType(Material.COARSE_DIRT);
- Bukkit.getScheduler().runTaskLater(plugin, new Runnable() {
- @Override
- public void run() {
- world.getBlockAt(new Location(world, x1 + 3, y1, z1 + 1)).setType(Material.POLISHED_GRANITE);
- }
- }, 5 * 20);
- }if(world.getBlockAt(new Location(world, x1, y1 + 1, z1 - 3)).getType() == Material.AIR) {
- world.getBlockAt(new Location(world, x1, y1 + 1, z1 - 3)).setType(Material.GRANITE);
- Bukkit.getScheduler().runTaskLater(plugin, new Runnable() {
- @Override
- public void run() {
- world.getBlockAt(new Location(world, x1 + 3, y1, z1 + 1)).setType(Material.POLISHED_GRANITE);
- }
- }, 5 * 20);
- }if(world.getBlockAt(new Location(world, x1 - 1, y1 + 1, z1 - 3)).getType() == Material.AIR) {
- world.getBlockAt(new Location(world, x1 - 1, y1 + 1, z1 - 3)).setType(Material.WHITE_STAINED_GLASS );
- Bukkit.getScheduler().runTaskLater(plugin, new Runnable() {
- @Override
- public void run() {
- world.getBlockAt(new Location(world, x1 + 3, y1, z1 + 1)).setType(Material.POLISHED_GRANITE);
- }
- }, 5 * 20);
- }if(world.getBlockAt(new Location(world, x1 - 2, y1 + 1, z1 - 2)).getType() == Material.AIR) {
- world.getBlockAt(new Location(world, x1 - 2, y1 + 1, z1 - 2)).setType(Material.COARSE_DIRT);
- Bukkit.getScheduler().runTaskLater(plugin, new Runnable() {
- @Override
- public void run() {
- world.getBlockAt(new Location(world, x1 + 3, y1, z1 + 1)).setType(Material.POLISHED_GRANITE);
- }
- }, 5 * 20);
- }if(world.getBlockAt(new Location(world, x1 - 3, y1 + 1, z1 - 1)).getType() == Material.AIR) {
- world.getBlockAt(new Location(world, x1 - 3, y1 + 1, z1 - 1)).setType(Material.POLISHED_GRANITE);
- Bukkit.getScheduler().runTaskLater(plugin, new Runnable() {
- @Override
- public void run() {
- world.getBlockAt(new Location(world, x1 + 3, y1, z1 + 1)).setType(Material.POLISHED_GRANITE);
- }
- }, 5 * 20);
- }if(world.getBlockAt(new Location(world, x1 - 3, y1 + 1, z1)).getType() == Material.AIR) {
- world.getBlockAt(new Location(world, x1 - 3, y1 + 1, z1)).setType(Material.GRANITE);
- Bukkit.getScheduler().runTaskLater(plugin, new Runnable() {
- @Override
- public void run() {
- world.getBlockAt(new Location(world, x1 + 3, y1, z1 + 1)).setType(Material.POLISHED_GRANITE);
- }
- }, 5 * 20);
- }if(world.getBlockAt(new Location(world, x1 - 3, y1 + 1, z1 + 1)).getType() == Material.AIR) {
- world.getBlockAt(new Location(world, x1 - 3, y1 + 1, z1 + 1)).setType(Material.COARSE_DIRT);
- Bukkit.getScheduler().runTaskLater(plugin, new Runnable() {
- @Override
- public void run() {
- world.getBlockAt(new Location(world, x1 + 3, y1, z1 + 1)).setType(Material.POLISHED_GRANITE);
- }
- }, 5 * 20);
- }if(world.getBlockAt(new Location(world, x1 - 2, y1 + 1, z1 + 2)).getType() == Material.AIR) {
- world.getBlockAt(new Location(world, x1 - 2, y1 + 1, z1 + 2)).setType(Material.POLISHED_GRANITE);
- Bukkit.getScheduler().runTaskLater(plugin, new Runnable() {
- @Override
- public void run() {
- world.getBlockAt(new Location(world, x1 + 3, y1, z1 + 1)).setType(Material.POLISHED_GRANITE);
- }
- }, 5 * 20);
- }if(world.getBlockAt(new Location(world, x1 - 1, y1 + 1, z1 + 3)).getType() == Material.AIR) {
- world.getBlockAt(new Location(world, x1 - 1, y1 + 1, z1 + 3)).setType(Material.GRANITE);
- Bukkit.getScheduler().runTaskLater(plugin, new Runnable() {
- @Override
- public void run() {
- world.getBlockAt(new Location(world, x1 + 3, y1, z1 + 1)).setType(Material.POLISHED_GRANITE);
- }
- }, 5 * 20);
- }if(world.getBlockAt(new Location(world, x1, y1 + 1, z1 + 3)).getType() == Material.AIR) {
- world.getBlockAt(new Location(world, x1, y1 + 1, z1 + 3)).setType(Material.POLISHED_GRANITE);
- Bukkit.getScheduler().runTaskLater(plugin, new Runnable() {
- @Override
- public void run() {
- world.getBlockAt(new Location(world, x1 + 3, y1, z1 + 1)).setType(Material.POLISHED_GRANITE);
- }
- }, 5 * 20);
- }if(world.getBlockAt(new Location(world, x1 + 1, y1 + 1, z1 + 3)).getType() == Material.AIR) {
- world.getBlockAt(new Location(world, x1 + 1, y1 + 1, z1 + 3)).setType(Material.WHITE_STAINED_GLASS );
- Bukkit.getScheduler().runTaskLater(plugin, new Runnable() {
- @Override
- public void run() {
- world.getBlockAt(new Location(world, x1 + 3, y1, z1 + 1)).setType(Material.POLISHED_GRANITE);
- }
- }, 5 * 20);
- //
- }if(world.getBlockAt(new Location(world, x1 - 1, y1 + 2, z1 + 2)).getType() == Material.AIR) {
- world.getBlockAt(new Location(world, x1 - 1, y1 + 2, z1 + 2)).setType(Material.WHITE_STAINED_GLASS );
- Bukkit.getScheduler().runTaskLater(plugin, new Runnable() {
- @Override
- public void run() {
- world.getBlockAt(new Location(world, x1 + 3, y1, z1 + 1)).setType(Material.POLISHED_GRANITE);
- }
- }, 5 * 20);
- }if(world.getBlockAt(new Location(world, x1, y1 + 2, z1 + 2)).getType() == Material.AIR) {
- world.getBlockAt(new Location(world, x1, y1 + 2, z1 + 2)).setType(Material.GRANITE);
- Bukkit.getScheduler().runTaskLater(plugin, new Runnable() {
- @Override
- public void run() {
- world.getBlockAt(new Location(world, x1 + 3, y1, z1 + 1)).setType(Material.POLISHED_GRANITE);
- }
- }, 5 * 20);
- }if(world.getBlockAt(new Location(world, x1 + 1, y1 + 2, z1 + 2)).getType() == Material.AIR) {
- world.getBlockAt(new Location(world, x1 + 1, y1 + 2, z1 + 2)).setType(Material.POLISHED_GRANITE);
- Bukkit.getScheduler().runTaskLater(plugin, new Runnable() {
- @Override
- public void run() {
- world.getBlockAt(new Location(world, x1 + 3, y1, z1 + 1)).setType(Material.POLISHED_GRANITE);
- }
- }, 5 * 20);
- }if(world.getBlockAt(new Location(world, x1 - 2, y1 + 2, z1 + 1)).getType() == Material.AIR) {
- world.getBlockAt(new Location(world, x1 - 2, y1 + 2, z1 + 1)).setType(Material.COARSE_DIRT);
- Bukkit.getScheduler().runTaskLater(plugin, new Runnable() {
- @Override
- public void run() {
- world.getBlockAt(new Location(world, x1 + 3, y1, z1 + 1)).setType(Material.POLISHED_GRANITE);
- }
- }, 5 * 20);
- }if(world.getBlockAt(new Location(world, x1 - 2, y1 + 2, z1)).getType() == Material.AIR) {
- world.getBlockAt(new Location(world, x1 - 2, y1 + 2, z1)).setType(Material.POLISHED_GRANITE);
- Bukkit.getScheduler().runTaskLater(plugin, new Runnable() {
- @Override
- public void run() {
- world.getBlockAt(new Location(world, x1 + 3, y1, z1 + 1)).setType(Material.POLISHED_GRANITE);
- }
- }, 5 * 20);
- }if(world.getBlockAt(new Location(world, x1 - 2, y1 + 2, z1 - 1)).getType() == Material.AIR) {
- world.getBlockAt(new Location(world, x1 - 2, y1 + 2, z1 - 1)).setType(Material.WHITE_STAINED_GLASS );
- Bukkit.getScheduler().runTaskLater(plugin, new Runnable() {
- @Override
- public void run() {
- world.getBlockAt(new Location(world, x1 + 3, y1, z1 + 1)).setType(Material.POLISHED_GRANITE);
- }
- }, 5 * 20);
- }if(world.getBlockAt(new Location(world, x1 - 1, y1 + 2, z1 - 2)).getType() == Material.AIR) {
- world.getBlockAt(new Location(world, x1 - 1, y1 + 2, z1 - 2)).setType(Material.POLISHED_GRANITE);
- Bukkit.getScheduler().runTaskLater(plugin, new Runnable() {
- @Override
- public void run() {
- world.getBlockAt(new Location(world, x1 + 3, y1, z1 + 1)).setType(Material.POLISHED_GRANITE);
- }
- }, 5 * 20);
- }if(world.getBlockAt(new Location(world, x1, y1 + 2, z1 - 2)).getType() == Material.AIR) {
- world.getBlockAt(new Location(world, x1, y1 + 2, z1 - 2)).setType(Material.COARSE_DIRT);
- Bukkit.getScheduler().runTaskLater(plugin, new Runnable() {
- @Override
- public void run() {
- world.getBlockAt(new Location(world, x1 + 3, y1, z1 + 1)).setType(Material.POLISHED_GRANITE);
- }
- }, 5 * 20);
- }if(world.getBlockAt(new Location(world, x1 + 1, y1 + 2, z1 - 2)).getType() == Material.AIR) {
- world.getBlockAt(new Location(world, x1 + 1, y1 + 2, z1 - 2)).setType(Material.POLISHED_GRANITE);
- Bukkit.getScheduler().runTaskLater(plugin, new Runnable() {
- @Override
- public void run() {
- world.getBlockAt(new Location(world, x1 + 3, y1, z1 + 1)).setType(Material.POLISHED_GRANITE);
- }
- }, 5 * 20);
- }if(world.getBlockAt(new Location(world, x1 + 2, y1 + 2, z1 - 1)).getType() == Material.AIR) {
- world.getBlockAt(new Location(world, x1 + 2, y1 + 2, z1 - 1)).setType(Material.GRANITE);
- Bukkit.getScheduler().runTaskLater(plugin, new Runnable() {
- @Override
- public void run() {
- world.getBlockAt(new Location(world, x1 + 3, y1, z1 + 1)).setType(Material.POLISHED_GRANITE);
- }
- }, 5 * 20);
- }if(world.getBlockAt(new Location(world, x1 + 2, y1 + 2, z1)).getType() == Material.AIR) {
- world.getBlockAt(new Location(world, x1 + 2, y1 + 2, z1)).setType(Material.POLISHED_GRANITE);
- Bukkit.getScheduler().runTaskLater(plugin, new Runnable() {
- @Override
- public void run() {
- world.getBlockAt(new Location(world, x1 + 3, y1, z1 + 1)).setType(Material.POLISHED_GRANITE);
- }
- }, 5 * 20);
- }if(world.getBlockAt(new Location(world, x1 + 2, y1 + 2, z1 + 1)).getType() == Material.AIR) {
- world.getBlockAt(new Location(world, x1 + 2, y1 + 2, z1 + 1)).setType(Material.GRANITE);
- Bukkit.getScheduler().runTaskLater(plugin, new Runnable() {
- @Override
- public void run() {
- world.getBlockAt(new Location(world, x1 + 3, y1, z1 + 1)).setType(Material.POLISHED_GRANITE);
- }
- }, 5 * 20);
- }if(world.getBlockAt(new Location(world, x1 + 2, y1 + 2, z1 + 4)).getType() == Material.AIR) {
- world.getBlockAt(new Location(world, x1 + 2, y1 + 2, z1 + 4)).setType(Material.WHITE_STAINED_GLASS );
- Bukkit.getScheduler().runTaskLater(plugin, new Runnable() {
- @Override
- public void run() {
- world.getBlockAt(new Location(world, x1 + 3, y1, z1 + 1)).setType(Material.POLISHED_GRANITE);
- }
- }, 5 * 20);
- }if(world.getBlockAt(new Location(world, x1 + 4, y1 + 2, z1 + 2)).getType() == Material.AIR) {
- world.getBlockAt(new Location(world, x1 + 4, y1 + 2, z1 + 2)).setType(Material.WHITE_STAINED_GLASS );
- Bukkit.getScheduler().runTaskLater(plugin, new Runnable() {
- @Override
- public void run() {
- world.getBlockAt(new Location(world, x1 + 3, y1, z1 + 1)).setType(Material.POLISHED_GRANITE);
- }
- }, 5 * 20);
- }if(world.getBlockAt(new Location(world, x1 - 2, y1 + 2, z1 - 4)).getType() == Material.AIR) {
- world.getBlockAt(new Location(world, x1 - 2, y1 + 2, z1 - 4)).setType(Material.WHITE_STAINED_GLASS );
- Bukkit.getScheduler().runTaskLater(plugin, new Runnable() {
- @Override
- public void run() {
- world.getBlockAt(new Location(world, x1 + 3, y1, z1 + 1)).setType(Material.POLISHED_GRANITE);
- }
- }, 5 * 20);
- //
- }if(world.getBlockAt(new Location(world, x1 + 1, y1 + 3, z1 + 1)).getType() == Material.AIR) {
- world.getBlockAt(new Location(world, x1 + 1, y1 + 3, z1 + 1)).setType(Material.COARSE_DIRT);
- Bukkit.getScheduler().runTaskLater(plugin, new Runnable() {
- @Override
- public void run() {
- world.getBlockAt(new Location(world, x1 + 3, y1, z1 + 1)).setType(Material.POLISHED_GRANITE);
- }
- }, 5 * 20);
- }if(world.getBlockAt(new Location(world, x1 - 1, y1 + 3, z1 + 1)).getType() == Material.AIR) {
- world.getBlockAt(new Location(world, x1 - 1, y1 + 3, z1 + 1)).setType(Material.POLISHED_GRANITE);
- Bukkit.getScheduler().runTaskLater(plugin, new Runnable() {
- @Override
- public void run() {
- world.getBlockAt(new Location(world, x1 + 3, y1, z1 + 1)).setType(Material.POLISHED_GRANITE);
- }
- }, 5 * 20);
- }if(world.getBlockAt(new Location(world, x1 - 1, y1 + 3, z1 - 1)).getType() == Material.AIR) {
- world.getBlockAt(new Location(world, x1 - 1, y1 + 3, z1 - 1)).setType(Material.POLISHED_GRANITE);
- Bukkit.getScheduler().runTaskLater(plugin, new Runnable() {
- @Override
- public void run() {
- world.getBlockAt(new Location(world, x1 + 3, y1, z1 + 1)).setType(Material.POLISHED_GRANITE);
- }
- }, 5 * 20);
- }if(world.getBlockAt(new Location(world, x1 + 1, y1 + 3, z1 - 1)).getType() == Material.AIR) {
- world.getBlockAt(new Location(world, x1 + 1, y1 + 3, z1 - 1)).setType(Material.WHITE_STAINED_GLASS );
- Bukkit.getScheduler().runTaskLater(plugin, new Runnable() {
- @Override
- public void run() {
- world.getBlockAt(new Location(world, x1 + 3, y1, z1 + 1)).setType(Material.POLISHED_GRANITE);
- }
- }, 5 * 20);
- }if(world.getBlockAt(new Location(world, x1 - 3, y1 + 3, z1 - 2)).getType() == Material.AIR) {
- world.getBlockAt(new Location(world, x1 - 3, y1 + 3, z1 - 2)).setType(Material.WHITE_STAINED_GLASS );
- Bukkit.getScheduler().runTaskLater(plugin, new Runnable() {
- @Override
- public void run() {
- world.getBlockAt(new Location(world, x1 + 3, y1, z1 + 1)).setType(Material.POLISHED_GRANITE);
- }
- }, 5 * 20);
- }if(world.getBlockAt(new Location(world, x1 + 1, y1 + 3, z1 + 3)).getType() == Material.AIR) {
- world.getBlockAt(new Location(world, x1 - 2, y1 + 3, z1 + 3)).setType(Material.WHITE_STAINED_GLASS );
- Bukkit.getScheduler().runTaskLater(plugin, new Runnable() {
- @Override
- public void run() {
- world.getBlockAt(new Location(world, x1 + 3, y1, z1 + 1)).setType(Material.POLISHED_GRANITE);
- }
- }, 5 * 20);
- }if(world.getBlockAt(new Location(world, x1, y1 + 3, z1 - 1)).getType() == Material.AIR) {
- world.getBlockAt(new Location(world, x1, y1 + 3, z1 - 1)).setType(Material.GRANITE);
- Bukkit.getScheduler().runTaskLater(plugin, new Runnable() {
- @Override
- public void run() {
- world.getBlockAt(new Location(world, x1 + 3, y1, z1 + 1)).setType(Material.POLISHED_GRANITE);
- }
- }, 5 * 20);
- }if(world.getBlockAt(new Location(world, x1 - 1, y1 + 3, z1)).getType() == Material.AIR) {
- world.getBlockAt(new Location(world, x1 - 1, y1 + 3, z1)).setType(Material.COARSE_DIRT);
- Bukkit.getScheduler().runTaskLater(plugin, new Runnable() {
- @Override
- public void run() {
- world.getBlockAt(new Location(world, x1 + 3, y1, z1 + 1)).setType(Material.POLISHED_GRANITE);
- }
- }, 5 * 20);
- }if(world.getBlockAt(new Location(world, x1, y1 + 3, z1 + 1)).getType() == Material.AIR) {
- world.getBlockAt(new Location(world, x1, y1 + 3, z1 + 1)).setType(Material.WHITE_STAINED_GLASS );
- Bukkit.getScheduler().runTaskLater(plugin, new Runnable() {
- @Override
- public void run() {
- world.getBlockAt(new Location(world, x1 + 3, y1, z1 + 1)).setType(Material.POLISHED_GRANITE);
- }
- }, 5 * 20);
- }if(world.getBlockAt(new Location(world, x1 + 1, y1 + 3, z1)).getType() == Material.AIR) {
- world.getBlockAt(new Location(world, x1 + 1, y1 + 3, z1)).setType(Material.POLISHED_GRANITE);
- Bukkit.getScheduler().runTaskLater(plugin, new Runnable() {
- @Override
- public void run() {
- world.getBlockAt(new Location(world, x1 + 3, y1, z1 + 1)).setType(Material.POLISHED_GRANITE);
- }
- }, 5 * 20);
- }if(world.getBlockAt(new Location(world, x1, y1 + 3, z1)).getType() == Material.AIR) {
- world.getBlockAt(new Location(world, x1, y1 + 3, z1)).setType(Material.WHITE_STAINED_GLASS );
- Bukkit.getScheduler().runTaskLater(plugin, new Runnable() {
- @Override
- public void run() {
- world.getBlockAt(new Location(world, x1 + 3, y1, z1 + 1)).setType(Material.POLISHED_GRANITE);
- }
- }, 5 * 20);
- //
- }if(world.getBlockAt(new Location(world, x1, y1 + 4, z1)).getType() == Material.AIR) {
- world.getBlockAt(new Location(world, x1, y1 + 4, z1)).setType(Material.WHITE_STAINED_GLASS );
- Bukkit.getScheduler().runTaskLater(plugin, new Runnable() {
- @Override
- public void run() {
- world.getBlockAt(new Location(world, x1 + 3, y1, z1 + 1)).setType(Material.POLISHED_GRANITE);
- }
- }, 5 * 20);
- }if(world.getBlockAt(new Location(world, x1, y1 + 4, z1 + 2)).getType() == Material.AIR) {
- world.getBlockAt(new Location(world, x1, y1 + 4, z1 + 2)).setType(Material.WHITE_STAINED_GLASS );
- Bukkit.getScheduler().runTaskLater(plugin, new Runnable() {
- @Override
- public void run() {
- world.getBlockAt(new Location(world, x1 + 3, y1, z1 + 1)).setType(Material.POLISHED_GRANITE);
- }
- }, 5 * 20);
- }if(world.getBlockAt(new Location(world, x1 + 2, y1 + 4, z1 - 2)).getType() == Material.AIR) {
- world.getBlockAt(new Location(world, x1 + 2, y1 + 4, z1 - 2)).setType(Material.WHITE_STAINED_GLASS );
- Bukkit.getScheduler().runTaskLater(plugin, new Runnable() {
- @Override
- public void run() {
- world.getBlockAt(new Location(world, x1 + 3, y1, z1 + 1)).setType(Material.POLISHED_GRANITE);
- }
- }, 5 * 20);
- }
- }
- }
- }
- //#==================================================================================================================================================================#
- //GEODE CRYSTALINE #
- //#==================================================================================================================================================================#
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement