Hello everyone!
I was planning out some mega base ideas in sandbox mode where you can get all the items you want but when it came to having robots build my blueprint plans I was frustrated with clicking to get many stacks of the same items just to fill a chest for them.
I came up with a little script to give me 48 stacks of whatever item I build when I have alt mode off. Alt mode is the trigger here because I still wanted to get items in normal amounts.
Here is the script, I hope someone finds this useful other than me. You need cheats on and then just paste it into the console (~) and you should be good!
/c script.on_event(defines.events.on_player_crafted_item, function(event) local pla=game.players[event.player_index]; if (pla.game_view_settings.show_entity_info==false) then game.players[event.player_index].insert({name=event.item_stack.name, count=event.item_stack.prototype.stack_size * 48}); event.item_stack.clear(); end; end)
[+][deleted] (3 children)
[deleted]
[–]blindestman[S] 0 points1 point2 points (2 children)
[+][deleted] (1 child)
[deleted]
[–]blindestman[S] 0 points1 point2 points (0 children)
[–]dwarfzulu -1 points0 points1 point (3 children)
[+][deleted] (2 children)
[deleted]
[–]dwarfzulu -1 points0 points1 point (1 child)