mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-12-25 18:20:36 +01:00
97 lines
2.2 KiB
Lua
97 lines
2.2 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 4",
|
||
|
recipe = {
|
||
|
{"default:stick", "", "default:stick"},
|
||
|
{"default:stick", "default:stick", "default:stick"},
|
||
|
{"default:stick", "", "default:stick"},
|
||
|
}
|
||
|
})
|
||
|
|
||
|
minetest.register_craft({
|
||
|
output = "default:paper 4",
|
||
|
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({
|
||
|
type = "toolrepair",
|
||
|
additional_wear = -0.15, -- Tool repair buff (15% bonus instead of 2%).
|
||
|
})
|
||
|
|
||
|
-- Redefinitions of some default nodes:
|
||
|
|
||
|
-- Make glass and obsidian glass framed, like the More Blocks glasses:
|
||
|
minetest.override_item("default:glass", {
|
||
|
drawtype = "glasslike_framed",
|
||
|
})
|
||
|
|
||
|
minetest.override_item("default:obsidian_glass", {
|
||
|
drawtype = "glasslike_framed",
|
||
|
})
|
||
|
|
||
|
-- Let there be light. This makes some nodes let light pass through:
|
||
|
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:junglegrass", {
|
||
|
paramtype = "light",
|
||
|
sunlight_propagates = true,
|
||
|
})
|
||
|
|
||
|
minetest.override_item("default:junglesapling", {
|
||
|
paramtype = "light",
|
||
|
sunlight_propagates = true,
|
||
|
})
|
||
|
|
||
|
minetest.override_item("default:grass_1", {
|
||
|
inventory_image = "default_grass_3.png", -- Use a bigger inventory image.
|
||
|
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
|