Merge pull request #3 from FaceDeer/master

Make hemp usable as fuel
This commit is contained in:
pithydon 2017-10-04 11:14:21 -06:00 committed by GitHub
commit c71d4b6887

View File

@ -551,6 +551,40 @@ minetest.register_craft({
}
})
-- Fuel recipes
local fiber_burn_time = 2
minetest.register_craft({
type = "fuel",
recipe = "hemp:hemp_fiber",
burntime = fiber_burn_time,
})
minetest.register_craft({
type = "fuel",
recipe = "hemp:hemp_fabric",
burntime = fiber_burn_time * 4,
})
minetest.register_craft({
type = "fuel",
recipe = "hemp:hemp_rope",
burntime = fiber_burn_time * 3,
})
minetest.register_craft({
type = "fuel",
recipe = "hemp:hemp_rope_fence",
burntime = fiber_burn_time * 6,
})
minetest.register_craft({
type = "fuel",
recipe = "hemp:hemp_rug",
burntime = fiber_burn_time * 12,
})
-- mapgen
if minetest.setting_getbool("enable_hemp_mapgen") ~= false then
local mg_params = minetest.get_mapgen_params()