Package net.minecraft.entity.item

Examples of net.minecraft.entity.item.EntityTNTPrimed


    creeperNBT.setBoolean("powered", true);
    creeperNBT.setShort("Fuse", (short)120);
    chargedCreeper.readFromNBT(creeperNBT);
    mobs.add(new RandomMob(chargedCreeper, 5));
   
    EntityTNTPrimed armedTNT = (EntityTNTPrimed)MFRUtil.prepareMob(EntityTNTPrimed.class, world);
    armedTNT.fuse = 120;
    mobs.add(new RandomMob(armedTNT, 5));
   
    EntitySlime invisislime = (EntitySlime)MFRUtil.prepareMob(EntitySlime.class, world);
    invisislime.addPotionEffect(new PotionEffect(Potion.invisibility.id, 120 * 20));
 
View Full Code Here


        else if (par5ItemStack.getItem() == Items.gunpowder)
        {
            explodeStrenght = 0.8F * par5ItemStack.stackSize;
        }

        par1World.createExplosion(new EntityTNTPrimed(par1World, par2, par3, par4, (EntityLivingBase) null), par2, par3, par4, explodeStrenght, true);
    }
View Full Code Here

    } else if (ai instanceof AIRobotGotoBlock) {
      ITransactor t = Transactor.getTransactorFor(robot);
      ItemStack stack = t.remove(TNT_FILTER, ForgeDirection.UNKNOWN, true);

      if (stack != null && stack.stackSize > 0) {
        EntityTNTPrimed tnt = new EntityTNTPrimed(robot.worldObj, robot.posX + 0.25, robot.posY - 1,
          robot.posZ + 0.25,
          robot);
        tnt.fuse = 37;
        robot.worldObj.spawnEntityInWorld(tnt);
        robot.worldObj.playSoundAtEntity(tnt, "game.tnt.primed", 1.0F, 1.0F);
View Full Code Here

    @Override
    public void onHackFinished(World world, int x, int y, int z, EntityPlayer player){
        if(!world.isRemote) {
            world.setBlockToAir(x, y, z);
            EntityTNTPrimed tnt = new EntityTNTPrimed(world, x + 0.5, y + 0.5, z + 0.5, player);
            tnt.fuse = 1;
            world.spawnEntityInWorld(tnt);
        }
    }
View Full Code Here

    private Entity getPayloadEntity(){

        if(getUpgrades(ItemMachineUpgrade.UPGRADE_DISPENSER_DAMAGE, getUpgradeSlots()) > 0) {
            Item item = inventory[0].getItem();
            if(item == Item.getItemFromBlock(Blocks.tnt)) {
                EntityTNTPrimed tnt = new EntityTNTPrimed(worldObj);
                tnt.fuse = 80;
                return tnt;
            } else if(item == Items.experience_bottle) return new EntityExpBottle(worldObj);
            else if(item == Items.potionitem) {
                EntityPotion potion = new EntityPotion(worldObj);
View Full Code Here

TOP

Related Classes of net.minecraft.entity.item.EntityTNTPrimed

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.