summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHume2 <teratux.mail@gmail.com>2018-08-30 09:10:13 +0200
committerHume2 <teratux.mail@gmail.com>2018-08-30 09:10:13 +0200
commit95403b81b087d9666a4d914ba889f8c04af6ef56 (patch)
tree8855675748105ad5c77bea3cbf288e50b92a4661
parent5d245f2d6ea022b9713e2d37eb209bbd678ebd64 (diff)
Add a recipe for bike1.0
-rw-r--r--init.lua49
-rw-r--r--textures/bike_handles.pngbin0 -> 241 bytes
-rw-r--r--textures/bike_wheel.pngbin0 -> 643 bytes
3 files changed, 40 insertions, 9 deletions
diff --git a/init.lua b/init.lua
index 9df4680..90a9a2b 100644
--- a/init.lua
+++ b/init.lua
@@ -246,18 +246,49 @@ minetest.register_craftitem("bike:bike", {
end,
})
+minetest.register_craftitem("bike:wheel", {
+ description = "Bike Wheel",
+ inventory_image = "bike_wheel.png",
+})
---[[minetest.register_craft({
- output = "bike:bike",
+minetest.register_craftitem("bike:handles", {
+ description = "Bike Handles",
+ inventory_image = "bike_handles.png",
+})
+
+if minetest.get_modpath("technic") ~= nil then
+ minetest.register_craft({
+ output = "bike:wheel 2",
+ recipe = {
+ {"", "technic:rubber", ""},
+ {"technic:rubber", "default:steel_ingot", "technic:rubber"},
+ {"", "technic:rubber", ""},
+ },
+ })
+else
+ minetest.register_craft({
+ output = "bike:wheel 2",
+ recipe = {
+ {"", "group:wood", ""},
+ {"group:wood", "default:steel_ingot", "group:wood"},
+ {"", "group:wood", ""},
+ },
+ })
+end
+
+minetest.register_craft({
+ output = "bike:handles",
recipe = {
- {"", "", "" },
- {"group:wood", "", "group:wood"},
- {"group:wood", "group:wood", "group:wood"},
+ {"default:steel_ingot", "default:steel_ingot", "default:steel_ingot"},
+ {"group:wood", "", "group:wood"},
},
})
minetest.register_craft({
- type = "fuel",
- recipe = "bike:bike",
- burntime = 20,
-})--]]
+ output = "bike:bike",
+ recipe = {
+ {"bike:handles", "", "group:wood"},
+ {"default:steel_ingot", "default:steel_ingot", "default:steel_ingot"},
+ {"bike:wheel", "", "bike:wheel"},
+ },
+})
diff --git a/textures/bike_handles.png b/textures/bike_handles.png
new file mode 100644
index 0000000..4115c95
--- /dev/null
+++ b/textures/bike_handles.png
Binary files differ
diff --git a/textures/bike_wheel.png b/textures/bike_wheel.png
new file mode 100644
index 0000000..90eeef0
--- /dev/null
+++ b/textures/bike_wheel.png
Binary files differ