diff --git a/README.md b/README.md index 12a04f1..1de08e9 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,2 @@ -# light_systems -Airport Lighting Systems for Minetest +# airutils +Airport Utils for Minetest diff --git a/description.txt b/description.txt index 8939a74..5e33bbc 100644 --- a/description.txt +++ b/description.txt @@ -1 +1 @@ -Airport Lighting Systems for Minetest +Airport Utils for Minetest diff --git a/init.lua b/init.lua index 8491a78..c13283c 100644 --- a/init.lua +++ b/init.lua @@ -1,11 +1,11 @@ --- Minetest 5.4.1 : light_systems +-- Minetest 5.4.1 : airutils -light_systems = {} +airutils = {} -function light_systems.PAPIplace(player,pos) +function airutils.PAPIplace(player,pos) local dir = minetest.dir_to_facedir(player:get_look_dir()) local pos1 = vector.new(pos) - core.set_node(pos, {name="light_systems:papi", param2=dir}) + core.set_node(pos, {name="airutils:papi", param2=dir}) local player_name = player:get_player_name() local meta = core.get_meta(pos) meta:set_string("infotext", "PAPI\rOwned by: "..player_name) @@ -14,7 +14,7 @@ function light_systems.PAPIplace(player,pos) return true end -function light_systems.remove(pos) +function airutils.remove(pos) local meta = core.get_meta(pos) if meta:get_string("dont_destroy") == "true" then -- when swapping it @@ -22,32 +22,32 @@ function light_systems.remove(pos) end end -function light_systems.canDig(pos, player) +function airutils.canDig(pos, player) local meta = core.get_meta(pos) return meta:get_string("dont_destroy") ~= "true" and player:get_player_name() == meta:get_string("owner") end -light_systems.collision_box = { +airutils.collision_box = { type = "fixed", fixed={{-0.5,-0.5,-0.5,0.5,-0.42,0.5},}, } -light_systems.selection_box = { +airutils.selection_box = { type = "fixed", fixed={{-0.5,-0.5,-0.5,0.5,1.5,0.5},}, } -light_systems.groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2} +airutils.groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2} -minetest.register_node("light_systems:papi",{ +minetest.register_node("airutils:papi",{ description = "PAPI", inventory_image = "papi.png", wield_image = "papi.png", - tiles = {"light_systems_black.png", "light_systems_u_black.png", "light_systems_white.png", - "light_systems_metal.png", {name = "light_systems_red.png", backface_culling = true},}, - groups = light_systems.groups, + tiles = {"airutils_black.png", "airutils_u_black.png", "airutils_white.png", + "airutils_metal.png", {name = "airutils_red.png", backface_culling = true},}, + groups = airutils.groups, paramtype2 = "facedir", paramtype = "light", drawtype = "mesh", @@ -55,21 +55,21 @@ minetest.register_node("light_systems:papi",{ visual_scale = 1.0, light_source = 13, backface_culling = true, - selection_box = light_systems.selection_box, - collision_box = light_systems.collision_box, - can_dig = light_systems.canDig, + selection_box = airutils.selection_box, + collision_box = airutils.collision_box, + can_dig = airutils.canDig, _color = "", - on_destruct = light_systems.remove, + on_destruct = airutils.remove, on_place = function(itemstack, placer, pointed_thing) local pos = pointed_thing.above - if light_systems.PAPIplace(placer,pos)==true then + if airutils.PAPIplace(placer,pos)==true then itemstack:take_item(1) return itemstack else return end end, - --on_rightclick=light_systems.gateFormspecHandler, + --on_rightclick=airutils.gateFormspecHandler, on_punch = function(pos, node, puncher, pointed_thing) local player_name = puncher:get_player_name() local meta = core.get_meta(pos) diff --git a/mod.conf b/mod.conf index c34b858..bccfe93 100644 --- a/mod.conf +++ b/mod.conf @@ -1 +1 @@ -name = light_systems +name = airutils diff --git a/textures/light_systems_black.png b/textures/airutils_black.png similarity index 100% rename from textures/light_systems_black.png rename to textures/airutils_black.png diff --git a/textures/light_systems_form_bg.png b/textures/airutils_form_bg.png similarity index 100% rename from textures/light_systems_form_bg.png rename to textures/airutils_form_bg.png diff --git a/textures/light_systems_metal.png b/textures/airutils_metal.png similarity index 100% rename from textures/light_systems_metal.png rename to textures/airutils_metal.png diff --git a/textures/light_systems_red.png b/textures/airutils_red.png similarity index 100% rename from textures/light_systems_red.png rename to textures/airutils_red.png diff --git a/textures/light_transparent.png b/textures/airutils_transparent.png similarity index 100% rename from textures/light_transparent.png rename to textures/airutils_transparent.png diff --git a/textures/light_systems_u_black.png b/textures/airutils_u_black.png similarity index 100% rename from textures/light_systems_u_black.png rename to textures/airutils_u_black.png diff --git a/textures/light_systems_white.png b/textures/airutils_white.png similarity index 100% rename from textures/light_systems_white.png rename to textures/airutils_white.png