"Is block replaceable?" option for blocks and plants

Upvotes: 6
Issue description

Some vanilla blocks, such as snow layer and dead bush, can be replaced just by placing a block instead of having to break them first. (This behavior is also applied by choosing certain materials, but this can't be done for plant elements)
The required code is

@Override
		public boolean isReplaceable(IBlockAccess worldIn, BlockPos pos)
    	{
       		return true;
    	}

 

Issue comments

You probably should have some Java experience, but just throw it in any place that you see more of these blocks being defined...



Donate to MCreator

By donating to developers you can speed up development, as with more resources, we can dedicate more time to MCreator. It is a free project made by developers working on it in their free time.