Given that that is the first post on your account im just going to assume that you are trolling. If not go learn how minecraft works.
As for the topic of this post overriding getCollisionBoundingBoxFromPool and returning null should work i have done it in the past and it worked perfectly. Just to make sure i wrote the following to test it.
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.util.AxisAlignedBB;
import net.minecraft.world.World;
/**
* Created by Brandon on 7/01/2015.
*/
public class TestBlock extends Block {
protected TestBlock() {
super(Material.wood);
this.setBlockName("testblock");
this.setCreativeTab(CreativeTabs.tabBlock);
}
@Override
public AxisAlignedBB getCollisionBoundingBoxFromPool(World p_149668_1_, int p_149668_2_, int p_149668_3_, int p_149668_4_) {
return null;
}
}
That worked just fine for me so if it dosnt work for you there is something else going on.
But given how old this thread is im guessing no one cares anymore because this has long since been solved or abandoned.
Edit: So i figured out that the problem is when you stack two of them and try to walk through them. To fix it override renderAsNormalBlock and return false.
So maby Sbeagin's post wasnt as trolly as i thought but still not a great explanation.
I am so sorry I didn't copy/paste the right thing lol I meant to put this:
@Override
public boolean renderAsNormalBlock()
{
return false;
}
@Override
public AxisAlignedBB getCollisionBoundingBoxFromPool(World world, int wx, int wy, int wz)
{
return null;
}
I don't know how I screwed that up...