-- =================================================================== local sra = castle.sra local S = castle.S -- =================================================================== if minetest.get_modpath ("farming") then minetest.register_craft ({ output = "castle:ropesegment" , recipe = { { 'farming:cotton' , 'farming:cotton' } , { 'farming:cotton' , 'farming:cotton' } , { 'farming:cotton' , 'farming:cotton' } , } }) end -- =================================================================== minetest.register_craftitem ("castle:ropesegment", { description = S("Rope Segment"), _doc_items_longdesc = castle_ropes.doc.ropesegment_longdesc, _doc_items_usagehelp = castle_ropes.doc.ropesegment_usage, groups = { coderropes=1, vines=1 } , inventory_image = "ropes_item.png", }) -- =================================================================== local cotton_burn_time = 1 castle_ropes.wood_burn_time = minetest.get_craft_result ({method="fuel", width=1, items={ItemStack("default:wood")}}).time castle_ropes.rope_burn_time = cotton_burn_time * 6 local stick_burn_time = minetest.get_craft_result ({method="fuel", width=1, items={ItemStack("default:stick")}}).time castle_ropes.ladder_burn_time = castle_ropes.rope_burn_time * 2 + stick_burn_time * 3 -- =================================================================== minetest.register_craft ({ type = "fuel", recipe = "castle:ropesegment", burntime = castle_ropes.rope_burn_time, }) -- =================================================================== sra ( "ropes:ropesegment" , "castle:ropesegment" ) -- =================================================================== -- End of file.