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

    • It doesn't work even if I remove every mod Please help
    • Hi, so I was making an item that sends info to the server to do some work, and I want the server to send the client back the results? How do I do that? Here is my code:   The snippet that sends the packet to the server SimpleChannelNetwork.CHANNEL.sendToServer(new CreateStructureCompass("fortress"));   The file that manage the traffic package io.github.bossmania.NetherandEndMaps.core.network; import io.github.bossmania.NetherandEndMaps.NetherandEndMaps; import io.github.bossmania.NetherandEndMaps.core.network.message.CreateStructureCompass; import net.minecraft.util.ResourceLocation; import net.minecraftforge.fml.network.NetworkRegistry; import net.minecraftforge.fml.network.simple.SimpleChannel; public class SimpleChannelNetwork { public static final String NETWORK_VERSION = "0.1.0"; public static final SimpleChannel CHANNEL = NetworkRegistry.newSimpleChannel( new ResourceLocation(NetherandEndMaps.MOD_ID, "network"), () -> NETWORK_VERSION, version -> version.equals(NETWORK_VERSION), version -> version.equals(NETWORK_VERSION)); public static void init() { CHANNEL.registerMessage(0, CreateStructureCompass.class ,CreateStructureCompass::encode, CreateStructureCompass::decode, CreateStructureCompass::handle); } }   the code that handle the packet receive and where I want the server to send back a packet to the client package io.github.bossmania.NetherandEndMaps.core.network.message; import java.util.function.Supplier; import io.github.bossmania.NetherandEndMaps.common.items.TemporaryItem; import net.minecraft.entity.player.ServerPlayerEntity; import net.minecraft.item.ItemStack; import net.minecraft.network.PacketBuffer; import net.minecraft.util.math.BlockPos; import net.minecraft.world.gen.feature.structure.Structure; import net.minecraft.world.server.ServerWorld; import net.minecraftforge.fml.network.NetworkEvent; import net.minecraft.item.Item; import net.minecraft.item.ItemGroup; public class CreateStructureCompass { public String structureType; public CreateStructureCompass() { } //create the constructor and store the structureType public CreateStructureCompass(String structureType) { this.structureType = structureType; } //encode the message public static void encode(CreateStructureCompass message, PacketBuffer buffer) { buffer.writeString(message.structureType); } //decode the message public static CreateStructureCompass decode(PacketBuffer buffer) { return new CreateStructureCompass(buffer.readString()); } //execute function when message is sent to server public static void handle(CreateStructureCompass message, Supplier<NetworkEvent.Context> contextSupplier) { NetworkEvent.Context context = contextSupplier.get(); context.enqueueWork(() -> { //get the player and the server ServerPlayerEntity player = context.getSender(); ServerWorld SEWorld = player.getServerWorld(); //get the location of the structure BlockPos structureLocation = SEWorld.func_241117_a_(Structure.FORTRESS, player.getPosition(),100, false); //this is where I want the server to send structureLocation back to the player }); context.setPacketHandled(true); } }  
    • I cannot get an instance of MC Forge to run with either the vanilla launcher or GDLauncher, yet vanilla MC and Fabric MC work fine in both.  I am running the latest versions of everything, and no 1.18-compatible version of Forge will launch even though they all install without fail. Using the vanilla launcher I get exit code 0 and the following logs: Debug log Latest log With GDLauncher I get the following console output:  
    • In 1.15 and before, you could get the item being held/dragged by the cursor using PlayerInventory#getItemStack. This no longer seems to be the case. How do we do this now?
  • Topics

  • Who's Online (See full list)

×
×
  • Create New...

Important Information

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