2014-05-29 19:36:28 +02:00
|
|
|
-- Redefinitions of some default crafting recipes:
|
2013-07-11 20:33:02 +02:00
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "default:sign_wall 4",
|
|
|
|
recipe = {
|
|
|
|
{"default:wood", "default:wood", "default:wood"},
|
|
|
|
{"default:wood", "default:wood", "default:wood"},
|
|
|
|
{"", "default:stick", ""},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "default:ladder 3",
|
|
|
|
recipe = {
|
|
|
|
{"default:stick", "", "default:stick"},
|
|
|
|
{"default:stick", "default:stick", "default:stick"},
|
|
|
|
{"default:stick", "", "default:stick"},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "default:paper 3",
|
|
|
|
recipe = {
|
|
|
|
{"default:papyrus", "default:papyrus", "default:papyrus"},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "default:rail 16",
|
|
|
|
recipe = {
|
|
|
|
{"default:steel_ingot", "", "default:steel_ingot"},
|
|
|
|
{"default:steel_ingot", "default:stick", "default:steel_ingot"},
|
|
|
|
{"default:steel_ingot", "", "default:steel_ingot"},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "default:axe_wood",
|
|
|
|
recipe = {
|
|
|
|
{"default:wood", "default:wood"},
|
|
|
|
{"default:stick", "default:wood"},
|
|
|
|
{"default:stick", ""},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "default:axe_stone",
|
|
|
|
recipe = {
|
|
|
|
{"default:cobble", "default:cobble"},
|
|
|
|
{"default:stick", "default:cobble"},
|
|
|
|
{"default:stick", ""},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "default:axe_steel",
|
|
|
|
recipe = {
|
|
|
|
{"default:steel_ingot", "default:steel_ingot"},
|
|
|
|
{"default:stick", "default:steel_ingot"},
|
|
|
|
{"default:stick", ""},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "toolrepair",
|
2014-05-29 19:36:28 +02:00
|
|
|
additional_wear = -0.15, -- Tool repair buff (15% bonus instead of 2%).
|
2013-07-11 20:33:02 +02:00
|
|
|
})
|
|
|
|
|
2014-05-29 19:36:28 +02:00
|
|
|
-- Redefinitions of some default nodes:
|
2013-07-11 20:33:02 +02:00
|
|
|
|
2014-06-02 19:26:56 +02:00
|
|
|
-- Don't bother overriding nodes if minetest.override_item isn't available.
|
|
|
|
if minetest.override_item then
|
2013-07-11 20:33:02 +02:00
|
|
|
|
2014-03-09 10:38:18 +01:00
|
|
|
if moreblocks.config.wood_facedir then
|
|
|
|
minetest.override_item("default:wood", {
|
|
|
|
paramtype2 = "facedir",
|
|
|
|
})
|
2014-06-02 19:26:56 +02:00
|
|
|
minetest.override_item("default:junglewood", {
|
|
|
|
paramtype2 = "facedir",
|
|
|
|
})
|
2014-05-29 19:36:28 +02:00
|
|
|
minetest.override_item("default:brick", {
|
|
|
|
paramtype2 = "facedir",
|
|
|
|
})
|
2014-06-03 18:38:05 +02:00
|
|
|
minetest.override_item("default:stonebrick", {
|
|
|
|
paramtype2 = "facedir",
|
|
|
|
})
|
|
|
|
minetest.override_item("default:desert_stonebrick", {
|
|
|
|
paramtype2 = "facedir",
|
|
|
|
})
|
|
|
|
minetest.override_item("default:sandstonebrick", {
|
|
|
|
paramtype2 = "facedir",
|
|
|
|
})
|
2014-06-02 19:26:56 +02:00
|
|
|
minetest.override_item("moreblocks:cactus_brick", {
|
|
|
|
paramtype2 = "facedir",
|
|
|
|
})
|
2014-06-03 18:38:05 +02:00
|
|
|
minetest.override_item("moreblocks:coal_stone_bricks", {
|
|
|
|
paramtype2 = "facedir",
|
|
|
|
})
|
|
|
|
minetest.override_item("moreblocks:iron_stone_bricks", {
|
|
|
|
paramtype2 = "facedir",
|
|
|
|
})
|
2013-07-11 20:33:02 +02:00
|
|
|
end
|
|
|
|
|
2014-05-29 19:36:28 +02:00
|
|
|
-- Make glass and obsidian glass framed, like the More Blocks glasses:
|
2014-05-01 17:43:01 +02:00
|
|
|
|
|
|
|
minetest.override_item("default:glass", {
|
|
|
|
drawtype = "glasslike_framed",
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.override_item("default:obsidian_glass", {
|
|
|
|
drawtype = "glasslike_framed",
|
|
|
|
})
|
|
|
|
|
2014-05-29 19:36:28 +02:00
|
|
|
-- Let there be light. This makes some nodes let light pass through:
|
2014-03-09 10:38:18 +01:00
|
|
|
|
|
|
|
minetest.override_item("default:ladder", {
|
2013-07-11 20:33:02 +02:00
|
|
|
paramtype = "light",
|
|
|
|
sunlight_propagates = true,
|
|
|
|
})
|
|
|
|
|
2014-03-09 10:38:18 +01:00
|
|
|
minetest.override_item("default:sapling", {
|
2013-07-11 20:33:02 +02:00
|
|
|
paramtype = "light",
|
|
|
|
sunlight_propagates = true,
|
|
|
|
})
|
|
|
|
|
2014-03-09 10:38:18 +01:00
|
|
|
minetest.override_item("default:dry_shrub", {
|
2013-07-11 20:33:02 +02:00
|
|
|
paramtype = "light",
|
|
|
|
sunlight_propagates = true,
|
|
|
|
})
|
|
|
|
|
2014-03-09 10:38:18 +01:00
|
|
|
minetest.override_item("default:papyrus", {
|
2013-07-11 20:33:02 +02:00
|
|
|
paramtype = "light",
|
|
|
|
sunlight_propagates = true,
|
|
|
|
})
|
|
|
|
|
2014-03-09 10:38:18 +01:00
|
|
|
minetest.override_item("default:fence_wood", {
|
2013-07-11 20:33:02 +02:00
|
|
|
paramtype = "light",
|
|
|
|
sunlight_propagates = true,
|
|
|
|
})
|
|
|
|
|
2014-03-09 10:38:18 +01:00
|
|
|
minetest.override_item("default:junglegrass", {
|
|
|
|
paramtype = "light",
|
2013-07-11 20:33:02 +02:00
|
|
|
sunlight_propagates = true,
|
2014-03-09 10:38:18 +01:00
|
|
|
})
|
|
|
|
|
|
|
|
minetest.override_item("default:junglesapling", {
|
2013-07-11 20:33:02 +02:00
|
|
|
paramtype = "light",
|
2014-03-09 10:38:18 +01:00
|
|
|
sunlight_propagates = true,
|
2013-07-11 20:33:02 +02:00
|
|
|
})
|
2013-08-27 18:05:35 +02:00
|
|
|
|
2014-03-09 10:38:18 +01:00
|
|
|
minetest.override_item("default:grass_1", {
|
2014-05-29 19:36:28 +02:00
|
|
|
inventory_image = "default_grass_3.png", -- Use a bigger inventory image.
|
2013-08-27 18:05:35 +02:00
|
|
|
wield_image = "default_grass_3.png",
|
|
|
|
paramtype = "light",
|
|
|
|
sunlight_propagates = true,
|
|
|
|
})
|
|
|
|
|
2014-03-09 10:38:18 +01:00
|
|
|
for i = 2, 5 do
|
|
|
|
minetest.override_item("default:grass_"..i, {
|
2013-08-27 18:05:35 +02:00
|
|
|
paramtype = "light",
|
|
|
|
sunlight_propagates = true,
|
|
|
|
})
|
|
|
|
end
|
2014-03-09 10:38:18 +01:00
|
|
|
|
2014-05-29 19:36:28 +02:00
|
|
|
end -- End "if minetest.override_item".
|
2014-03-09 10:38:18 +01:00
|
|
|
|