Add method 'sneaker.spawn' to spawn entity
This commit is contained in:
@@ -12,3 +12,9 @@ function sneeker.log_debug(message)
|
|||||||
sneeker.log('[DEBUG] ' .. message)
|
sneeker.log('[DEBUG] ' .. message)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- Spawns a sneaker entity
|
||||||
|
function sneeker.spawn(pos)
|
||||||
|
minetest.add_entity(pos, sneeker.mob_name)
|
||||||
|
sneeker.log_debug('Spawned entity "' .. sneeker.mob_name .. '" at ' .. tostring(pos.x) .. ',' .. tostring(pos.y))
|
||||||
|
end
|
||||||
|
Reference in New Issue
Block a user