Skip to content

Instantly share code, notes, and snippets.

@Jordach
Jordach / init.lua.txt
Created June 12, 2012 15:48 — forked from anonymous/init.lua.txt
init.lua
-- Simple logging mod
local path = minetest.get_modpath("log").."/data/"
-- returns block coordinates containing [pos] node
local function convert_position(pos)
return {x = math.floor(pos.x / 16), y = math.floor(pos.y / 16), z = math.floor(pos.z / 16)}
end
local function filename(pos, short)
if short == true then