From 9c8e4b3484e60da59df5779a416d262c68df00f8 Mon Sep 17 00:00:00 2001 From: Vanessa Ezekowitz Date: Sat, 12 Oct 2013 06:09:50 -0400 Subject: Add alternate recipe for asphalt if building_blocks mod is present --- asphalt/init.lua | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) (limited to 'asphalt/init.lua') diff --git a/asphalt/init.lua b/asphalt/init.lua index 8c1c1a3..19fabe1 100644 --- a/asphalt/init.lua +++ b/asphalt/init.lua @@ -7,9 +7,21 @@ minetest.register_node(":streets:asphalt",{ groups = {cracky=3} }) -minetest.register_craft({ - type = "cooking", - output = "streets:asphalt", - recipe = "default:gravel", - cooktime = 2 -}) \ No newline at end of file +if minetest.get_modpath("building_blocks") then + minetest.register_craft({ + type = "shapeless", + output = "streets:asphalt 3", + recipe = { + "default:sand", + "default:gravel", + "building_blocks:Tar" + }, + }) +else + minetest.register_craft({ + type = "cooking", + output = "streets:asphalt", + recipe = "default:gravel", + cooktime = 2 + }) +end -- cgit v1.2.3