From 5d1bb3a8e82b14903acaf609af8937dd050adcb2 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Sat, 21 Jan 2017 14:32:23 +0100 Subject: [PATCH] Fix TNT being undiggable, fix TNT drop --- API.md | 1 + mods/tnt/init.lua | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/API.md b/API.md index 086eb3216..aabdf5015 100644 --- a/API.md +++ b/API.md @@ -51,6 +51,7 @@ These groups are used mostly for informational purposes * `compass`: Compass (rating doesn't matter) * `rail=1`: Rail * `music_record`: Music Disc (rating is track ID) +* `tnt=1`: Block is TNT * `boat=1`: Boat * `minecart=1`: Minecart * `food`: Item is a comestible item which can be consumed (healthy or unhealthy) diff --git a/mods/tnt/init.lua b/mods/tnt/init.lua index 8e2ebaf5a..e34dc082f 100644 --- a/mods/tnt/init.lua +++ b/mods/tnt/init.lua @@ -42,10 +42,10 @@ minetest.register_node("tnt:tnt", { tiles = {"default_tnt_top.png", "default_tnt_bottom.png", "default_tnt_side.png", "default_tnt_side.png", "default_tnt_side.png", "default_tnt_side.png"}, - drop = '', -- Get nothing is_ground_content = false, stack_max = 64, description = "TNT", + groups = { dig_immediate = 3, tnt = 1, }, mesecons = {effector = { action_on = tnt.ignite }},