From ee6d8451d2ad823c1e394b16e6eb3f4c72bee87e Mon Sep 17 00:00:00 2001 From: HimbeerserverDE Date: Mon, 1 Feb 2021 08:15:28 +0100 Subject: [PATCH 1/2] Flame arrows ignite TNT --- mods/ITEMS/mcl_bows/arrow.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mods/ITEMS/mcl_bows/arrow.lua b/mods/ITEMS/mcl_bows/arrow.lua index f69cfc09..ff687577 100644 --- a/mods/ITEMS/mcl_bows/arrow.lua +++ b/mods/ITEMS/mcl_bows/arrow.lua @@ -334,6 +334,10 @@ ARROW_ENTITY.on_step = function(self, dtime) minetest.sound_play({name="mcl_bows_hit_other", gain=0.3}, {pos=self.object:get_pos(), max_hear_distance=16}, true) + if mcl_burning.is_burning(self.object) and snode.name == "mcl_tnt:tnt" then + tnt.ignite(self._stuckin) + end + -- Push the button! Push, push, push the button! if mod_button and minetest.get_item_group(node.name, "button") > 0 and minetest.get_item_group(node.name, "button_push_by_arrow") == 1 then local bdir = minetest.wallmounted_to_dir(node.param2) From 18dd3ac9bd26f03b6b7892168aa1db02778536c1 Mon Sep 17 00:00:00 2001 From: Elias Fleckenstein Date: Wed, 3 Feb 2021 17:08:04 +0100 Subject: [PATCH 2/2] Add 'ice' group --- mods/ITEMS/mcl_core/nodes_base.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mods/ITEMS/mcl_core/nodes_base.lua b/mods/ITEMS/mcl_core/nodes_base.lua index 03581dfa..78e2f149 100644 --- a/mods/ITEMS/mcl_core/nodes_base.lua +++ b/mods/ITEMS/mcl_core/nodes_base.lua @@ -822,7 +822,7 @@ minetest.register_node("mcl_core:ice", { paramtype = "light", use_texture_alpha = translucent_ice, stack_max = 64, - groups = {handy=1,pickaxey=1, slippery=3, building_block=1}, + groups = {handy=1,pickaxey=1, slippery=3, building_block=1, ice=1}, drop = "", sounds = mcl_sounds.node_sound_glass_defaults(), node_dig_prediction = "mcl_core:water_source", @@ -840,7 +840,7 @@ minetest.register_node("mcl_core:packed_ice", { tiles = {"mcl_core_ice_packed.png"}, is_ground_content = true, stack_max = 64, - groups = {handy=1,pickaxey=1, slippery=3, building_block=1}, + groups = {handy=1,pickaxey=1, slippery=3, building_block=1, ice=1}, drop = "", sounds = mcl_sounds.node_sound_glass_defaults(), _mcl_blast_resistance = 0.5, @@ -888,7 +888,7 @@ for i=0,3 do paramtype = "light", use_texture_alpha = translucent_ice, stack_max = 64, - groups = {handy=1, frosted_ice=1, slippery=3, not_in_creative_inventory=1}, + groups = {handy=1, frosted_ice=1, slippery=3, not_in_creative_inventory=1, ice=1}, drop = "", sounds = mcl_sounds.node_sound_glass_defaults(), on_construct = function(pos)