lua - result - results - construction

Things that already exist in the current mod API
YuokiTani
Smart Inserter
Smart Inserter
Posts: 1037
Joined: Thu May 08, 2014 7:57 pm
Contact:

lua - result - results - construction

Post by YuokiTani »

a lua-construction like
results = { {type="item", name="y-boiler-iv", amount=1,}, {type="item", name="y_rwtechsign", amount=2,}, },
will remove ingame recipe description box/line and entity-stats

results = { {type="item", name="y-boiler-iv", amount=1,}, },
show the ingame recipe-description and entity-stats

i understand this, because the game needs to decide which stats from these 2 items/entitys to show ...
maybe it's possible to refer only to the first item and take from this the entity-name as recipe-name and more importend the stats.
User avatar
Arch666Angel
Smart Inserter
Smart Inserter
Posts: 1636
Joined: Sun Oct 18, 2015 11:52 am
Contact:

Re: lua - result - results - construction

Post by Arch666Angel »

I think if you don't set the main_product it always shows the recipes description and name. If you set main_product it will show the name and description of said item.
User avatar
bobingabout
Smart Inserter
Smart Inserter
Posts: 7352
Joined: Fri May 09, 2014 1:01 pm
Contact:

Re: lua - result - results - construction

Post by bobingabout »

Yeah, basically...

result= will use the item on result's name.
results= will use the recipe's name.
results= with main_product= will use the name of the item on main_product.
Creator of Bob's mods. Expanding your gameplay since version 0.9.8.
I also have a Patreon.
YuokiTani
Smart Inserter
Smart Inserter
Posts: 1037
Joined: Thu May 08, 2014 7:57 pm
Contact:

Re: lua - result - results - construction

Post by YuokiTani »

looks like working now ...

so done !
Post Reply

Return to “Already exists”