mirror of
https://github.com/minetest-mods/ropes.git
synced 2024-11-30 19:33:54 +01:00
make everything flammable
This commit is contained in:
parent
646e0566f6
commit
0be6c8d95a
49
crafts.lua
49
crafts.lua
@ -37,3 +37,52 @@ minetest.register_craft({
|
|||||||
{'group:vines'}
|
{'group:vines'}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
local cotton_burn_time = 3
|
||||||
|
local wood_burn_time = minetest.get_craft_result({method="fuel", width=1, items={ItemStack("default:wood")}}).time
|
||||||
|
local rope_burn_time = cotton_burn_time * 3
|
||||||
|
local rope_box_burn_time = wood_burn_time + rope_burn_time * 2
|
||||||
|
local stick_burn_time = minetest.get_craft_result({method="fuel", width=1, items={ItemStack("default:stick")}}).time
|
||||||
|
local ladder_burn_time = rope_burn_time * 2 + stick_burn_time * 2
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
type = "fuel",
|
||||||
|
recipe = "ropes:ropesegment",
|
||||||
|
burntime = rope_burn_time,
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
type = "fuel",
|
||||||
|
recipe = "ropes:1rope_block",
|
||||||
|
burntime = rope_box_burn_time,
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
type = "fuel",
|
||||||
|
recipe = "ropes:2rope_block",
|
||||||
|
burntime = rope_box_burn_time * 2,
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
type = "fuel",
|
||||||
|
recipe = "ropes:3rope_block",
|
||||||
|
burntime = rope_box_burn_time * 3,
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
type = "fuel",
|
||||||
|
recipe = "ropes:4rope_block",
|
||||||
|
burntime = rope_box_burn_time * 4,
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
type = "fuel",
|
||||||
|
recipe = "ropes:5rope_block",
|
||||||
|
burntime = rope_box_burn_time * 5,
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
type = "fuel",
|
||||||
|
recipe = "ropes:ropeladder_top",
|
||||||
|
burntime = ladder_burn_time,
|
||||||
|
})
|
Loading…
Reference in New Issue
Block a user