summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2018-06-12 16:13:24 +0100
committerTenPlus1 <kinsellaja@yahoo.com>2018-06-12 16:13:24 +0100
commit709f037ae72e11182be223e7681b5df6bf6b552c (patch)
treef8d9bef5437d23f08991fca2c51e23b8ca8e532a
parent8f3f32d6a657f90c50db688189105a22652f2e5b (diff)
add stairs for straw and hemp block
-rw-r--r--crops/hemp.lua17
-rw-r--r--crops/wheat.lua17
-rw-r--r--depends.txt1
3 files changed, 35 insertions, 0 deletions
diff --git a/crops/hemp.lua b/crops/hemp.lua
index 34dd56d..dd49134 100644
--- a/crops/hemp.lua
+++ b/crops/hemp.lua
@@ -111,6 +111,23 @@ minetest.register_craft( {
},
})
+-- register stairs
+if stairs and stairs.mod and stairs.mod == "redo" then
+
+stairs.register_all("hemp_block", "farming:hemp_block",
+ {snappy = 1, flammable = 2},
+ {"farming_hemp_block.png"},
+ "Hemp Block",
+ default.node_sound_leaves_defaults())
+else
+
+stairs.register_stair_and_slab("hemp_block", "farming:hemp_block",
+ {snappy = 1, flammable = 2},
+ {"farming_hemp_block.png"},
+ "Hemp Block",
+ default.node_sound_leaves_defaults())
+end
+
-- paper
minetest.register_craft( {
output = "default:paper",
diff --git a/crops/wheat.lua b/crops/wheat.lua
index 68296cc..d53c33e 100644
--- a/crops/wheat.lua
+++ b/crops/wheat.lua
@@ -51,6 +51,23 @@ minetest.register_craft({
}
})
+if stairs and stairs.mod and stairs.mod == "redo" then
+
+stairs.register_all("straw", "farming:straw",
+ {snappy = 3, flammable = 4},
+ {"farming_straw.png"},
+ "Straw",
+ default.node_sound_leaves_defaults())
+else
+
+stairs.register_stair_and_slab("straw", "farming:straw",
+ {snappy = 3, flammable = 4},
+ {"farming_straw.png"},
+ "Straw Stair",
+ "Straw Slab",
+ default.node_sound_leaves_defaults())
+end
+
-- flour
minetest.register_craftitem("farming:flour", {
description = S("Flour"),
diff --git a/depends.txt b/depends.txt
index 9a747d1..935ab1b 100644
--- a/depends.txt
+++ b/depends.txt
@@ -1,4 +1,5 @@
default
+stairs
intllib?
lucky_block?
toolranks?