"AI Path Node Type" option for blocks/plants

Status
Fixed
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
@Override
public PathNodeType getAiPathNodeType(IBlockState state, IBlockAccess world, BlockPos pos) {
	return PathNodeType.TYPE;
}

 

Issue comments