Page 1 of 1

Placing items on the ground

Posted: Mon Jun 09, 2014 9:38 am
by JamesOFarrell
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

Posted: Mon Jun 09, 2014 2:31 pm
by ficolas
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}

Re: Placing items on the ground

Posted: Mon Jun 09, 2014 11:03 pm
by JamesOFarrell
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... :D