|
|
@ -7127,22 +7127,24 @@ public ItemStack getGoodie() { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
e.setDamage(0); |
|
|
|
e.setDamage(0); |
|
|
|
for (int k=-1;k<2;k++) { |
|
|
|
if (!enemy.isDead()) { |
|
|
|
for (int j=-1;j<2;j++) { |
|
|
|
for (int k=-1;k<2;k++) { |
|
|
|
Location checkloc = enemy.getLocation().add(k,1,j); |
|
|
|
for (int j=-1;j<2;j++) { |
|
|
|
Block bl = Bukkit.getWorld("world").getBlockAt(checkloc); |
|
|
|
Location checkloc = enemy.getLocation().add(k,1,j); |
|
|
|
if (bl.getType()!=Material.BEDROCK && bl.getType()!=Material.ENDER_PORTAL_FRAME && bl.getType()!=Material.ENDER_PORTAL && bl.getType()!=Material.MOB_SPAWNER) { |
|
|
|
Block bl = Bukkit.getWorld("world").getBlockAt(checkloc); |
|
|
|
bl.breakNaturally(); |
|
|
|
if (bl.getType()!=Material.BEDROCK && bl.getType()!=Material.ENDER_PORTAL_FRAME && bl.getType()!=Material.ENDER_PORTAL && bl.getType()!=Material.MOB_SPAWNER) { |
|
|
|
} |
|
|
|
bl.breakNaturally(); |
|
|
|
bl = Bukkit.getWorld("world").getBlockAt(checkloc); |
|
|
|
} |
|
|
|
checkloc = enemy.getLocation().add(k,2,j); |
|
|
|
bl = Bukkit.getWorld("world").getBlockAt(checkloc); |
|
|
|
if (bl.getType()!=Material.BEDROCK && bl.getType()!=Material.ENDER_PORTAL_FRAME && bl.getType()!=Material.ENDER_PORTAL && bl.getType()!=Material.MOB_SPAWNER) { |
|
|
|
checkloc = enemy.getLocation().add(k,2,j); |
|
|
|
bl.breakNaturally(); |
|
|
|
if (bl.getType()!=Material.BEDROCK && bl.getType()!=Material.ENDER_PORTAL_FRAME && bl.getType()!=Material.ENDER_PORTAL && bl.getType()!=Material.MOB_SPAWNER) { |
|
|
|
} |
|
|
|
bl.breakNaturally(); |
|
|
|
bl = Bukkit.getWorld("world").getBlockAt(checkloc); |
|
|
|
} |
|
|
|
checkloc = enemy.getLocation().add(k,0,j); |
|
|
|
bl = Bukkit.getWorld("world").getBlockAt(checkloc); |
|
|
|
if (bl.getType()!=Material.BEDROCK && bl.getType()!=Material.ENDER_PORTAL_FRAME && bl.getType()!=Material.ENDER_PORTAL && bl.getType()!=Material.MOB_SPAWNER) { |
|
|
|
checkloc = enemy.getLocation().add(k,0,j); |
|
|
|
bl.breakNaturally(); |
|
|
|
if (bl.getType()!=Material.BEDROCK && bl.getType()!=Material.ENDER_PORTAL_FRAME && bl.getType()!=Material.ENDER_PORTAL && bl.getType()!=Material.MOB_SPAWNER) { |
|
|
|
|
|
|
|
bl.breakNaturally(); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -7226,22 +7228,24 @@ public ItemStack getGoodie() { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
for (int k=-2;k<3;k++) { |
|
|
|
if (!enemy.isDead()) { |
|
|
|
for (int j=-2;j<3;j++) { |
|
|
|
for (int k=-2;k<3;k++) { |
|
|
|
Location checkloc = enemy.getLocation().add(k,1,j); |
|
|
|
for (int j=-2;j<3;j++) { |
|
|
|
Block bl = Bukkit.getWorld("world").getBlockAt(checkloc); |
|
|
|
Location checkloc = enemy.getLocation().add(k,1,j); |
|
|
|
if (bl.getType()!=Material.BEDROCK && bl.getType()!=Material.ENDER_PORTAL_FRAME && bl.getType()!=Material.ENDER_PORTAL && bl.getType()!=Material.MOB_SPAWNER) { |
|
|
|
Block bl = Bukkit.getWorld("world").getBlockAt(checkloc); |
|
|
|
bl.breakNaturally(); |
|
|
|
if (bl.getType()!=Material.BEDROCK && bl.getType()!=Material.ENDER_PORTAL_FRAME && bl.getType()!=Material.ENDER_PORTAL && bl.getType()!=Material.MOB_SPAWNER) { |
|
|
|
} |
|
|
|
bl.breakNaturally(); |
|
|
|
bl = Bukkit.getWorld("world").getBlockAt(checkloc); |
|
|
|
} |
|
|
|
checkloc = enemy.getLocation().add(k,2,j); |
|
|
|
bl = Bukkit.getWorld("world").getBlockAt(checkloc); |
|
|
|
if (bl.getType()!=Material.BEDROCK && bl.getType()!=Material.ENDER_PORTAL_FRAME && bl.getType()!=Material.ENDER_PORTAL && bl.getType()!=Material.MOB_SPAWNER) { |
|
|
|
checkloc = enemy.getLocation().add(k,2,j); |
|
|
|
bl.breakNaturally(); |
|
|
|
if (bl.getType()!=Material.BEDROCK && bl.getType()!=Material.ENDER_PORTAL_FRAME && bl.getType()!=Material.ENDER_PORTAL && bl.getType()!=Material.MOB_SPAWNER) { |
|
|
|
} |
|
|
|
bl.breakNaturally(); |
|
|
|
bl = Bukkit.getWorld("world").getBlockAt(checkloc); |
|
|
|
} |
|
|
|
checkloc = enemy.getLocation().add(k,0,j); |
|
|
|
bl = Bukkit.getWorld("world").getBlockAt(checkloc); |
|
|
|
if (bl.getType()!=Material.BEDROCK && bl.getType()!=Material.ENDER_PORTAL_FRAME && bl.getType()!=Material.ENDER_PORTAL && bl.getType()!=Material.MOB_SPAWNER) { |
|
|
|
checkloc = enemy.getLocation().add(k,0,j); |
|
|
|
bl.breakNaturally(); |
|
|
|
if (bl.getType()!=Material.BEDROCK && bl.getType()!=Material.ENDER_PORTAL_FRAME && bl.getType()!=Material.ENDER_PORTAL && bl.getType()!=Material.MOB_SPAWNER) { |
|
|
|
|
|
|
|
bl.breakNaturally(); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|