From e9343d9d56f039c425c291c361a70d8f5f4023b7 Mon Sep 17 00:00:00 2001 From: ANAND Date: Sat, 16 May 2020 15:06:25 +0530 Subject: [PATCH] Add not_in_creative_inventory to barrier nodes Also improve item descriptions of barrier nodes --- mods/ctf/ctf_map/ctf_map_core/nodes.lua | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/mods/ctf/ctf_map/ctf_map_core/nodes.lua b/mods/ctf/ctf_map/ctf_map_core/nodes.lua index e95414a..601cadc 100644 --- a/mods/ctf/ctf_map/ctf_map_core/nodes.lua +++ b/mods/ctf/ctf_map/ctf_map_core/nodes.lua @@ -15,7 +15,7 @@ do }) minetest.register_node(":ctf_map:ind_glass", { - description = "Indestructible Glass", + description = "Indestructible Barrier Glass", drawtype = "glasslike_framed_optional", tiles = {"default_glass.png", "default_glass_detail.png"}, inventory_image = minetest.inventorycube("default_glass.png"), @@ -25,12 +25,12 @@ do walkable = true, buildable_to = false, pointable = false, - groups = {immortal = 1}, + groups = {immortal = 1, not_in_creative_inventory = 1}, sounds = default.node_sound_glass_defaults() }) minetest.register_node(":ctf_map:ind_glass_red", { - description = "Indestructible Red Glass", + description = "Indestructible Red Barrier Glass", drawtype = "glasslike", tiles = {"ctf_map_glass_red.png"}, inventory_image = minetest.inventorycube("ctf_map_glass_red.png"), @@ -42,13 +42,13 @@ do use_texture_alpha = false, alpha = 0, pointable = false, - groups = {immortal = 1}, + groups = {immortal = 1, not_in_creative_inventory = 1}, sounds = default.node_sound_glass_defaults() }) minetest.register_node(":ctf_map:ind_stone_red", { - description = "Indestructible Red Stone", - groups = {immortal = 1}, + description = "Indestructible Red Barrier Stone", + groups = {immortal = 1, not_in_creative_inventory = 1}, tiles = {"ctf_map_stone_red.png"}, is_ground_content = false })