From b3ba41e9114e326c62c3ab5ed424ecfa3a0e7b30 Mon Sep 17 00:00:00 2001 From: octacian Date: Thu, 30 Jun 2016 12:03:12 -0700 Subject: [PATCH] air nodes --- init.lua | 1 + nodes.lua | 105 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 106 insertions(+) create mode 100644 nodes.lua diff --git a/init.lua b/init.lua index dccc459..ba699ec 100644 --- a/init.lua +++ b/init.lua @@ -19,5 +19,6 @@ dofile(modpath.."/privs.lua") dofile(modpath.."/genesis.lua") dofile(modpath.."/misc.lua") dofile(modpath.."/filter.lua") +dofile(modpath.."/nodes.lua") servertools.log("[ServerTools] Enabled Modules Loaded!") --print to log enabled modules loaded diff --git a/nodes.lua b/nodes.lua new file mode 100644 index 0000000..dd451f2 --- /dev/null +++ b/nodes.lua @@ -0,0 +1,105 @@ +-- servertools/nodes.lua + +-- normal air +minetest.register_node("servertools:air", { + drawtype = "airlike", + description = "[ServerTools] Air", + paramtype = "light", + sunlight_propagates = true, + buildable_to = true, + pointable = false, + walkable = false, + diggable = false, + groups = {not_in_creative_inventory = 1}, +}) + +-- pointable air +minetest.register_node("servertools:air_pointable", { + drawtype = "airlike", + description = "[Pointable] Air", + paramtype = "light", + sunlight_propagates = true, + buildable_to = true, + pointable = true, + walkable = false, + diggable = false, + groups = {not_in_creative_inventory = 1}, +}) + +-- no build air +minetest.register_node("servertools:air_nobuild", { + drawtype = "airlike", + description = "[No Build] Air", + paramtype = "light", + sunlight_propagates = true, + buildable_to = false, + pointable = false, + walkable = false, + diggable = false, + groups = {not_in_creative_inventory = 1}, +}) + +-- pointable no build air +minetest.register_node("servertools:air_nobuild_pointable", { + drawtype = "airlike", + description = "[Pointable, No Build] Air", + paramtype = "light", + sunlight_propagates = true, + buildable_to = false, + pointable = true, + walkable = false, + diggable = false, + groups = {not_in_creative_inventory = 1}, +}) + +-- solid air +minetest.register_node("servertools:air_solid", { + drawtype = "airlike", + description = "Solid Air", + paramtype = "light", + sunlight_propagates = true, + buildable_to = true, + pointable = false, + walkable = true, + diggable = false, + groups = {not_in_creative_inventory = 1}, +}) + +-- pointable solid air +minetest.register_node("servertools:air_solid_pointable", { + drawtype = "airlike", + description = "[Pointable] Solid Air", + paramtype = "light", + sunlight_propagates = true, + buildable_to = true, + pointable = true, + walkable = true, + diggable = false, + groups = {not_in_creative_inventory = 1}, +}) + +-- no build solid air +minetest.register_node("servertools:air_solid_nobuild", { + drawtype = "airlike", + description = "[No Build] Solid Air", + paramtype = "light", + sunlight_propagates = true, + buildable_to = false, + pointable = false, + walkable = true, + diggable = false, + groups = {not_in_creative_inventory = 1}, +}) + +-- pointable no build solid air +minetest.register_node("servertools:air_solid_nobuild_pointable", { + drawtype = "airlike", + description = "[Pointable, No Build] Solid Air", + paramtype = "light", + sunlight_propagates = true, + buildable_to = false, + pointable = true, + walkable = true, + diggable = false, + groups = {not_in_creative_inventory = 1}, +})