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.
Note: Your post will require moderator approval before it will be visible.

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



  • Recently Browsing

    No registered users viewing this page.

  • Posts

    • Luis_ST Can you please show me an example I am trying to create a ForgeSpawnEggItem in my ModSpawnEgg class, but it keeps on saying the same error as shown above 
    • Time: 12/3/21 11:33 PM Description: Ticking entity java.lang.BootstrapMethodError: java.lang.LinkageError: loader constraint violation: loader (instance of sun/misc/Launcher$AppClassLoader) previously initiated loading for a different type with name "org/apache/logging/log4j/util/MessageSupplier"     at net.minecraftforge.eventbus.EventBus.handleException(EventBus.java:316) ~[eventbus-4.0.0.jar:?] {}     at net.minecraftforge.eventbus.EventBus.post(EventBus.java:307) ~[eventbus-4.0.0.jar:?] {}     at net.minecraftforge.eventbus.EventBus.post(EventBus.java:283) ~[eventbus-4.0.0.jar:?] {}     at net.minecraftforge.event.ForgeEventFactory.gatherCapabilities(ForgeEventFactory.java:597) ~[?:?] {re:mixin,re:classloading}     at net.minecraftforge.event.ForgeEventFactory.gatherCapabilities(ForgeEventFactory.java:591) ~[?:?] {re:mixin,re:classloading}     at net.minecraftforge.common.capabilities.CapabilityProvider.doGatherCapabilities(CapabilityProvider.java:83) ~[?:?] {re:computing_frames,re:mixin,re:classloading}     at net.minecraftforge.common.capabilities.CapabilityProvider.getCapabilities(CapabilityProvider.java:91) ~[?:?] {re:computing_frames,re:mixin,re:classloading}     at net.minecraftforge.common.capabilities.CapabilityProvider.areCapsCompatible(CapabilityProvider.java:103) ~[?:?] {re:computing_frames,re:mixin,re:classloading}     at net.minecraft.item.ItemStack.func_77959_d(ItemStack.java:387) ~[?:?] {re:mixin,xf:fml:forge:filled_map.4,xf:fml:forge:itemstack,re:classloading,xf:fml:forge:filled_map.4,xf:fml:forge:itemstack,pl:mixin:APP:performant.mixins.json:item.ItemStackMixin,pl:mixin:APP:itemfilters-common.mixins.json:ItemStackMixin,pl:mixin:APP:epicfight.mixins.json:MixinItemStack,pl:mixin:A}     at net.minecraft.item.ItemStack.func_77989_b(ItemStack.java:375) ~[?:?] {re:mixin,xf:fml:forge:filled_map.4,xf:fml:forge:itemstack,re:classloading,xf:fml:forge:filled_map.4,xf:fml:forge:itemstack,pl:mixin:APP:performant.mixins.json:item.ItemStackMixin,pl:mixin:APP:itemfilters-common.mixins.json:ItemStackMixin,pl:mixin:APP:epicfight.mixins.json:MixinItemStack,pl:mixin:A}     at net.minecraft.entity.LivingEntity.func_241354_r_(LivingEntity.java:2267) ~[?:?] {re:mixin,pl:accesstransformer:B,re:computing_frames,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:performant.mixins.json:entity.LivingEntityMixin,pl:mixin:APP:citadel.mixins.json:LivingEntityMixin,pl:mixin:APP:environmental.mixins.json:LivingEntityMixin,pl:mixin:APP:allurement.mixins.json:LivingEntityAccessor,pl:mixin:APP:allurement.mixins.json:LivingEntityMixin,pl:mixin:APP:ars_nouveau.mixins.json:ExpInvokerMixin,pl:mixin:APP:ars_nouveau.mixins.json:MixinLivingEntity,pl:mixin:APP:personality.mixins.json:LivingEntityMixin,pl:mixin:APP:assets/botania/botania.mixins.json:AccessorLivingEntity,pl:mixin:A}     at net.minecraft.entity.LivingEntity.func_241353_q_(LivingEntity.java:2239) ~[?:?] {re:mixin,pl:accesstransformer:B,re:computing_frames,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:performant.mixins.json:entity.LivingEntityMixin,pl:mixin:APP:citadel.mixins.json:LivingEntityMixin,pl:mixin:APP:environmental.mixins.json:LivingEntityMixin,pl:mixin:APP:allurement.mixins.json:LivingEntityAccessor,pl:mixin:APP:allurement.mixins.json:LivingEntityMixin,pl:mixin:APP:ars_nouveau.mixins.json:ExpInvokerMixin,pl:mixin:APP:ars_nouveau.mixins.json:MixinLivingEntity,pl:mixin:APP:personality.mixins.json:LivingEntityMixin,pl:mixin:APP:assets/botania/botania.mixins.json:AccessorLivingEntity,pl:mixin:A}     at net.minecraft.entity.LivingEntity.func_70071_h_(LivingEntity.java:2141) ~[?:?] {re:mixin,pl:accesstransformer:B,re:computing_frames,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:performant.mixins.json:entity.LivingEntityMixin,pl:mixin:APP:citadel.mixins.json:LivingEntityMixin,pl:mixin:APP:environmental.mixins.json:LivingEntityMixin,pl:mixin:APP:allurement.mixins.json:LivingEntityAccessor,pl:mixin:APP:allurement.mixins.json:LivingEntityMixin,pl:mixin:APP:ars_nouveau.mixins.json:ExpInvokerMixin,pl:mixin:APP:ars_nouveau.mixins.json:MixinLivingEntity,pl:mixin:APP:personality.mixins.json:LivingEntityMixin,pl:mixin:APP:assets/botania/botania.mixins.json:AccessorLivingEntity,pl:mixin:A}     at net.minecraft.entity.MobEntity.func_70071_h_(MobEntity.java:431) ~[?:?] {re:mixin,pl:accesstransformer:B,xf:OptiFine:default,re:classloading,pl:accesstransformer:B,xf:OptiFine:default,pl:mixin:APP:environmental.mixins.json:MobEntityMixin,pl:mixin:APP:assets/botania/botania.mixins.json:AccessorMobEntity,pl:mixin:APP:performant.mixins.json:entity.MobEntityDespawnMixin,pl:mixin:APP:performant.mixins.json:entity.MobEntityMixin,pl:mixin:A}     at net.minecraft.world.server.ServerWorld.func_217479_a(ServerWorld.java:611) ~[?:?] {re:mixin,pl:accesstransformer:B,re:computing_frames,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:performant.mixins.json:world.ServerWorldBlockUpdateMixin,pl:mixin:APP:abnormals_core.mixins.json:ServerWorldMixin,pl:mixin:APP:performant.mixins.json:world.ServerWorldMixin,pl:mixin:APP:performant.mixins.json:entity.MobServerWorldMixin,pl:mixin:A}     at net.minecraft.world.server.ServerWorld$$Lambda$16565/514282080.accept(Unknown Source) ~[?:?] {}     at net.minecraft.world.World.func_217390_a(World.java:554) ~[?:?] {re:computing_frames,pl:accesstransformer:B,xf:fml:observerlib:coremodmethod,re:mixin,pl:accesstransformer:B,xf:fml:observerlib:coremodmethod,re:classloading,pl:accesstransformer:B,xf:fml:observerlib:coremodmethod,pl:mixin:APP:sereneseasons.mixins.json:MixinWorld,pl:mixin:APP:flywheel.mixins.json:TileWorldHookMixin,pl:mixin:A}     at net.minecraft.world.server.ServerWorld.func_72835_b(ServerWorld.java:404) ~[?:?] {re:mixin,pl:accesstransformer:B,re:computing_frames,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:performant.mixins.json:world.ServerWorldBlockUpdateMixin,pl:mixin:APP:abnormals_core.mixins.json:ServerWorldMixin,pl:mixin:APP:performant.mixins.json:world.ServerWorldMixin,pl:mixin:APP:performant.mixins.json:entity.MobServerWorldMixin,pl:mixin:A}     at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:851) ~[?:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:structure_gel.mixins.json:MinecraftServerMixin,pl:mixin:APP:byg.mixins.json:server.MixinMinecraftServer,pl:mixin:APP:marg.mixins.json:MinecraftServerMixin,pl:mixin:A}     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:787) ~[?:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:structure_gel.mixins.json:MinecraftServerMixin,pl:mixin:APP:byg.mixins.json:server.MixinMinecraftServer,pl:mixin:APP:marg.mixins.json:MinecraftServerMixin,pl:mixin:A}     at net.minecraft.server.integrated.IntegratedServer.func_71217_p(IntegratedServer.java:118) ~[?:?] {re:mixin,xf:OptiFine:default,re:classloading,xf:OptiFine:default,pl:mixin:APP:smoothboot.mixins.json:client.IntegratedServerMixin,pl:mixin:A}     at net.minecraft.server.MinecraftServer.func_240802_v_(MinecraftServer.java:642) [?:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:structure_gel.mixins.json:MinecraftServerMixin,pl:mixin:APP:byg.mixins.json:server.MixinMinecraftServer,pl:mixin:APP:marg.mixins.json:MinecraftServerMixin,pl:mixin:A}     at net.minecraft.server.MinecraftServer.func_240783_a_(MinecraftServer.java:232) [?:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:structure_gel.mixins.json:MinecraftServerMixin,pl:mixin:APP:byg.mixins.json:server.MixinMinecraftServer,pl:mixin:APP:marg.mixins.json:MinecraftServerMixin,pl:mixin:A}     at net.minecraft.server.MinecraftServer$$Lambda$15673/85323444.run(Unknown Source) [?:?] {}     at java.lang.Thread.run(Thread.java:745) [?:1.8.0_51] {} Caused by: java.lang.LinkageError: loader constraint violation: loader (instance of sun/misc/Launcher$AppClassLoader) previously initiated loading for a different type with name "org/apache/logging/log4j/util/MessageSupplier"     at java.lang.ClassLoader.defineClass1(Native Method) ~[?:1.8.0_51] {}     at java.lang.ClassLoader.defineClass(ClassLoader.java:760) ~[?:1.8.0_51] {}     at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) ~[?:1.8.0_51] {}     at java.net.URLClassLoader.defineClass(URLClassLoader.java:467) ~[?:1.8.0_51] {}     at java.net.URLClassLoader.access$100(URLClassLoader.java:73) ~[?:1.8.0_51] {}     at java.net.URLClassLoader$1.run(URLClassLoader.java:368) ~[?:1.8.0_51] {}     at java.net.URLClassLoader$1.run(URLClassLoader.java:362) ~[?:1.8.0_51] {}     at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_51] {}     at java.net.URLClassLoader.findClass(URLClassLoader.java:361) ~[?:1.8.0_51] {}     at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[?:1.8.0_51] {}     at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331) ~[?:1.8.0_51] {}     at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:1.8.0_51] {}     ... 25 more for full report https://pastebin.com/Did3vHvR    
    • you need to create a new ForgeSpawnEggItem and not a SpawnEggItem!
    • this is at the moment not implemented, since vanilla changed the Biome generation, and the old Forge patch doesn't work anymore you need to wait till it's will be added back
    • Please can you HELP instead of posting learn java learn java, PLEASE
  • Topics

  • Who's Online (See full list)

×
×
  • Create New...

Important Information

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