summaryrefslogtreecommitdiff
path: root/asphalt
diff options
context:
space:
mode:
authorChristian <Christian_D_97@gmx.de>2013-10-12 03:05:07 -0700
committerChristian <Christian_D_97@gmx.de>2013-10-12 03:05:07 -0700
commitd04d0c142f3826729c289ea52df1e85ad104dfdc (patch)
tree07f3c51ff8f4ca374ec8349ccabe613edbf7765a /asphalt
parentb1ac7abba79201778f60e1b4ec44f90ca1ed1ba4 (diff)
parent9c8e4b3484e60da59df5779a416d262c68df00f8 (diff)
downloadroads-d04d0c142f3826729c289ea52df1e85ad104dfdc.tar
roads-d04d0c142f3826729c289ea52df1e85ad104dfdc.tar.gz
roads-d04d0c142f3826729c289ea52df1e85ad104dfdc.tar.bz2
roads-d04d0c142f3826729c289ea52df1e85ad104dfdc.tar.xz
roads-d04d0c142f3826729c289ea52df1e85ad104dfdc.zip
Merge pull request #2 from VanessaE/master
Add alternate recipe for asphalt if building_blocks mod is present
Diffstat (limited to 'asphalt')
-rw-r--r--asphalt/init.lua24
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