This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- 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 |