summaryrefslogtreecommitdiff
path: root/asphalt/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'asphalt/init.lua')
-rw-r--r--asphalt/init.lua27
1 files changed, 27 insertions, 0 deletions
diff --git a/asphalt/init.lua b/asphalt/init.lua
new file mode 100644
index 0000000..958cfd5
--- /dev/null
+++ b/asphalt/init.lua
@@ -0,0 +1,27 @@
+--[[
+ Streets Mod: All kinds of asphalt
+]]
+minetest.register_node(":streets:asphalt",{
+ description = streets.S("Asphalt"),
+ tiles = {"streets_asphalt.png"},
+ groups = {cracky=3}
+})
+
+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