moreblocks/redefinitions.lua
2014-03-09 10:38:18 +01:00

136 lines
2.8 KiB
Lua

-- Redefinitions of some default crafting recipes
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", ""},
}
})
-- Tool repair buff (15% bonus instead of 2%)
minetest.register_craft({
type = "toolrepair",
additional_wear = -0.15,
})
-- Redefinitions of some default nodes
-- Don't bother overriding nodes if minetest.override_item isn't available
if minetest.override_item then
if moreblocks.config.wood_facedir then
minetest.override_item("default:wood", {
paramtype2 = "facedir",
})
end
-- Let there be light!
minetest.override_item("default:ladder", {
paramtype = "light",
sunlight_propagates = true,
})
minetest.override_item("default:sapling", {
paramtype = "light",
sunlight_propagates = true,
})
minetest.override_item("default:dry_shrub", {
paramtype = "light",
sunlight_propagates = true,
})
minetest.override_item("default:papyrus", {
paramtype = "light",
sunlight_propagates = true,
})
minetest.override_item("default:fence_wood", {
paramtype = "light",
sunlight_propagates = true,
})
minetest.override_item("default:junglegrass", {
paramtype = "light",
sunlight_propagates = true,
})
minetest.override_item("default:junglesapling", {
paramtype = "light",
sunlight_propagates = true,
})
minetest.override_item("default:grass_1", {
-- Use a bigger inventory image
inventory_image = "default_grass_3.png",
wield_image = "default_grass_3.png",
paramtype = "light",
sunlight_propagates = true,
})
for i = 2, 5 do
minetest.override_item("default:grass_"..i, {
paramtype = "light",
sunlight_propagates = true,
})
end
end -- End if minetest.override_item