From 1096fb1b421cc8dd97503b5772b6e62de3ba0394 Mon Sep 17 00:00:00 2001 From: David G Date: Wed, 24 Jun 2020 18:21:53 -0700 Subject: [PATCH] Add additional gunpowder recipe using quarry:gravel. --- falling_nodes.lua | 13 ++++++++++++- mod.conf | 1 + 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/falling_nodes.lua b/falling_nodes.lua index 64ffd1b..d12d38e 100644 --- a/falling_nodes.lua +++ b/falling_nodes.lua @@ -7,8 +7,9 @@ -- -- In addition, digging gravel now drops quarry:gravel, which doesn't drop flint. -- That way, player can't just keep redigging their gravel inventory to get more flints. --- 2020-06-13 +-- 2020-06-24 +-- Only check for flint drop one time. minetest.override_item("default:gravel", { groups = {crumbly = 3, falling_node = 1}, drop = { @@ -20,6 +21,7 @@ minetest.override_item("default:gravel", { } }) +-- Replacement gravel that doesn't drop flint. minetest.register_node("quarry:gravel", { description = ("Gravel"), tiles = {"quarry_gravel.png"}, @@ -27,6 +29,15 @@ minetest.register_node("quarry:gravel", { sounds = default.node_sound_gravel_defaults(), }) +-- Add additional gunpowder recipe that uses quarry:gravel. +if minetest.get_modpath("tnt") ~= nil then + minetest.register_craft({ + output = "tnt:gunpowder 5", + type = "shapeless", + recipe = {"default:coal_lump", "quarry:gravel"} + }) +end + -- Make dirt nodes also falling. minetest.override_item("default:dirt", { diff --git a/mod.conf b/mod.conf index 2b741e5..d526fe6 100644 --- a/mod.conf +++ b/mod.conf @@ -1,3 +1,4 @@ name = quarry description = Adds quarry mechanics to stone nodes. depends = default, bucket, stairs, stonebrick_dungeons +optional_depends = tnt