2017-02-03 08:22:31 +01:00
|
|
|
-- internationalization boilerplate
|
|
|
|
local MP = minetest.get_modpath(minetest.get_current_modname())
|
|
|
|
local S, NS = dofile(MP.."/intllib.lua")
|
2015-02-10 07:15:16 +01:00
|
|
|
|
2017-02-01 04:11:12 +01:00
|
|
|
if minetest.get_modpath("farming") then
|
|
|
|
minetest.register_craft({
|
|
|
|
output = 'ropes:ropesegment',
|
|
|
|
recipe = {
|
|
|
|
{'farming:cotton',},
|
|
|
|
{'farming:cotton',},
|
|
|
|
{'farming:cotton'}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
end
|
2015-02-10 07:15:16 +01:00
|
|
|
|
2017-02-01 03:53:16 +01:00
|
|
|
minetest.register_craftitem("ropes:ropesegment", {
|
2017-02-03 08:22:31 +01:00
|
|
|
description = S("Rope Segment"),
|
2017-02-01 03:53:16 +01:00
|
|
|
_doc_items_longdesc = ropes.doc.ropesegment_longdesc,
|
|
|
|
_doc_items_usagehelp = ropes.doc.ropesegment_usage,
|
2017-02-01 04:32:40 +01:00
|
|
|
groups = {vines = 1},
|
2017-02-01 03:53:16 +01:00
|
|
|
inventory_image = "ropes_item.png",
|
2015-02-10 07:15:16 +01:00
|
|
|
})
|
2017-02-01 03:53:16 +01:00
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "ropes:ropeladder_top",
|
|
|
|
recipe = {
|
2017-02-02 06:19:32 +01:00
|
|
|
{'group:vines','group:stick','group:vines'},
|
|
|
|
{'group:vines','group:stick','group:vines'},
|
2017-02-01 03:53:16 +01:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "ropes:1rope_block",
|
|
|
|
recipe = {
|
2017-02-02 06:19:32 +01:00
|
|
|
{'group:wood',},
|
2017-02-01 04:32:40 +01:00
|
|
|
{'group:vines',},
|
|
|
|
{'group:vines'}
|
2017-02-01 03:53:16 +01:00
|
|
|
}
|
2017-02-01 04:32:40 +01:00
|
|
|
})
|