Drop items on ground

Place to get help with not working mods / modding interface.
Post Reply
matjojo
Filter Inserter
Filter Inserter
Posts: 337
Joined: Wed Jun 17, 2015 6:08 pm
Contact:

Drop items on ground

Post by matjojo »

I am working on EE2.
I am at this scenario:
the user has the whole energy condenser(it's a container) full as well as his inventory and he has an item in hand(different as the item I need to add).
so, I want to drop the item on the ground.

I looked around on the wiki in the game, player, and the inventory sections. also just a general search, but found nothing.

how do I do this?

Outsider
Fast Inserter
Fast Inserter
Posts: 115
Joined: Sat Jan 10, 2015 12:23 am
Contact:

Re: Drop items on ground

Post by Outsider »

You can use surface.spill_item_stack it takes an item stack and a position as parameters.

https://forums.factorio.com/wiki/inde ... item_stack
Advanced Logistics System - Provides a detailed view of your logistics network and the items within it

TimmPure
Burner Inserter
Burner Inserter
Posts: 18
Joined: Tue Sep 08, 2015 9:29 pm
Contact:

Re: Drop items on ground

Post by TimmPure »

I'm not sure I understand the question correctly, but dropping an item on the floor from your cursor is Z by default. Is that what you're looking for?

matjojo
Filter Inserter
Filter Inserter
Posts: 337
Joined: Wed Jun 17, 2015 6:08 pm
Contact:

Re: Drop items on ground

Post by matjojo »

TimmPure wrote:I'm not sure I understand the question correctly, but dropping an item on the floor from your cursor is Z by default. Is that what you're looking for?
no, I was talking about a way to drop items from a mod, like in code.

Post Reply

Return to “Modding help”