Page 1 of 1

Reverse furnace recipe selection order

Posted: Wed Sep 04, 2019 9:53 am
by Adamo
TL;DR
Reverse furnace entities' use of the recipe.order value to coincide with the menu convention that more-advanced recipes have higher order value.
What ?
It's apparent that when a furnace has two recipes available that take the same ingredient, the furnace chooses the enabled recipe with the lowest order, e.g., for two recipes that use stone, one with recipe.order = 1 and one with recipe.order = 2, both enabled, the furnace will choose the recipe with recipe.order == 1.

The convention in the crafting menu is that more-advanced recipes have a higher order, e.g., assembling-machine-3 occurs after assembling-machine-1. Therefore, I propose that the furnace's use of the order value be reversed, so that "more advanced" recipes, which should have a higher order value, will be chosen by the furnace.
Why ?
So that modders who intend for a furnace entity to automatically use more-advanced recipes as they become available through research can set the order of the those recipes such that they are consistent with the "more-advanced-to-the-right" convention in the crafting menu.