summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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