From 3bb4dddc2123d64845a335e2f8ac17b359978802 Mon Sep 17 00:00:00 2001 From: sodomite <72042055+sodomite@users.noreply.github.com> Date: Fri, 12 Mar 2021 18:10:39 +0000 Subject: [PATCH] Add indestructible papyrus (#776) * Add indestructible papyrus * Update nodes.lua * Update nodes.lua * Update nodes.lua * Update nodes.lua --- mods/ctf/ctf_map/ctf_map_core/nodes.lua | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/mods/ctf/ctf_map/ctf_map_core/nodes.lua b/mods/ctf/ctf_map/ctf_map_core/nodes.lua index 601cadc..c446752 100644 --- a/mods/ctf/ctf_map/ctf_map_core/nodes.lua +++ b/mods/ctf/ctf_map/ctf_map_core/nodes.lua @@ -424,6 +424,25 @@ do sounds = default.node_sound_leaves_defaults() }) + minetest.register_node(":ctf_map:papyrus", { + description = "Indestructible Papyrus", + drawtype = "plantlike", + tiles = {"default_papyrus.png"}, + inventory_image = "default_papyrus.png", + wield_image = "default_papyrus.png", + paramtype = "light", + sunlight_propagates = true, + walkable = false, + selection_box = { + type = "fixed", + fixed = {-6 / 16, -0.5, -6 / 16, 6 / 16, 0.5, 6 / 16}, + }, + groups = {immortal = 1}, + sounds = default.node_sound_leaves_defaults(), + after_dig_node = function(pos, node, metadata, digger) + default.dig_up(pos, node, digger) + end, + }) minetest.register_node(":ctf_map:jungletree", { description = "Indestructible Jungle Tree",