When trying to place the item, I want to run this script:
Code: Select all
spawncoords = game.findnoncollidingposition("small-biter", game.player.character.position, 10, 1)
game.createentity{name = "small-biter", position = spawncoords, force = game.player.character.force}