Refactor mcl_doors; use multiple files
This commit is contained in:
parent
f22411656b
commit
2ffa0736ac
6 changed files with 864 additions and 793 deletions
60
mods/ITEMS/mcl_doors/crafting.lua
Normal file
60
mods/ITEMS/mcl_doors/crafting.lua
Normal file
|
@ -0,0 +1,60 @@
|
|||
-- Trapdoor crafting
|
||||
|
||||
minetest.register_craft({
|
||||
output = 'mcl_doors:trapdoor 2',
|
||||
recipe = {
|
||||
{'group:wood', 'group:wood', 'group:wood'},
|
||||
{'group:wood', 'group:wood', 'group:wood'},
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
minetest.register_craft({
|
||||
output = 'mcl_doors:iron_trapdoor',
|
||||
recipe = {
|
||||
{'mcl_core:iron_ingot', 'mcl_core:iron_ingot'},
|
||||
{'mcl_core:iron_ingot', 'mcl_core:iron_ingot'},
|
||||
}
|
||||
})
|
||||
|
||||
-- Note: Door crafting is already done by door registration function
|
||||
|
||||
|
||||
-- Fuel
|
||||
|
||||
minetest.register_craft({
|
||||
type = "fuel",
|
||||
recipe = "mcl_doors:wooden_door",
|
||||
burntime = 10,
|
||||
})
|
||||
minetest.register_craft({
|
||||
type = "fuel",
|
||||
recipe = "mcl_doors:jungle_door",
|
||||
burntime = 10,
|
||||
})
|
||||
minetest.register_craft({
|
||||
type = "fuel",
|
||||
recipe = "mcl_doors:dark_oak_door",
|
||||
burntime = 10,
|
||||
})
|
||||
minetest.register_craft({
|
||||
type = "fuel",
|
||||
recipe = "mcl_doors:birch_door",
|
||||
burntime = 10,
|
||||
})
|
||||
minetest.register_craft({
|
||||
type = "fuel",
|
||||
recipe = "mcl_doors:acacia_door",
|
||||
burntime = 10,
|
||||
})
|
||||
minetest.register_craft({
|
||||
type = "fuel",
|
||||
recipe = "mcl_doors:spruce_door",
|
||||
burntime = 10,
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "fuel",
|
||||
recipe = "mcl_doors:trapdoor",
|
||||
burntime = 15,
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue