From e6b5336bad80395c90e2aefa9ded9ac0b59f01dc Mon Sep 17 00:00:00 2001 From: Foz Date: Fri, 29 Dec 2017 14:30:05 -0500 Subject: [PATCH] Readd tar block. Fixes #103 The proper way to resolve the redundancy between `building_blocks:Tar` and `moreblocks:tar` is with an alias in building_blocks as noted in issue #68. The recipe conflict with streetsmod has been resolved by using `default:pine_tree` in place of `default:gravel`. This may also be more realistic than gravel as a source of tar because pine derived tar was once of major economic importance. --- aliases.lua | 1 - crafting.lua | 4 ++++ nodes.lua | 6 ++++++ 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/aliases.lua b/aliases.lua index 46781f7..5d93ae6 100644 --- a/aliases.lua +++ b/aliases.lua @@ -62,7 +62,6 @@ minetest.register_alias("moreblocks:wood_tile_left","moreblocks:wood_tile_up") minetest.register_alias("moreblocks:wood_tile_right","moreblocks:wood_tile_up") minetest.register_alias("moreblocks:empty_bookshelf","moreblocks:empty_shelf") minetest.register_alias("moreblocks:split_stone_tile_alt","moreblocks:checker_stone_tile") -minetest.register_alias("moreblocks:tar","default:gravel") -- ABM for horizontal trees (fix facedir): local horizontal_tree_convert_facedir = {7, 12, 9, 18} diff --git a/crafting.lua b/crafting.lua index 11e7b09..745899f 100644 --- a/crafting.lua +++ b/crafting.lua @@ -485,6 +485,10 @@ minetest.register_craft({ } }) +minetest.register_craft({ + type = "cooking", output = "moreblocks:tar", recipe = "default:pine_tree", +}) + minetest.register_craft({ type = "shapeless", output = "moreblocks:copperpatina", diff --git a/nodes.lua b/nodes.lua index b73ceb0..0fa49ac 100644 --- a/nodes.lua +++ b/nodes.lua @@ -113,6 +113,12 @@ local nodes = { is_ground_content = false, sounds = sound_stone, }, + ["tar"] = { + description = S("Tar"), + groups = {cracky=2, tar_block=1}, + is_ground_content = false, + sounds = sound_stone, + }, ["dirt_compressed"] = { description = S("Compressed Dirt"), groups = {crumbly=2},