Which is confusing to me, since stack is never specified for canplaceentity (though it is for createentity on the next line). The name parameter is simply "item-on-ground", and the position table I pass to it is just a pair of xy coordinates. Even when I put a pair of coordinates directly into the table, like so:
Code: Select all
if game.canplaceentity{name = "item-on-ground", position = {x = -29.14, y = -9.75}} then
And should I mark the item-on-ground as player/neutral force when it's created? Would it affect anything if I left it as the default (enemy) value?