From da9ab8ec15aa6bd6a9bdf84e2e573d377a7ccdd5 Mon Sep 17 00:00:00 2001 From: Jak R Date: Fri, 8 Jun 2018 23:35:28 +0100 Subject: [PATCH] Add ind_dirt and ind_dirt_with_grass --- mods/ctf_map/nodes.lua | 32 +++++++++++++++++++++++++++----- 1 file changed, 27 insertions(+), 5 deletions(-) diff --git a/mods/ctf_map/nodes.lua b/mods/ctf_map/nodes.lua index 5e0bf26..5529f6b 100644 --- a/mods/ctf_map/nodes.lua +++ b/mods/ctf_map/nodes.lua @@ -1,5 +1,5 @@ minetest.register_node("ctf_map:ignore", { - description = "MyAir (you hacker you!)", + description = "Artificial Ignore", -- this may need to be given a more appropriate name drawtype = "airlike", paramtype = "light", sunlight_propagates = true, @@ -13,7 +13,7 @@ minetest.register_node("ctf_map:ignore", { }) minetest.register_node("ctf_map:ind_glass", { - description = "You cheater you!", + description = "Indestructible Glass", drawtype = "glasslike_framed_optional", tiles = {"default_glass.png", "default_glass_detail.png"}, inventory_image = minetest.inventorycube("default_glass.png"), @@ -28,21 +28,43 @@ minetest.register_node("ctf_map:ind_glass", { }) minetest.register_node("ctf_map:ind_stone", { - description = "Cheater!", + description = "Indestructible Stone", groups = {immortal = 1}, tiles = {"default_stone.png"}, is_ground_content = false }) +minetest.register_node("ctf_map:ind_dirt", { + description = "Indestructible Dirt", + groups = {immortal = 1}, + tiles = {"default_dirt.png"}, + is_ground_content = false, + sounds = default.node_sound_dirt_defaults({ + footstep = {name = "default_grass_footstep", gain = 0.25} + }), +}) + +minetest.register_node("ctf_map:ind_dirt_with_grass", { + description = "Indestructible Dirt with Grass", + groups = {immortal = 1}, + tiles = {"default_grass.png", "default_dirt.png", + {name = "default_dirt.png^default_grass_side.png", + tileable_vertical = false}}, + is_ground_content = false, + sounds = default.node_sound_dirt_defaults({ + footstep = {name = "default_grass_footstep", gain = 0.25}, + }), +}) + minetest.register_node("ctf_map:ind_stone_red", { - description = "Cheater!", + description = "Indestructible Red Stone", groups = {immortal = 1}, tiles = {"ctf_map_stone_red.png"}, is_ground_content = false }) minetest.register_node("ctf_map:ind_glass_red", { - description = "You cheater you!", + description = "Indestructible Red Glass", drawtype = "glasslike", tiles = {"ctf_map_glass_red.png"}, inventory_image = minetest.inventorycube("default_glass.png"),