Working on an Incense mechanic... You'll find out!

This commit is contained in:
WayofTime 2015-04-30 09:37:39 -04:00
parent b90db3857b
commit f1ebade718
7 changed files with 221 additions and 8 deletions

View file

@ -1,19 +1,23 @@
package WayofTime.alchemicalWizardry.common.block;
import WayofTime.alchemicalWizardry.AlchemicalWizardry;
import net.minecraft.block.Block;
import java.util.Random;
import net.minecraft.block.BlockContainer;
import net.minecraft.block.material.Material;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.AxisAlignedBB;
import net.minecraft.world.IBlockAccess;
import net.minecraft.world.World;
import WayofTime.alchemicalWizardry.AlchemicalWizardry;
import WayofTime.alchemicalWizardry.common.tileEntity.TECrucible;
public class BlockCrucible extends Block
public class BlockCrucible extends BlockContainer
{
public BlockCrucible()
{
super(Material.anvil);
this.setCreativeTab(AlchemicalWizardry.tabBloodMagic);
this.setBlockName("blockIncence");
this.setBlockName("blockCrucible");
}
@Override
@ -39,4 +43,20 @@ public class BlockCrucible extends Block
{
return false;
}
@Override
public TileEntity createNewTileEntity(World world, int meta)
{
return new TECrucible();
}
@Override
public void randomDisplayTick(World world, int x, int y, int z, Random rand)
{
if (rand.nextInt(3) != 0)
{
TECrucible tile = (TECrucible)world.getTileEntity(x, y, z);
tile.spawnClientParticle(world, x, y, z, rand);
}
}
}