Add method 'sneeker.get_pos_string':
Returns x, y, z coordinates in a string.
This commit is contained in:
committed by
Jordan Irwin
parent
21d78e0b65
commit
fe42ca01db
@@ -23,3 +23,8 @@ 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
|
||||
|
||||
-- Retrieves pos coordinates in string value
|
||||
function sneeker.get_pos_string(pos)
|
||||
return 'x=' .. tostring(pos.x) .. ', y=' .. tostring(pos.y) .. ', z=' .. tostring(pos.z)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user