aboutsummaryrefslogtreecommitdiff
path: root/advtrains_luaautomation
ModeNameSize
-rw-r--r--README.md23077logplain
-rw-r--r--active_common.lua6052logplain
-rwxr-xr-xatc_rail.lua9187logplain
-rw-r--r--chatcmds.lua4713logplain
-rw-r--r--environment.lua10916logplain
-rw-r--r--init.lua3343logplain
-rw-r--r--interrupt.lua1428logplain
-rw-r--r--mesecon_controller.lua7788logplain
-rw-r--r--mod.conf228logplain
-rwxr-xr-xoperation_panel.lua685logplain
-rw-r--r--p_display.lua0logplain
-rw-r--r--passive_api.txt720logplain
-rw-r--r--pcnaming.lua2654logplain
d---------textures498logplain
["_2"] = { node_box = { type = "fixed", fixed = {-0.5, -0.5, 0, 0, -0.375, 0.5}, }, }, ["_4"] = { node_box = { type = "fixed", fixed = {-0.5, -0.5, 0, 0, -0.25, 0.5}, }, }, ["_12"] = { node_box = { type = "fixed", fixed = {-0.5, -0.5, 0, 0, 0.25, 0.5}, }, }, ["_14"] = { node_box = { type = "fixed", fixed = {-0.5, -0.5, 0, 0, 0.375, 0.5}, }, }, ["_15"] = { node_box = { type = "fixed", fixed = {-0.5, -0.5, 0, 0, 0.4375, 0.5}, }, } } local desc = S("%s Microblock"):format(fields.description) for alternate, def in pairs(defs) do def.drawtype = "nodebox" def.paramtype = "light" def.paramtype2 = "facedir" def.on_place = minetest.rotate_node for k, v in pairs(fields) do def[k] = v end def.description = desc if fields.drop then def.drop = modname.. ":micro_" ..fields.drop..alternate end minetest.register_node(":" ..modname.. ":micro_" ..subname..alternate, def) end minetest.register_alias(modname.. ":micro_" ..subname.. "_bottom", modname.. ":micro_" ..subname) -- Some saw-less recipes: minetest.register_craft({ type = "shapeless", output = modname .. ":micro_" .. subname .. " 7", recipe = {modname .. ":stair_" .. subname .. "_inner"}, }) minetest.register_craft({ output = modname .. ":micro_" .. subname .. " 6", type = "shapeless", recipe = {modname .. ":stair_" .. subname}, }) minetest.register_craft({ type = "shapeless", output = modname .. ":micro_" .. subname .. " 5", recipe = {modname .. ":stair_" .. subname .. "_outer"}, }) minetest.register_craft({ type = "shapeless", output = modname .. ":micro_" .. subname .. " 4", recipe = {modname .. ":slab_" .. subname}, }) minetest.register_craft({ type = "shapeless", output = modname .. ":micro_" .. subname .. " 2", recipe = {modname .. ":panel_" .. subname}, }) minetest.register_craft({ type = "shapeless", output = recipeitem,