mirror of
https://github.com/GTNewHorizons/Chisel.git
synced 2026-11-13 16:54:13 +00:00
33 lines
722 B
Java
33 lines
722 B
Java
package com.cricketcraft.chisel.block;
|
|
|
|
|
|
import java.util.Random;
|
|
|
|
import com.cricketcraft.chisel.client.GeneralChiselClient;
|
|
|
|
import net.minecraft.block.material.Material;
|
|
import net.minecraft.world.World;
|
|
|
|
public class BlockLavastone extends BlockMarbleTexturedOre
|
|
{
|
|
public BlockLavastone(Material mat, String baseIcon)
|
|
{
|
|
super(mat, baseIcon);
|
|
setLightLevel(1F);
|
|
}
|
|
|
|
@Override
|
|
public void randomDisplayTick(World world, int x, int y, int z, Random random)
|
|
{
|
|
if(random.nextInt(8) == 0 && world.isRemote)
|
|
GeneralChiselClient.spawnLavastoneFX(world, this, x, y, z);
|
|
}
|
|
|
|
@Override
|
|
public boolean renderAsNormalBlock()
|
|
{
|
|
return true;
|
|
}
|
|
|
|
}
|