[christmas] init.lua: Load craft recipes after item/node registration.

master
AntumDeluge 2016-09-05 05:04:39 -07:00
parent 6297b6e4d0
commit 703d3dc2de
1 changed files with 85 additions and 83 deletions

View File

@ -1,86 +1,3 @@
-- Crafting
minetest.register_craft({
output = '"christmas:ligs" 5',
recipe = {
{"christmas:slig"},
{"christmas:slig"},
{"christmas:slig"},
}
})
minetest.register_craft({
output = '"christmas:stoc" 5',
recipe = {
{"christmas:orn"},
{"christmas:slig"},
{"christmas:slig"},
}
})
minetest.register_craft({
output = '"christmas:gar" 5',
recipe = {
{"default:leaves"},
{"default:leaves"},
}
})
minetest.register_craft({
output = '"christmas:slig" 4',
recipe = {
{"default:coal_lump"},
{"default:leaves"},
}
})
minetest.register_craft({
output = '"christmas:orn" 10',
recipe = {
{"default:glass", "default:steel_ingot", "default:glass"},
{"default:glass", "default:cactus", "default:glass"},
{"default:glass", "default:glass", "default:glass"},
}
})
minetest.register_craft({
output = '"christmas:tee" 4',
recipe = {
{"default:mese"},
{"wool:white"},
}
})
minetest.register_craft({
output = '"christmas:rwool" 4',
recipe = {
{"default:leaves"},
{"wool:white"},
}
})
minetest.register_craft({
output = '"christmas:bwool" 4',
recipe = {
{"default:cactus"},
{"wool:white"},
}
})
minetest.register_craft({
output = '"christmas:t" 4',
recipe = {
{"christmas:orn"},
{"default:leaves"},
}
})
minetest.register_craft({
output = '"christmas:star" 1',
recipe = {
{"default:mese", "default:mese", "default:mese"},
{"default:mese", "default:mese", "default:mese"},
{"default:mese", "default:mese", "default:mese"},
}
})
minetest.register_craft({
output = '"christmas:fire" 1',
recipe = {
{"default:gravel", "default:leaves", "default:gravel"},
}
})
-- Blocks
minetest.register_node("christmas:wool", {
@ -280,6 +197,91 @@ minetest.register_node("christmas:orn", {
groups = {choppy=2,dig_immediate=2},
furnace_burntime = 4,
})
-- Crafting
minetest.register_craft({
output = '"christmas:ligs" 5',
recipe = {
{"christmas:slig"},
{"christmas:slig"},
{"christmas:slig"},
}
})
minetest.register_craft({
output = '"christmas:stoc" 5',
recipe = {
{"christmas:orn"},
{"christmas:slig"},
{"christmas:slig"},
}
})
minetest.register_craft({
output = '"christmas:gar" 5',
recipe = {
{"default:leaves"},
{"default:leaves"},
}
})
minetest.register_craft({
output = '"christmas:slig" 4',
recipe = {
{"default:coal_lump"},
{"default:leaves"},
}
})
minetest.register_craft({
output = '"christmas:orn" 10',
recipe = {
{"default:glass", "default:steel_ingot", "default:glass"},
{"default:glass", "default:cactus", "default:glass"},
{"default:glass", "default:glass", "default:glass"},
}
})
minetest.register_craft({
output = '"christmas:tee" 4',
recipe = {
{"default:mese"},
{"wool:white"},
}
})
minetest.register_craft({
output = '"christmas:rwool" 4',
recipe = {
{"default:leaves"},
{"wool:white"},
}
})
minetest.register_craft({
output = '"christmas:bwool" 4',
recipe = {
{"default:cactus"},
{"wool:white"},
}
})
minetest.register_craft({
output = '"christmas:t" 4',
recipe = {
{"christmas:orn"},
{"default:leaves"},
}
})
minetest.register_craft({
output = '"christmas:star" 1',
recipe = {
{"default:mese", "default:mese", "default:mese"},
{"default:mese", "default:mese", "default:mese"},
{"default:mese", "default:mese", "default:mese"},
}
})
minetest.register_craft({
output = '"christmas:fire" 1',
recipe = {
{"default:gravel", "default:leaves", "default:gravel"},
}
})
-- end
-- return false
-- end,