2015-01-12 00:21:33 +03:00
|
|
|
--[[
|
2015-01-12 19:46:22 +03:00
|
|
|
More Blocks: redefinitions of default stuff
|
2015-01-12 00:21:33 +03:00
|
|
|
|
|
|
|
Copyright (c) 2011-2015 Calinou and contributors.
|
|
|
|
Licensed under the zlib license. See LICENSE.md for more information.
|
|
|
|
--]]
|
|
|
|
|
2014-05-29 21:36:28 +04:00
|
|
|
-- Redefinitions of some default crafting recipes:
|
2013-07-11 22:33:02 +04: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({
|
2014-06-27 22:14:08 +04:00
|
|
|
output = "default:ladder 4",
|
2013-07-11 22:33:02 +04:00
|
|
|
recipe = {
|
|
|
|
{"default:stick", "", "default:stick"},
|
|
|
|
{"default:stick", "default:stick", "default:stick"},
|
|
|
|
{"default:stick", "", "default:stick"},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
2014-06-27 22:14:08 +04:00
|
|
|
output = "default:paper 4",
|
2013-07-11 22:33:02 +04:00
|
|
|
recipe = {
|
|
|
|
{"default:papyrus", "default:papyrus", "default:papyrus"},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
2015-01-23 21:07:41 +03:00
|
|
|
output = "default:rail 24",
|
2013-07-11 22:33:02 +04:00
|
|
|
recipe = {
|
|
|
|
{"default:steel_ingot", "", "default:steel_ingot"},
|
|
|
|
{"default:steel_ingot", "default:stick", "default:steel_ingot"},
|
|
|
|
{"default:steel_ingot", "", "default:steel_ingot"},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "toolrepair",
|
2015-06-10 20:05:15 +03:00
|
|
|
additional_wear = -0.10, -- Tool repair buff (10% bonus instead of 2%).
|
2013-07-11 22:33:02 +04:00
|
|
|
})
|
|
|
|
|
2015-01-23 21:07:41 +03:00
|
|
|
-- Redefinitions of some default nodes
|
|
|
|
-- ===================================
|
2014-05-01 19:43:01 +04:00
|
|
|
|
2014-05-29 21:36:28 +04:00
|
|
|
-- Let there be light. This makes some nodes let light pass through:
|
2014-03-09 13:38:18 +04:00
|
|
|
minetest.override_item("default:ladder", {
|
2013-07-11 22:33:02 +04:00
|
|
|
paramtype = "light",
|
|
|
|
sunlight_propagates = true,
|
|
|
|
})
|
|
|
|
|
2014-03-09 13:38:18 +04:00
|
|
|
minetest.override_item("default:sapling", {
|
2013-07-11 22:33:02 +04:00
|
|
|
paramtype = "light",
|
|
|
|
sunlight_propagates = true,
|
|
|
|
})
|
|
|
|
|
2014-03-09 13:38:18 +04:00
|
|
|
minetest.override_item("default:dry_shrub", {
|
2013-07-11 22:33:02 +04:00
|
|
|
paramtype = "light",
|
|
|
|
sunlight_propagates = true,
|
|
|
|
})
|
|
|
|
|
2014-03-09 13:38:18 +04:00
|
|
|
minetest.override_item("default:papyrus", {
|
2013-07-11 22:33:02 +04:00
|
|
|
paramtype = "light",
|
|
|
|
sunlight_propagates = true,
|
|
|
|
})
|
|
|
|
|
2014-03-09 13:38:18 +04:00
|
|
|
minetest.override_item("default:fence_wood", {
|
2013-07-11 22:33:02 +04:00
|
|
|
paramtype = "light",
|
|
|
|
sunlight_propagates = true,
|
|
|
|
})
|
|
|
|
|
2014-03-09 13:38:18 +04:00
|
|
|
minetest.override_item("default:junglegrass", {
|
|
|
|
paramtype = "light",
|
2013-07-11 22:33:02 +04:00
|
|
|
sunlight_propagates = true,
|
2014-03-09 13:38:18 +04:00
|
|
|
})
|
|
|
|
|
|
|
|
minetest.override_item("default:junglesapling", {
|
2013-07-11 22:33:02 +04:00
|
|
|
paramtype = "light",
|
2014-03-09 13:38:18 +04:00
|
|
|
sunlight_propagates = true,
|
2013-07-11 22:33:02 +04:00
|
|
|
})
|
2013-08-27 20:05:35 +04:00
|
|
|
|
2014-03-09 13:38:18 +04:00
|
|
|
minetest.override_item("default:grass_1", {
|
2014-05-29 21:36:28 +04:00
|
|
|
inventory_image = "default_grass_3.png", -- Use a bigger inventory image.
|
2013-08-27 20:05:35 +04:00
|
|
|
wield_image = "default_grass_3.png",
|
|
|
|
paramtype = "light",
|
|
|
|
sunlight_propagates = true,
|
|
|
|
})
|
|
|
|
|
2014-03-09 13:38:18 +04:00
|
|
|
for i = 2, 5 do
|
2014-07-21 14:24:49 +04:00
|
|
|
minetest.override_item("default:grass_" ..i, {
|
2013-08-27 20:05:35 +04:00
|
|
|
paramtype = "light",
|
|
|
|
sunlight_propagates = true,
|
|
|
|
})
|
|
|
|
end
|