diff options
author | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2013-10-12 06:09:50 -0400 |
---|---|---|
committer | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2013-10-12 06:09:50 -0400 |
commit | 9c8e4b3484e60da59df5779a416d262c68df00f8 (patch) | |
tree | 07f3c51ff8f4ca374ec8349ccabe613edbf7765a | |
parent | b1ac7abba79201778f60e1b4ec44f90ca1ed1ba4 (diff) | |
download | roads-9c8e4b3484e60da59df5779a416d262c68df00f8.tar roads-9c8e4b3484e60da59df5779a416d262c68df00f8.tar.gz roads-9c8e4b3484e60da59df5779a416d262c68df00f8.tar.bz2 roads-9c8e4b3484e60da59df5779a416d262c68df00f8.tar.xz roads-9c8e4b3484e60da59df5779a416d262c68df00f8.zip |
Add alternate recipe for asphalt if building_blocks mod is present
-rw-r--r-- | asphalt/init.lua | 24 |
1 files changed, 18 insertions, 6 deletions
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 |