Not a member of Pastebin yet?
                        Sign Up,
                        it unlocks many cool features!                    
                - public class MalakisBlock extends Block
 - {
 - public MalakisBlock(Material material) {
 - super(material);
 - this.setStepSound(soundTypeWood);
 - this.setBlockName("MalakisBlock");
 - this.setCreativeTab(CreativeTabs.tabBlock);
 - this.setTickRandomly(true);
 - this.setBlockBounds(0.4f, 0.4f, 0.4f, 0.6f, 0.6f, 0.6f);
 - this.setBlockTextureName("stone");
 - }
 - public AxisAlignedBB getCollisionBoundingBoxFromPool(World p_149668_1_, int p_149668_2_, int p_149668_3_, int p_149668_4_)
 - {
 - float f = 0.0625F;
 - return AxisAlignedBB.getBoundingBox((double)((float)p_149668_2_ + f), (double)p_149668_3_, (double)((float)p_149668_4_ + f), (double)((float)(p_149668_2_ + 1) - f), (double)((float)(p_149668_3_ + 1) - f), (double)((float)(p_149668_4_ + 1) - f));
 - }
 - @Override
 - public void onEntityCollidedWithBlock(World world, int x, int y, int z, Entity entity)
 - {
 - if (entity instanceof EntityPlayer){
 - ((EntityPlayer)entity).addPotionEffect(new PotionEffect(Potion.jump.getId(), 200, 30));
 - }else{
 - ((EntityLiving)entity).attackEntityFrom(DamageSource.wither, 1.0F);
 - }
 - }
 - public boolean isOpaqueCube()
 - {
 - return false;
 - }
 - public boolean renderAsNormalBlock(){return false;}
 - }
 
Advertisement
 
                    Add Comment                
                
                        Please, Sign In to add comment