Will browsing the online doc for factorio API, I found this little typo in an attribute name. in this page : http://lua-api.factorio.com/0.13.11/LuaRecipe.html
The attribute "energy" doesn't work because ingame it is "energy_required".
[0.13.11] LUA Api - Recipe class, wrong attribute name
[0.13.11] LUA Api - Recipe class, wrong attribute name
Want more space restriction ? Or maybe you want to be forced to use train for other thing than ore and oil ? Try Building Platform Mod !
Re: [0.13.11] LUA Api - Recipe class, wrong attribute name
The API is for the in-game Lua API not the prototypes - which is correct as it's auto-generated.
If you want to get ahold of me I'm almost always on Discord.