Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

[1.7.10][SOLVED] Multiplayer Problems


Pythonschlange
 Share

Recommended Posts

So, I have a Custom Rendered armor that if worn Creates a 8x8x8 sphere made of air (andkills all entitys in an 8x8x8 area) around the player every tick the full armor is worn. It works fine if i am in singleplayer but if I'm at a server, as soon as a player is near me the sphere effect only works once and then stops (like it stopped ticking).

 

My Armor Class:

 

public class Dragon_Armor extends ItemArmor{

public Dragon_Armor(ArmorMaterial armorMaterial, int id, int position) {
	super(armorMaterial, id, position);
	this.setCreativeTab(Main.tabStuffForMC);

	if (position == 0){//helmet
	setTextureName(base.Main.modid + ":" + "test_helmet");
	}else if (position== 1){//Chest
		setTextureName(base.Main.modid + ":" + "test_chestplate");
	}else if(position==2){//Leggings
		setTextureName(base.Main.modid + ":" + "test_leggings");
	}else if(position==3){//Boots
		setTextureName(base.Main.modid + ":" + "test_boots");
	}

}

ModelBiped armorModel;

@Override public String getArmorTexture(ItemStack stack, Entity entity, int slot, String type) { 
	if (stack.getItem().equals(base.Main.DragonChest) || stack.getItem().equals( base.Main.DragonHelmet) || stack.getItem().equals( base.Main.DragonBoots)) { 
		return (base.Main.modid + ":" + "textures/models/testtext2.png"); 
	} 
	if (stack.getItem().equals( base.Main.DragonLegs)) { 
		return (base.Main.modid + ":" + "textures/models/testtext2.png"); } 
	return null; 
	}


@Override 
@SideOnly(Side.CLIENT) 
public ModelBiped getArmorModel(EntityLivingBase entityLiving, ItemStack itemStack, int armorSlot) { 

	ModelBiped armorModel = new ModelBiped();
	if(itemStack != null){ 
		if(itemStack.getItem() instanceof Dragon_Armor){ 
			int type = ((ItemArmor)itemStack.getItem()).armorType; 
			if(type == 1 || type == 3){ 
				armorModel = base.Main.proxy.getArmorModel(2); 
			}else{ 
				armorModel = base.Main.proxy.getArmorModel(3); 
			}
		}
	}
	if(armorModel != null){ 
		armorModel.bipedHead.showModel = armorSlot == 0; 
		armorModel.bipedHeadwear.showModel = armorSlot == 0; 
		armorModel.bipedBody.showModel = armorSlot == 1 || armorSlot == 2; 
		armorModel.bipedRightArm.showModel = armorSlot == 1; 
		armorModel.bipedLeftArm.showModel = armorSlot == 1; 
		armorModel.bipedRightLeg.showModel = armorSlot == 2 || armorSlot == 3; 
		armorModel.bipedLeftLeg.showModel = armorSlot == 2 || armorSlot == 3; 
		armorModel.isSneak = entityLiving.isSneaking(); armorModel.isRiding = entityLiving.isRiding(); 
		armorModel.isChild = entityLiving.isChild();
		armorModel.heldItemRight = entityLiving.getEquipmentInSlot(0) != null ? 1 :0;
		if(entityLiving instanceof EntityPlayer){ 
			armorModel.aimedBow =((EntityPlayer)entityLiving).getItemInUseDuration() > 2; 
		}
	return armorModel;
	}
	return null;
}
@Override
public void onArmorTick(World world, EntityPlayer player, ItemStack itemStack) {
	if(base.Events.destruct == true){
	this.sphere(world, player);

	double x=player.posX; 
	double y=player.posY; 
	double z=player.posZ; 

	AxisAlignedBB axisalignedbb = AxisAlignedBB.getBoundingBox(x-1, y-1, z-1, x+1, y+1, z+1);
    List<EntityLivingBase> list = player.worldObj.getEntitiesWithinAABB(Entity.class, AxisAlignedBB.getBoundingBox(x-4, y-4, z-4, x+4, y+4, z+4));
    for (int i = 0; i <= list.size() - 1; i++) {
    	Entity entity = (Entity) list.get(i);
    	if(entity == player){}else{
    	double xE = entity.posX;
 		double yE = entity.posY;
 		double zE = entity.posZ;
 		float hp = 0;
 		if(entity instanceof EntityFallingBlock){
 			entity.playSound("mob.endermen.portal", 1F, 1F);
 			entity.setDead();
 		}
 		if(entity instanceof EntityLivingBase){
 			hp = ((EntityLivingBase) entity).getHealth();
 		}else{
 			entity.playSound("mob.endermen.portal", 1F, 1F);
 			entity.setPosition(xE, -100, zE);
 		}
 		if(hp <150){
	 			entity.playSound("mob.endermen.portal", 1F, 1F);
	 			entity.setPosition(xE, -100, zE);
			}else{
				entity.playSound("mob.endermen.portal", 1F, 1F);
				entity.setPosition(xE, -100, zE);
				entity.setDead();
	 		}
    		System.out.println(entity);
    	}}}


	super.onArmorTick(world, player, itemStack);
}

public static void sphere(World world, EntityPlayer player){
	//cords. (x, y, z) are in the head

			float var4 = 1.0F;
			int x = (int)(player.prevPosX + (player.posX - player.prevPosX) * (double)var4);
			int y = (int)(player.prevPosY + (player.posY - player.prevPosY) * (double)var4 + 1.62D - (double)player.yOffset);
			int z = (int)(player.prevPosZ + (player.posZ - player.prevPosZ) * (double)var4);

			int i = x-5;
			int j = y-5;
			int k = z-5;
	Block[] exeption = new Block[2];
		exeption[0] = Blocks.bedrock;
		exeption[1] = Blocks.air;
	//Block replaceWith = Blocks.air;
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+4, j+0, k+2), exeption)){world.setBlockToAir(i+4, j+0, k+2);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+3, j+0, k+3), exeption)){world.setBlockToAir(i+3, j+0, k+3);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+4, j+0, k+3), exeption)){world.setBlockToAir(i+4, j+0, k+3);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+5, j+0, k+3), exeption)){world.setBlockToAir(i+5, j+0, k+3);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+2, j+0, k+4), exeption)){world.setBlockToAir(i+2, j+0, k+4);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+3, j+0, k+4), exeption)){world.setBlockToAir(i+3, j+0, k+4);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+4, j+0, k+4), exeption)){world.setBlockToAir(i+4, j+0, k+4);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+5, j+0, k+4), exeption)){world.setBlockToAir(i+5, j+0, k+4);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+6, j+0, k+4), exeption)){world.setBlockToAir(i+6, j+0, k+4);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+3, j+0, k+5), exeption)){world.setBlockToAir(i+3, j+0, k+5);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+4, j+0, k+5), exeption)){world.setBlockToAir(i+4, j+0, k+5);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+5, j+0, k+5), exeption)){world.setBlockToAir(i+5, j+0, k+5);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+4, j+0, k+6), exeption)){world.setBlockToAir(i+4, j+0, k+6);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+3, j+1, k+1), exeption)){world.setBlockToAir(i+3, j+1, k+1);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+4, j+1, k+1), exeption)){world.setBlockToAir(i+4, j+1, k+1);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+5, j+1, k+1), exeption)){world.setBlockToAir(i+5, j+1, k+1);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+2, j+1, k+2), exeption)){world.setBlockToAir(i+2, j+1, k+2);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+3, j+1, k+2), exeption)){world.setBlockToAir(i+3, j+1, k+2);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+4, j+1, k+2), exeption)){world.setBlockToAir(i+4, j+1, k+2);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+5, j+1, k+2), exeption)){world.setBlockToAir(i+5, j+1, k+2);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+6, j+1, k+2), exeption)){world.setBlockToAir(i+6, j+1, k+2);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+1, j+1, k+3), exeption)){world.setBlockToAir(i+1, j+1, k+3);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+2, j+1, k+3), exeption)){world.setBlockToAir(i+2, j+1, k+3);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+3, j+1, k+3), exeption)){world.setBlockToAir(i+3, j+1, k+3);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+4, j+1, k+3), exeption)){world.setBlockToAir(i+4, j+1, k+3);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+5, j+1, k+3), exeption)){world.setBlockToAir(i+5, j+1, k+3);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+6, j+1, k+3), exeption)){world.setBlockToAir(i+6, j+1, k+3);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+7, j+1, k+3), exeption)){world.setBlockToAir(i+7, j+1, k+3);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+1, j+1, k+4), exeption)){world.setBlockToAir(i+1, j+1, k+4);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+2, j+1, k+4), exeption)){world.setBlockToAir(i+2, j+1, k+4);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+3, j+1, k+4), exeption)){world.setBlockToAir(i+3, j+1, k+4);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+4, j+1, k+4), exeption)){world.setBlockToAir(i+4, j+1, k+4);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+5, j+1, k+4), exeption)){world.setBlockToAir(i+5, j+1, k+4);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+6, j+1, k+4), exeption)){world.setBlockToAir(i+6, j+1, k+4);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+7, j+1, k+4), exeption)){world.setBlockToAir(i+7, j+1, k+4);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+1, j+1, k+5), exeption)){world.setBlockToAir(i+1, j+1, k+5);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+2, j+1, k+5), exeption)){world.setBlockToAir(i+2, j+1, k+5);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+3, j+1, k+5), exeption)){world.setBlockToAir(i+3, j+1, k+5);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+4, j+1, k+5), exeption)){world.setBlockToAir(i+4, j+1, k+5);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+5, j+1, k+5), exeption)){world.setBlockToAir(i+5, j+1, k+5);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+6, j+1, k+5), exeption)){world.setBlockToAir(i+6, j+1, k+5);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+7, j+1, k+5), exeption)){world.setBlockToAir(i+7, j+1, k+5);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+2, j+1, k+6), exeption)){world.setBlockToAir(i+2, j+1, k+6);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+3, j+1, k+6), exeption)){world.setBlockToAir(i+3, j+1, k+6);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+4, j+1, k+6), exeption)){world.setBlockToAir(i+4, j+1, k+6);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+5, j+1, k+6), exeption)){world.setBlockToAir(i+5, j+1, k+6);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+6, j+1, k+6), exeption)){world.setBlockToAir(i+6, j+1, k+6);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+3, j+1, k+7), exeption)){world.setBlockToAir(i+3, j+1, k+7);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+4, j+1, k+7), exeption)){world.setBlockToAir(i+4, j+1, k+7);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+5, j+1, k+7), exeption)){world.setBlockToAir(i+5, j+1, k+7);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+4, j+2, k+0), exeption)){world.setBlockToAir(i+4, j+2, k+0);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+2, j+2, k+1), exeption)){world.setBlockToAir(i+2, j+2, k+1);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+3, j+2, k+1), exeption)){world.setBlockToAir(i+3, j+2, k+1);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+4, j+2, k+1), exeption)){world.setBlockToAir(i+4, j+2, k+1);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+5, j+2, k+1), exeption)){world.setBlockToAir(i+5, j+2, k+1);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+6, j+2, k+1), exeption)){world.setBlockToAir(i+6, j+2, k+1);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+1, j+2, k+2), exeption)){world.setBlockToAir(i+1, j+2, k+2);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+2, j+2, k+2), exeption)){world.setBlockToAir(i+2, j+2, k+2);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+3, j+2, k+2), exeption)){world.setBlockToAir(i+3, j+2, k+2);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+4, j+2, k+2), exeption)){world.setBlockToAir(i+4, j+2, k+2);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+5, j+2, k+2), exeption)){world.setBlockToAir(i+5, j+2, k+2);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+6, j+2, k+2), exeption)){world.setBlockToAir(i+6, j+2, k+2);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+7, j+2, k+2), exeption)){world.setBlockToAir(i+7, j+2, k+2);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+1, j+2, k+3), exeption)){world.setBlockToAir(i+1, j+2, k+3);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+2, j+2, k+3), exeption)){world.setBlockToAir(i+2, j+2, k+3);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+3, j+2, k+3), exeption)){world.setBlockToAir(i+3, j+2, k+3);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+4, j+2, k+3), exeption)){world.setBlockToAir(i+4, j+2, k+3);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+5, j+2, k+3), exeption)){world.setBlockToAir(i+5, j+2, k+3);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+6, j+2, k+3), exeption)){world.setBlockToAir(i+6, j+2, k+3);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+7, j+2, k+3), exeption)){world.setBlockToAir(i+7, j+2, k+3);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+0, j+2, k+4), exeption)){world.setBlockToAir(i+0, j+2, k+4);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+1, j+2, k+4), exeption)){world.setBlockToAir(i+1, j+2, k+4);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+2, j+2, k+4), exeption)){world.setBlockToAir(i+2, j+2, k+4);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+3, j+2, k+4), exeption)){world.setBlockToAir(i+3, j+2, k+4);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+4, j+2, k+4), exeption)){world.setBlockToAir(i+4, j+2, k+4);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+5, j+2, k+4), exeption)){world.setBlockToAir(i+5, j+2, k+4);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+6, j+2, k+4), exeption)){world.setBlockToAir(i+6, j+2, k+4);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+7, j+2, k+4), exeption)){world.setBlockToAir(i+7, j+2, k+4);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+8, j+2, k+4), exeption)){world.setBlockToAir(i+8, j+2, k+4);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+1, j+2, k+5), exeption)){world.setBlockToAir(i+1, j+2, k+5);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+2, j+2, k+5), exeption)){world.setBlockToAir(i+2, j+2, k+5);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+3, j+2, k+5), exeption)){world.setBlockToAir(i+3, j+2, k+5);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+4, j+2, k+5), exeption)){world.setBlockToAir(i+4, j+2, k+5);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+5, j+2, k+5), exeption)){world.setBlockToAir(i+5, j+2, k+5);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+6, j+2, k+5), exeption)){world.setBlockToAir(i+6, j+2, k+5);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+7, j+2, k+5), exeption)){world.setBlockToAir(i+7, j+2, k+5);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+1, j+2, k+6), exeption)){world.setBlockToAir(i+1, j+2, k+6);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+2, j+2, k+6), exeption)){world.setBlockToAir(i+2, j+2, k+6);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+3, j+2, k+6), exeption)){world.setBlockToAir(i+3, j+2, k+6);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+4, j+2, k+6), exeption)){world.setBlockToAir(i+4, j+2, k+6);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+5, j+2, k+6), exeption)){world.setBlockToAir(i+5, j+2, k+6);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+6, j+2, k+6), exeption)){world.setBlockToAir(i+6, j+2, k+6);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+7, j+2, k+6), exeption)){world.setBlockToAir(i+7, j+2, k+6);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+2, j+2, k+7), exeption)){world.setBlockToAir(i+2, j+2, k+7);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+3, j+2, k+7), exeption)){world.setBlockToAir(i+3, j+2, k+7);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+4, j+2, k+7), exeption)){world.setBlockToAir(i+4, j+2, k+7);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+5, j+2, k+7), exeption)){world.setBlockToAir(i+5, j+2, k+7);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+6, j+2, k+7), exeption)){world.setBlockToAir(i+6, j+2, k+7);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+4, j+2, k+, exeption)){world.setBlockToAir(i+4, j+2, k+;}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+3, j+3, k+0), exeption)){world.setBlockToAir(i+3, j+3, k+0);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+4, j+3, k+0), exeption)){world.setBlockToAir(i+4, j+3, k+0);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+5, j+3, k+0), exeption)){world.setBlockToAir(i+5, j+3, k+0);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+1, j+3, k+1), exeption)){world.setBlockToAir(i+1, j+3, k+1);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+2, j+3, k+1), exeption)){world.setBlockToAir(i+2, j+3, k+1);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+3, j+3, k+1), exeption)){world.setBlockToAir(i+3, j+3, k+1);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+4, j+3, k+1), exeption)){world.setBlockToAir(i+4, j+3, k+1);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+5, j+3, k+1), exeption)){world.setBlockToAir(i+5, j+3, k+1);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+6, j+3, k+1), exeption)){world.setBlockToAir(i+6, j+3, k+1);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+7, j+3, k+1), exeption)){world.setBlockToAir(i+7, j+3, k+1);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+1, j+3, k+2), exeption)){world.setBlockToAir(i+1, j+3, k+2);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+2, j+3, k+2), exeption)){world.setBlockToAir(i+2, j+3, k+2);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+3, j+3, k+2), exeption)){world.setBlockToAir(i+3, j+3, k+2);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+4, j+3, k+2), exeption)){world.setBlockToAir(i+4, j+3, k+2);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+5, j+3, k+2), exeption)){world.setBlockToAir(i+5, j+3, k+2);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+6, j+3, k+2), exeption)){world.setBlockToAir(i+6, j+3, k+2);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+7, j+3, k+2), exeption)){world.setBlockToAir(i+7, j+3, k+2);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+0, j+3, k+3), exeption)){world.setBlockToAir(i+0, j+3, k+3);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+1, j+3, k+3), exeption)){world.setBlockToAir(i+1, j+3, k+3);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+2, j+3, k+3), exeption)){world.setBlockToAir(i+2, j+3, k+3);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+3, j+3, k+3), exeption)){world.setBlockToAir(i+3, j+3, k+3);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+4, j+3, k+3), exeption)){world.setBlockToAir(i+4, j+3, k+3);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+5, j+3, k+3), exeption)){world.setBlockToAir(i+5, j+3, k+3);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+6, j+3, k+3), exeption)){world.setBlockToAir(i+6, j+3, k+3);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+7, j+3, k+3), exeption)){world.setBlockToAir(i+7, j+3, k+3);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+8, j+3, k+3), exeption)){world.setBlockToAir(i+8, j+3, k+3);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+0, j+3, k+4), exeption)){world.setBlockToAir(i+0, j+3, k+4);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+1, j+3, k+4), exeption)){world.setBlockToAir(i+1, j+3, k+4);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+2, j+3, k+4), exeption)){world.setBlockToAir(i+2, j+3, k+4);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+3, j+3, k+4), exeption)){world.setBlockToAir(i+3, j+3, k+4);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+4, j+3, k+4), exeption)){world.setBlockToAir(i+4, j+3, k+4);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+5, j+3, k+4), exeption)){world.setBlockToAir(i+5, j+3, k+4);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+6, j+3, k+4), exeption)){world.setBlockToAir(i+6, j+3, k+4);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+7, j+3, k+4), exeption)){world.setBlockToAir(i+7, j+3, k+4);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+8, j+3, k+4), exeption)){world.setBlockToAir(i+8, j+3, k+4);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+0, j+3, k+5), exeption)){world.setBlockToAir(i+0, j+3, k+5);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+1, j+3, k+5), exeption)){world.setBlockToAir(i+1, j+3, k+5);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+2, j+3, k+5), exeption)){world.setBlockToAir(i+2, j+3, k+5);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+3, j+3, k+5), exeption)){world.setBlockToAir(i+3, j+3, k+5);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+4, j+3, k+5), exeption)){world.setBlockToAir(i+4, j+3, k+5);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+5, j+3, k+5), exeption)){world.setBlockToAir(i+5, j+3, k+5);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+6, j+3, k+5), exeption)){world.setBlockToAir(i+6, j+3, k+5);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+7, j+3, k+5), exeption)){world.setBlockToAir(i+7, j+3, k+5);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+8, j+3, k+5), exeption)){world.setBlockToAir(i+8, j+3, k+5);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+1, j+3, k+6), exeption)){world.setBlockToAir(i+1, j+3, k+6);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+2, j+3, k+6), exeption)){world.setBlockToAir(i+2, j+3, k+6);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+3, j+3, k+6), exeption)){world.setBlockToAir(i+3, j+3, k+6);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+4, j+3, k+6), exeption)){world.setBlockToAir(i+4, j+3, k+6);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+5, j+3, k+6), exeption)){world.setBlockToAir(i+5, j+3, k+6);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+6, j+3, k+6), exeption)){world.setBlockToAir(i+6, j+3, k+6);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+7, j+3, k+6), exeption)){world.setBlockToAir(i+7, j+3, k+6);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+1, j+3, k+7), exeption)){world.setBlockToAir(i+1, j+3, k+7);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+2, j+3, k+7), exeption)){world.setBlockToAir(i+2, j+3, k+7);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+3, j+3, k+7), exeption)){world.setBlockToAir(i+3, j+3, k+7);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+4, j+3, k+7), exeption)){world.setBlockToAir(i+4, j+3, k+7);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+5, j+3, k+7), exeption)){world.setBlockToAir(i+5, j+3, k+7);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+6, j+3, k+7), exeption)){world.setBlockToAir(i+6, j+3, k+7);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+7, j+3, k+7), exeption)){world.setBlockToAir(i+7, j+3, k+7);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+3, j+3, k+, exeption)){world.setBlockToAir(i+3, j+3, k+;}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+4, j+3, k+, exeption)){world.setBlockToAir(i+4, j+3, k+;}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+5, j+3, k+, exeption)){world.setBlockToAir(i+5, j+3, k+;}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+2, j+4, k+0), exeption)){world.setBlockToAir(i+2, j+4, k+0);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+3, j+4, k+0), exeption)){world.setBlockToAir(i+3, j+4, k+0);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+4, j+4, k+0), exeption)){world.setBlockToAir(i+4, j+4, k+0);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+5, j+4, k+0), exeption)){world.setBlockToAir(i+5, j+4, k+0);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+6, j+4, k+0), exeption)){world.setBlockToAir(i+6, j+4, k+0);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+1, j+4, k+1), exeption)){world.setBlockToAir(i+1, j+4, k+1);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+2, j+4, k+1), exeption)){world.setBlockToAir(i+2, j+4, k+1);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+3, j+4, k+1), exeption)){world.setBlockToAir(i+3, j+4, k+1);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+4, j+4, k+1), exeption)){world.setBlockToAir(i+4, j+4, k+1);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+5, j+4, k+1), exeption)){world.setBlockToAir(i+5, j+4, k+1);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+6, j+4, k+1), exeption)){world.setBlockToAir(i+6, j+4, k+1);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+7, j+4, k+1), exeption)){world.setBlockToAir(i+7, j+4, k+1);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+0, j+4, k+2), exeption)){world.setBlockToAir(i+0, j+4, k+2);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+1, j+4, k+2), exeption)){world.setBlockToAir(i+1, j+4, k+2);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+2, j+4, k+2), exeption)){world.setBlockToAir(i+2, j+4, k+2);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+3, j+4, k+2), exeption)){world.setBlockToAir(i+3, j+4, k+2);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+4, j+4, k+2), exeption)){world.setBlockToAir(i+4, j+4, k+2);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+5, j+4, k+2), exeption)){world.setBlockToAir(i+5, j+4, k+2);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+6, j+4, k+2), exeption)){world.setBlockToAir(i+6, j+4, k+2);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+7, j+4, k+2), exeption)){world.setBlockToAir(i+7, j+4, k+2);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+8, j+4, k+2), exeption)){world.setBlockToAir(i+8, j+4, k+2);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+0, j+4, k+3), exeption)){world.setBlockToAir(i+0, j+4, k+3);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+1, j+4, k+3), exeption)){world.setBlockToAir(i+1, j+4, k+3);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+2, j+4, k+3), exeption)){world.setBlockToAir(i+2, j+4, k+3);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+3, j+4, k+3), exeption)){world.setBlockToAir(i+3, j+4, k+3);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+4, j+4, k+3), exeption)){world.setBlockToAir(i+4, j+4, k+3);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+5, j+4, k+3), exeption)){world.setBlockToAir(i+5, j+4, k+3);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+6, j+4, k+3), exeption)){world.setBlockToAir(i+6, j+4, k+3);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+7, j+4, k+3), exeption)){world.setBlockToAir(i+7, j+4, k+3);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+8, j+4, k+3), exeption)){world.setBlockToAir(i+8, j+4, k+3);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+0, j+4, k+4), exeption)){world.setBlockToAir(i+0, j+4, k+4);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+1, j+4, k+4), exeption)){world.setBlockToAir(i+1, j+4, k+4);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+2, j+4, k+4), exeption)){world.setBlockToAir(i+2, j+4, k+4);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+3, j+4, k+4), exeption)){world.setBlockToAir(i+3, j+4, k+4);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+4, j+4, k+4), exeption)){world.setBlockToAir(i+4, j+4, k+4);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+5, j+4, k+4), exeption)){world.setBlockToAir(i+5, j+4, k+4);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+6, j+4, k+4), exeption)){world.setBlockToAir(i+6, j+4, k+4);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+7, j+4, k+4), exeption)){world.setBlockToAir(i+7, j+4, k+4);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+8, j+4, k+4), exeption)){world.setBlockToAir(i+8, j+4, k+4);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+0, j+4, k+5), exeption)){world.setBlockToAir(i+0, j+4, k+5);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+1, j+4, k+5), exeption)){world.setBlockToAir(i+1, j+4, k+5);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+2, j+4, k+5), exeption)){world.setBlockToAir(i+2, j+4, k+5);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+3, j+4, k+5), exeption)){world.setBlockToAir(i+3, j+4, k+5);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+4, j+4, k+5), exeption)){world.setBlockToAir(i+4, j+4, k+5);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+5, j+4, k+5), exeption)){world.setBlockToAir(i+5, j+4, k+5);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+6, j+4, k+5), exeption)){world.setBlockToAir(i+6, j+4, k+5);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+7, j+4, k+5), exeption)){world.setBlockToAir(i+7, j+4, k+5);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+8, j+4, k+5), exeption)){world.setBlockToAir(i+8, j+4, k+5);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+0, j+4, k+6), exeption)){world.setBlockToAir(i+0, j+4, k+6);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+1, j+4, k+6), exeption)){world.setBlockToAir(i+1, j+4, k+6);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+2, j+4, k+6), exeption)){world.setBlockToAir(i+2, j+4, k+6);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+3, j+4, k+6), exeption)){world.setBlockToAir(i+3, j+4, k+6);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+4, j+4, k+6), exeption)){world.setBlockToAir(i+4, j+4, k+6);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+5, j+4, k+6), exeption)){world.setBlockToAir(i+5, j+4, k+6);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+6, j+4, k+6), exeption)){world.setBlockToAir(i+6, j+4, k+6);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+7, j+4, k+6), exeption)){world.setBlockToAir(i+7, j+4, k+6);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+8, j+4, k+6), exeption)){world.setBlockToAir(i+8, j+4, k+6);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+1, j+4, k+7), exeption)){world.setBlockToAir(i+1, j+4, k+7);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+2, j+4, k+7), exeption)){world.setBlockToAir(i+2, j+4, k+7);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+3, j+4, k+7), exeption)){world.setBlockToAir(i+3, j+4, k+7);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+4, j+4, k+7), exeption)){world.setBlockToAir(i+4, j+4, k+7);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+5, j+4, k+7), exeption)){world.setBlockToAir(i+5, j+4, k+7);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+6, j+4, k+7), exeption)){world.setBlockToAir(i+6, j+4, k+7);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+7, j+4, k+7), exeption)){world.setBlockToAir(i+7, j+4, k+7);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+2, j+4, k+, exeption)){world.setBlockToAir(i+2, j+4, k+;}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+3, j+4, k+, exeption)){world.setBlockToAir(i+3, j+4, k+;}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+4, j+4, k+, exeption)){world.setBlockToAir(i+4, j+4, k+;}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+5, j+4, k+, exeption)){world.setBlockToAir(i+5, j+4, k+;}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+6, j+4, k+, exeption)){world.setBlockToAir(i+6, j+4, k+;}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+3, j+5, k+0), exeption)){world.setBlockToAir(i+3, j+5, k+0);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+4, j+5, k+0), exeption)){world.setBlockToAir(i+4, j+5, k+0);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+5, j+5, k+0), exeption)){world.setBlockToAir(i+5, j+5, k+0);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+1, j+5, k+1), exeption)){world.setBlockToAir(i+1, j+5, k+1);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+2, j+5, k+1), exeption)){world.setBlockToAir(i+2, j+5, k+1);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+3, j+5, k+1), exeption)){world.setBlockToAir(i+3, j+5, k+1);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+4, j+5, k+1), exeption)){world.setBlockToAir(i+4, j+5, k+1);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+5, j+5, k+1), exeption)){world.setBlockToAir(i+5, j+5, k+1);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+6, j+5, k+1), exeption)){world.setBlockToAir(i+6, j+5, k+1);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+7, j+5, k+1), exeption)){world.setBlockToAir(i+7, j+5, k+1);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+1, j+5, k+2), exeption)){world.setBlockToAir(i+1, j+5, k+2);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+2, j+5, k+2), exeption)){world.setBlockToAir(i+2, j+5, k+2);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+3, j+5, k+2), exeption)){world.setBlockToAir(i+3, j+5, k+2);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+4, j+5, k+2), exeption)){world.setBlockToAir(i+4, j+5, k+2);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+5, j+5, k+2), exeption)){world.setBlockToAir(i+5, j+5, k+2);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+6, j+5, k+2), exeption)){world.setBlockToAir(i+6, j+5, k+2);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+7, j+5, k+2), exeption)){world.setBlockToAir(i+7, j+5, k+2);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+0, j+5, k+3), exeption)){world.setBlockToAir(i+0, j+5, k+3);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+1, j+5, k+3), exeption)){world.setBlockToAir(i+1, j+5, k+3);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+2, j+5, k+3), exeption)){world.setBlockToAir(i+2, j+5, k+3);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+3, j+5, k+3), exeption)){world.setBlockToAir(i+3, j+5, k+3);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+4, j+5, k+3), exeption)){world.setBlockToAir(i+4, j+5, k+3);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+5, j+5, k+3), exeption)){world.setBlockToAir(i+5, j+5, k+3);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+6, j+5, k+3), exeption)){world.setBlockToAir(i+6, j+5, k+3);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+7, j+5, k+3), exeption)){world.setBlockToAir(i+7, j+5, k+3);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+8, j+5, k+3), exeption)){world.setBlockToAir(i+8, j+5, k+3);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+0, j+5, k+4), exeption)){world.setBlockToAir(i+0, j+5, k+4);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+1, j+5, k+4), exeption)){world.setBlockToAir(i+1, j+5, k+4);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+2, j+5, k+4), exeption)){world.setBlockToAir(i+2, j+5, k+4);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+3, j+5, k+4), exeption)){world.setBlockToAir(i+3, j+5, k+4);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+4, j+5, k+4), exeption)){world.setBlockToAir(i+4, j+5, k+4);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+5, j+5, k+4), exeption)){world.setBlockToAir(i+5, j+5, k+4);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+6, j+5, k+4), exeption)){world.setBlockToAir(i+6, j+5, k+4);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+7, j+5, k+4), exeption)){world.setBlockToAir(i+7, j+5, k+4);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+8, j+5, k+4), exeption)){world.setBlockToAir(i+8, j+5, k+4);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+0, j+5, k+5), exeption)){world.setBlockToAir(i+0, j+5, k+5);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+1, j+5, k+5), exeption)){world.setBlockToAir(i+1, j+5, k+5);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+2, j+5, k+5), exeption)){world.setBlockToAir(i+2, j+5, k+5);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+3, j+5, k+5), exeption)){world.setBlockToAir(i+3, j+5, k+5);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+4, j+5, k+5), exeption)){world.setBlockToAir(i+4, j+5, k+5);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+5, j+5, k+5), exeption)){world.setBlockToAir(i+5, j+5, k+5);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+6, j+5, k+5), exeption)){world.setBlockToAir(i+6, j+5, k+5);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+7, j+5, k+5), exeption)){world.setBlockToAir(i+7, j+5, k+5);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+8, j+5, k+5), exeption)){world.setBlockToAir(i+8, j+5, k+5);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+1, j+5, k+6), exeption)){world.setBlockToAir(i+1, j+5, k+6);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+2, j+5, k+6), exeption)){world.setBlockToAir(i+2, j+5, k+6);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+3, j+5, k+6), exeption)){world.setBlockToAir(i+3, j+5, k+6);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+4, j+5, k+6), exeption)){world.setBlockToAir(i+4, j+5, k+6);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+5, j+5, k+6), exeption)){world.setBlockToAir(i+5, j+5, k+6);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+6, j+5, k+6), exeption)){world.setBlockToAir(i+6, j+5, k+6);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+7, j+5, k+6), exeption)){world.setBlockToAir(i+7, j+5, k+6);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+1, j+5, k+7), exeption)){world.setBlockToAir(i+1, j+5, k+7);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+2, j+5, k+7), exeption)){world.setBlockToAir(i+2, j+5, k+7);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+3, j+5, k+7), exeption)){world.setBlockToAir(i+3, j+5, k+7);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+4, j+5, k+7), exeption)){world.setBlockToAir(i+4, j+5, k+7);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+5, j+5, k+7), exeption)){world.setBlockToAir(i+5, j+5, k+7);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+6, j+5, k+7), exeption)){world.setBlockToAir(i+6, j+5, k+7);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+7, j+5, k+7), exeption)){world.setBlockToAir(i+7, j+5, k+7);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+3, j+5, k+, exeption)){world.setBlockToAir(i+3, j+5, k+;}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+4, j+5, k+, exeption)){world.setBlockToAir(i+4, j+5, k+;}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+5, j+5, k+, exeption)){world.setBlockToAir(i+5, j+5, k+;}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+4, j+6, k+0), exeption)){world.setBlockToAir(i+4, j+6, k+0);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+2, j+6, k+1), exeption)){world.setBlockToAir(i+2, j+6, k+1);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+3, j+6, k+1), exeption)){world.setBlockToAir(i+3, j+6, k+1);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+4, j+6, k+1), exeption)){world.setBlockToAir(i+4, j+6, k+1);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+5, j+6, k+1), exeption)){world.setBlockToAir(i+5, j+6, k+1);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+6, j+6, k+1), exeption)){world.setBlockToAir(i+6, j+6, k+1);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+1, j+6, k+2), exeption)){world.setBlockToAir(i+1, j+6, k+2);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+2, j+6, k+2), exeption)){world.setBlockToAir(i+2, j+6, k+2);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+3, j+6, k+2), exeption)){world.setBlockToAir(i+3, j+6, k+2);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+4, j+6, k+2), exeption)){world.setBlockToAir(i+4, j+6, k+2);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+5, j+6, k+2), exeption)){world.setBlockToAir(i+5, j+6, k+2);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+6, j+6, k+2), exeption)){world.setBlockToAir(i+6, j+6, k+2);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+7, j+6, k+2), exeption)){world.setBlockToAir(i+7, j+6, k+2);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+1, j+6, k+3), exeption)){world.setBlockToAir(i+1, j+6, k+3);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+2, j+6, k+3), exeption)){world.setBlockToAir(i+2, j+6, k+3);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+3, j+6, k+3), exeption)){world.setBlockToAir(i+3, j+6, k+3);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+4, j+6, k+3), exeption)){world.setBlockToAir(i+4, j+6, k+3);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+5, j+6, k+3), exeption)){world.setBlockToAir(i+5, j+6, k+3);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+6, j+6, k+3), exeption)){world.setBlockToAir(i+6, j+6, k+3);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+7, j+6, k+3), exeption)){world.setBlockToAir(i+7, j+6, k+3);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+0, j+6, k+4), exeption)){world.setBlockToAir(i+0, j+6, k+4);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+1, j+6, k+4), exeption)){world.setBlockToAir(i+1, j+6, k+4);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+2, j+6, k+4), exeption)){world.setBlockToAir(i+2, j+6, k+4);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+3, j+6, k+4), exeption)){world.setBlockToAir(i+3, j+6, k+4);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+4, j+6, k+4), exeption)){world.setBlockToAir(i+4, j+6, k+4);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+5, j+6, k+4), exeption)){world.setBlockToAir(i+5, j+6, k+4);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+6, j+6, k+4), exeption)){world.setBlockToAir(i+6, j+6, k+4);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+7, j+6, k+4), exeption)){world.setBlockToAir(i+7, j+6, k+4);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+8, j+6, k+4), exeption)){world.setBlockToAir(i+8, j+6, k+4);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+1, j+6, k+5), exeption)){world.setBlockToAir(i+1, j+6, k+5);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+2, j+6, k+5), exeption)){world.setBlockToAir(i+2, j+6, k+5);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+3, j+6, k+5), exeption)){world.setBlockToAir(i+3, j+6, k+5);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+4, j+6, k+5), exeption)){world.setBlockToAir(i+4, j+6, k+5);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+5, j+6, k+5), exeption)){world.setBlockToAir(i+5, j+6, k+5);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+6, j+6, k+5), exeption)){world.setBlockToAir(i+6, j+6, k+5);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+7, j+6, k+5), exeption)){world.setBlockToAir(i+7, j+6, k+5);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+1, j+6, k+6), exeption)){world.setBlockToAir(i+1, j+6, k+6);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+2, j+6, k+6), exeption)){world.setBlockToAir(i+2, j+6, k+6);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+3, j+6, k+6), exeption)){world.setBlockToAir(i+3, j+6, k+6);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+4, j+6, k+6), exeption)){world.setBlockToAir(i+4, j+6, k+6);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+5, j+6, k+6), exeption)){world.setBlockToAir(i+5, j+6, k+6);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+6, j+6, k+6), exeption)){world.setBlockToAir(i+6, j+6, k+6);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+7, j+6, k+6), exeption)){world.setBlockToAir(i+7, j+6, k+6);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+2, j+6, k+7), exeption)){world.setBlockToAir(i+2, j+6, k+7);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+3, j+6, k+7), exeption)){world.setBlockToAir(i+3, j+6, k+7);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+4, j+6, k+7), exeption)){world.setBlockToAir(i+4, j+6, k+7);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+5, j+6, k+7), exeption)){world.setBlockToAir(i+5, j+6, k+7);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+6, j+6, k+7), exeption)){world.setBlockToAir(i+6, j+6, k+7);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+4, j+6, k+, exeption)){world.setBlockToAir(i+4, j+6, k+;}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+3, j+7, k+1), exeption)){world.setBlockToAir(i+3, j+7, k+1);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+4, j+7, k+1), exeption)){world.setBlockToAir(i+4, j+7, k+1);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+5, j+7, k+1), exeption)){world.setBlockToAir(i+5, j+7, k+1);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+2, j+7, k+2), exeption)){world.setBlockToAir(i+2, j+7, k+2);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+3, j+7, k+2), exeption)){world.setBlockToAir(i+3, j+7, k+2);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+4, j+7, k+2), exeption)){world.setBlockToAir(i+4, j+7, k+2);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+5, j+7, k+2), exeption)){world.setBlockToAir(i+5, j+7, k+2);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+6, j+7, k+2), exeption)){world.setBlockToAir(i+6, j+7, k+2);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+1, j+7, k+3), exeption)){world.setBlockToAir(i+1, j+7, k+3);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+2, j+7, k+3), exeption)){world.setBlockToAir(i+2, j+7, k+3);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+3, j+7, k+3), exeption)){world.setBlockToAir(i+3, j+7, k+3);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+4, j+7, k+3), exeption)){world.setBlockToAir(i+4, j+7, k+3);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+5, j+7, k+3), exeption)){world.setBlockToAir(i+5, j+7, k+3);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+6, j+7, k+3), exeption)){world.setBlockToAir(i+6, j+7, k+3);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+7, j+7, k+3), exeption)){world.setBlockToAir(i+7, j+7, k+3);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+1, j+7, k+4), exeption)){world.setBlockToAir(i+1, j+7, k+4);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+2, j+7, k+4), exeption)){world.setBlockToAir(i+2, j+7, k+4);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+3, j+7, k+4), exeption)){world.setBlockToAir(i+3, j+7, k+4);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+4, j+7, k+4), exeption)){world.setBlockToAir(i+4, j+7, k+4);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+5, j+7, k+4), exeption)){world.setBlockToAir(i+5, j+7, k+4);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+6, j+7, k+4), exeption)){world.setBlockToAir(i+6, j+7, k+4);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+7, j+7, k+4), exeption)){world.setBlockToAir(i+7, j+7, k+4);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+1, j+7, k+5), exeption)){world.setBlockToAir(i+1, j+7, k+5);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+2, j+7, k+5), exeption)){world.setBlockToAir(i+2, j+7, k+5);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+3, j+7, k+5), exeption)){world.setBlockToAir(i+3, j+7, k+5);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+4, j+7, k+5), exeption)){world.setBlockToAir(i+4, j+7, k+5);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+5, j+7, k+5), exeption)){world.setBlockToAir(i+5, j+7, k+5);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+6, j+7, k+5), exeption)){world.setBlockToAir(i+6, j+7, k+5);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+7, j+7, k+5), exeption)){world.setBlockToAir(i+7, j+7, k+5);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+2, j+7, k+6), exeption)){world.setBlockToAir(i+2, j+7, k+6);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+3, j+7, k+6), exeption)){world.setBlockToAir(i+3, j+7, k+6);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+4, j+7, k+6), exeption)){world.setBlockToAir(i+4, j+7, k+6);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+5, j+7, k+6), exeption)){world.setBlockToAir(i+5, j+7, k+6);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+6, j+7, k+6), exeption)){world.setBlockToAir(i+6, j+7, k+6);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+3, j+7, k+7), exeption)){world.setBlockToAir(i+3, j+7, k+7);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+4, j+7, k+7), exeption)){world.setBlockToAir(i+4, j+7, k+7);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+5, j+7, k+7), exeption)){world.setBlockToAir(i+5, j+7, k+7);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+4, j+8, k+2), exeption)){world.setBlockToAir(i+4, j+8, k+2);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+3, j+8, k+3), exeption)){world.setBlockToAir(i+3, j+8, k+3);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+4, j+8, k+3), exeption)){world.setBlockToAir(i+4, j+8, k+3);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+5, j+8, k+3), exeption)){world.setBlockToAir(i+5, j+8, k+3);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+2, j+8, k+4), exeption)){world.setBlockToAir(i+2, j+8, k+4);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+3, j+8, k+4), exeption)){world.setBlockToAir(i+3, j+8, k+4);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+4, j+8, k+4), exeption)){world.setBlockToAir(i+4, j+8, k+4);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+5, j+8, k+4), exeption)){world.setBlockToAir(i+5, j+8, k+4);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+6, j+8, k+4), exeption)){world.setBlockToAir(i+6, j+8, k+4);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+3, j+8, k+5), exeption)){world.setBlockToAir(i+3, j+8, k+5);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+4, j+8, k+5), exeption)){world.setBlockToAir(i+4, j+8, k+5);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+5, j+8, k+5), exeption)){world.setBlockToAir(i+5, j+8, k+5);}
	if(base.CustomMethods.isBlockNotElement(world.getBlock(i+4, j+8, k+6), exeption)){world.setBlockToAir(i+4, j+8, k+6);}
}
}

 

 

Here my event:

 

 

	@SubscribeEvent
public void FullDragonArmor(TickEvent.PlayerTickEvent event){
	if (event.player.getCurrentArmor(0) != null && event.player.getCurrentArmor(1) != null && event.player.getCurrentArmor(2) != null && event.player.getCurrentArmor(3) != null && event.player.getCurrentArmor(0).getItem().equals(Main.DragonBoots) && event.player.getCurrentArmor(1).getItem().equals(Main.DragonLegs) && event.player.getCurrentArmor(2).getItem().equals(Main.DragonChest) && event.player.getCurrentArmor(3).getItem().equals(Main.DragonHelmet)){
		if(event.player.capabilities.isCreativeMode != true){
			if(event.player.capabilities.allowFlying == false){ 
				double x = event.player.posX;
				double y = event.player.posY;
				double z = event.player.posZ;
				//event.player.capabilities.setFlySpeed(0.06F);
				event.player.capabilities.allowFlying=true;
				event.player.capabilities.isFlying=true;
				destruct = true;
				event.player.setPosition(x, y+0.15, z);
	        }
		}else{
        	//event.player.capabilities.setFlySpeed(0.05F);
        }
		if(event.player.capabilities.isCreativeMode){
			if(destruct == true || event.player.capabilities.allowFlying ==false){
				destruct =false;
				event.player.capabilities.allowFlying = true;
			}
		}
		event.player.fallDistance = 0;
	}else{
		if(event.player.capabilities.isCreativeMode){
			destruct = false;
			//event.player.capabilities.setFlySpeed(0.05F);
		}else{
			double x = event.player.posX;
			double y = event.player.posY;
			double z = event.player.posZ;
        		//event.player.capabilities.setFlySpeed(0.05F);
        		event.player.capabilities.allowFlying=false;
        		event.player.capabilities.isFlying=false;
    			destruct = false;
		}
	}
}

 

 

and here the method I used for the sphere:

 

	/**
 * returns false if a Block exists in the Block[]
 * Args: Block, Block[]
 */
public static boolean isBlockNotElement(Block Block ,Block[] Blockarray){
	boolean isfalse = true;
	for(int i = 0 ; i<Blockarray.length;i++){
		if(isfalse == true){
			if(Block == Blockarray[i]){
				isfalse = false;
			}else{
				isfalse = true;
			}
		}
	}
	return isfalse;
}

 

hope you can help me.

Link to comment
Share on other sites

OK, I solved the problem it seems that using the destruct boolean confuses minecraft if you have more then one player.

here Fixed event:

 

 

@SubscribeEvent
public void FullDragonArmor(TickEvent.PlayerTickEvent event){
	if (event.player.getCurrentArmor(0) != null && event.player.getCurrentArmor(1) != null && event.player.getCurrentArmor(2) != null && event.player.getCurrentArmor(3) != null && event.player.getCurrentArmor(0).getItem().equals(Main.DragonBoots) && event.player.getCurrentArmor(1).getItem().equals(Main.DragonLegs) && event.player.getCurrentArmor(2).getItem().equals(Main.DragonChest) && event.player.getCurrentArmor(3).getItem().equals(Main.DragonHelmet)){
		if(event.player.capabilities.isCreativeMode != true){
			if(event.player.capabilities.allowFlying == false){ 
				double x = event.player.posX;
				double y = event.player.posY;
				double z = event.player.posZ;
				//event.player.capabilities.setFlySpeed(0.06F);
				event.player.capabilities.allowFlying=true;
				event.player.capabilities.isFlying=true;
				event.player.setPosition(x, y+0.15, z);
	        }else{
	        	this.Destroy(event.player);
	        }
		}else{
        	//event.player.capabilities.setFlySpeed(0.05F);
        }
		if(event.player.capabilities.isCreativeMode){
			if(event.player.capabilities.allowFlying ==false){
				event.player.capabilities.allowFlying = true;
			}
		}
		event.player.fallDistance = 0;
		System.out.println("Event Done");
	}else{
		if(event.player.capabilities.isCreativeMode){
			//event.player.capabilities.setFlySpeed(0.05F);
		}else{
			double x = event.player.posX;
			double y = event.player.posY;
			double z = event.player.posZ;
        		//event.player.capabilities.setFlySpeed(0.05F);
        		event.player.capabilities.allowFlying=false;
        		event.player.capabilities.isFlying=false;
		}
	}
}

 

 

and here the destroy Method:

 

 

public static void Destroy(EntityPlayer player){

		base.CustomMethods.sphere(player.worldObj, player);
		System.out.println("done with Armor Class");

		double x=player.posX; 
		double y=player.posY; 
		double z=player.posZ; 

		List<EntityLivingBase> list = player.worldObj.getEntitiesWithinAABB(Entity.class, AxisAlignedBB.getBoundingBox(x-4, y-4, z-4, x+4, y+4, z+4));
		for (int i = 0; i <= list.size() - 1; i++) {
			Entity entity = (Entity) list.get(i);
			if(entity == player){
			}else{
				double xE = entity.posX;
				double yE = entity.posY;
				double zE = entity.posZ;
				float hp = 0;
				if(entity instanceof EntityFallingBlock){
					entity.playSound("mob.endermen.portal", 1F, 1F);
					entity.setDead();
				}
				if(entity instanceof EntityLivingBase){
					hp = ((EntityLivingBase) entity).getHealth();
				}else{
					entity.playSound("mob.endermen.portal", 1F, 1F);
					entity.setPosition(xE, -100, zE);
				}
				if(hp <150){
					entity.playSound("mob.endermen.portal", 1F, 1F);
					entity.setPosition(xE, -100, zE);
    			}else{
    				entity.playSound("mob.endermen.portal", 1F, 1F);
    				entity.setPosition(xE, -100, zE);
    				entity.setDead();
    			}
			System.out.println(entity);
			}
		}
    }

 

to sum up I moved everything to the event class (if you have trouble with that: "event.player.worldObj" acts as the World.class)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share



×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.