mirror of
https://github.com/GTNewHorizons/BloodMagic.git
synced 2026-11-27 15:23:06 +00:00
Working on an Incense mechanic... You'll find out!
This commit is contained in:
1 parent
b90db3857b
commit
f1ebade718
7 files changed
+221
-8
No files matched your search
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user