Read access to Blueprint Book inventory_size

User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3749
Joined: Tue May 13, 2014 11:06 am
Contact:

Read access to Blueprint Book inventory_size

Post by DaveMcW »

/c game.player.print(game.item_prototypes["blueprint-book"].inventory_size)

Error: LuaItemPrototype doesn't contain key inventory_size. :cry:


My use case: I want to automatically craft a blueprint book filled with blueprints, but only if the player has enough advanced circuits to afford it. Currently I don't know how many advanced circuits I need until I craft a blueprint book!
User avatar
binbinhfr
Smart Inserter
Smart Inserter
Posts: 1525
Joined: Sat Feb 27, 2016 7:37 pm
Contact:

Re: Read access to Blueprint Book inventory_size

Post by binbinhfr »

The blueprint book recipe ingredients depends on its inventory size ? Weird.

I don't know if it helps, but it seems that the blueprint book inventory can be accessed here :
http://lua-api.factorio.com/latest/defines.html
item_main and item_active
My mods on the Factorio Mod Portal :geek:
Post Reply

Return to “Implemented mod requests”