"AI Path Node Type" option for blocks/plants

Upvotes: 9
Issue description

This option determines how mobs "see" the block when pathfinding, so that they can avoid harmful blocks and obstacles. As such, this setting would be especially useful for blocks such as spike traps or cacti.The required code is:

// Returning null will use the vanilla behaviour instead
public PathNodeType getAiPathNodeType(IBlockState state, IBlockAccess world, BlockPos pos) {
	return PathNodeType.TYPE;


Issue comments

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.