From ee8073eed1f684d2866798b68c160f28a3aa7d21 Mon Sep 17 00:00:00 2001 From: archfan <33993466+archfan7411@users.noreply.github.com> Date: Tue, 5 Mar 2019 07:44:14 -0500 Subject: [PATCH] Add killnode --- mods/ctf/ctf_map/nodes.lua | 14 ++++++++++++++ mods/ctf/ctf_map/textures/ctf_map_killnode.png | Bin 0 -> 206 bytes 2 files changed, 14 insertions(+) create mode 100644 mods/ctf/ctf_map/textures/ctf_map_killnode.png diff --git a/mods/ctf/ctf_map/nodes.lua b/mods/ctf/ctf_map/nodes.lua index 5a59b19..b5e4ed5 100644 --- a/mods/ctf/ctf_map/nodes.lua +++ b/mods/ctf/ctf_map/nodes.lua @@ -735,6 +735,20 @@ minetest.register_node("ctf_map:meselamp", { light_source = default.LIGHT_MAX, }) +minetest.register_node("ctf_map:killnode", { + description = "Kill Node", + drawtype = "glasslike", + tiles = {"ctf_map_killnode.png"}, + paramtype = "light", + sunlight_propogates = true, + walkable = false, + pointable = false, + damage_per_second = 20, + is_ground_content = false, + groups = {immortal = 1}, + sounds = default.node_sound_glass_defaults(), +}) + -- Re-register all nodes from stairs and wool for name, nodedef in pairs(minetest.registered_nodes) do if name:find("stairs") then diff --git a/mods/ctf/ctf_map/textures/ctf_map_killnode.png b/mods/ctf/ctf_map/textures/ctf_map_killnode.png new file mode 100644 index 0000000000000000000000000000000000000000..c67f91887d490444ceef86be65b4a463d249210c GIT binary patch literal 206 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`Y)RhkE(~QLn07kvH&BGLz$3Dl zfk96hgc&QA+Lr+Z*-JcqUD+Qq3NVQaXr29Q4-}Ftag8W(&d<$F%`0JWE=o--Nlj5G z&n(GMaQE~L2yf&Q2P!i2ba4!^IGz0G|NsB>Y(U@!1Z+YKKJrbDYzti8YbdBr;cPXz ooMFH_ZN(xNec_#L2fi>cC_AY?GBjw80Ghzy>FVdQ&MBb@00-kZYXATM literal 0 HcmV?d00001