[resolved] Add is_crafting() for furnaces

Things that already exist in the current mod API
Post Reply
User avatar
binbinhfr
Smart Inserter
Smart Inserter
Posts: 1524
Joined: Sat Feb 27, 2016 7:37 pm
Contact:

[resolved] Add is_crafting() for furnaces

Post by binbinhfr »

Hi,

entity.is_crafting() and entity.crafting_progress are supposed to work on CraftingMachine, but they trigger error on Furnaces.
Is it a bug, or a missing feature ? It would be nice to have these values on furnaces too, because they are crafting a lot of things too.
Last edited by binbinhfr on Thu Jul 14, 2016 12:36 pm, edited 1 time in total.
My mods on the Factorio Mod Portal :geek:

User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 5151
Joined: Sun Jan 11, 2015 2:09 pm
Contact:

Re: [0.13.8] is_crafting and furnaces ?

Post by Klonan »

binbinhfr wrote:Hi,

entity.is_crafting() and entity.crafting_progress are supposed to work on CraftingMachine, but they trigger error on Furnaces.
Is it a bug, or a missing feature ? It would be nice to have these values on furnaces too, because they are crafting a lot of things too.
Well the docs state it only works for crafting machine, so i will move this to modding interface requests :)

Rseding91
Factorio Staff
Factorio Staff
Posts: 13235
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Add is_crafting() for furnaces

Post by Rseding91 »

What are you talking about? They work perfectly on furnaces. I just tested both of them and everything reports correct values.
If you want to get ahold of me I'm almost always on Discord.

User avatar
binbinhfr
Smart Inserter
Smart Inserter
Posts: 1524
Joined: Sat Feb 27, 2016 7:37 pm
Contact:

Re: Add is_crafting() for furnaces

Post by binbinhfr »

Ooops, sorry guys, it was a typo in my code... It works indeed.
My mods on the Factorio Mod Portal :geek:

Post Reply

Return to “Already exists”