get blueprint-book from library link

Place to get help with not working mods / modding interface.
Post Reply
Daeruun
Inserter
Inserter
Posts: 43
Joined: Thu May 04, 2017 8:37 pm
Contact:

get blueprint-book from library link

Post by Daeruun »

Hi there,

i'm just trying to fix a bug in my mod regarding blueprint-books that are stored in the library.

I try to get the blueprint-book that i have picked from my shortlink-bar in a lua script.
The following works correctly, if the book is stored in my inventory:

Code: Select all

local blueprint_book = player.cursor_stack
But if the book is stored in the library, i only get an

Code: Select all

<Empty LuaItemStack>
| "valid": true
| "valid_for_read": false
Is there another way to get to the actual blueprint book behind that?

Code: Select all

player.get_blueprint_entities()
seems to only return the active blueprint - but I'd like to get them all.
This also does not return the complete information stored in the blueprint...

Any help is welcome.

Post Reply

Return to “Modding help”