@Override
public boolean canPlaceBlockAt(World world, int x, int y, int z)
{
if(world.getBlockId(x, y-1, z) == MoreDimensions.slimeGrass.blockID)
{
}
else if(world.getBlockId(x, y-1, z) == MoreDimensions.slimeDirt.blockID)
{
}
else
{
world.setBlockToAir(x, y, z);{return true;}
}
return true;
}
This appears to return true in every case. You want code that only returns true for your blocks, and returns false for everything else.