Re: Killing spawned monsters
Posted: Mon Oct 22, 2012 2:02 pm
This actually doesn't look bad. It destroys the cube object, and then immediately spawn a metal_junk_block in the same location. If you want you can add some effects and sounds to make it a bit more convincing. I think I'm going to use this for now.
Code: Select all
function killCube()
for i in entitiesAt(1,6,14) do
if i.name == "cube"
then
i:destroy()
spawn("metal_junk_block", 1, 6, 14, 2, "cube_junk")
end
end
end