Placing items on the ground
-
- Filter Inserter
- Posts: 402
- Joined: Fri May 23, 2014 8:54 am
- Contact:
Placing items on the ground
Is it possible to place items on the ground? I want to overflow from the players inventory if it is full. I thought i read it in the wiki but I have searched with no luck.
Re: Placing items on the ground
Yes, you need to create a "item-on-ground" entity:
Code: Select all
game.createentity{name="item-on-ground", position={x,y}, stack={name="whatever item you want to place", count=amount}
-
- Filter Inserter
- Posts: 402
- Joined: Fri May 23, 2014 8:54 am
- Contact:
Re: Placing items on the ground
Thanks for that, that's exactly what i needed. I also now know where I saw how to do it originally, in the code for your mod, which I used to learn the basics of the modding API. My wagons mod even has a resources folder because f-mod does.... so thanks for that also
EDIT: This if your fault...
EDIT: This if your fault...
