mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2025-04-01 10:10:36 +02:00
Updated moreblocks mod
- Removed copies of license, merge conflicts' garbage - Added warnings about modifications made by us
This commit is contained in:
parent
c72b671dd8
commit
03669d8168
@ -1,14 +0,0 @@
|
|||||||
zlib license
|
|
||||||
============
|
|
||||||
|
|
||||||
Copyright (c) 2011-2015 Calinou and contributors
|
|
||||||
|
|
||||||
**This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software.**
|
|
||||||
|
|
||||||
Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions:
|
|
||||||
|
|
||||||
1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required.
|
|
||||||
|
|
||||||
2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
|
|
||||||
|
|
||||||
3. This notice may not be removed or altered from any source distribution.
|
|
@ -26,6 +26,7 @@ minetest.register_craft({
|
|||||||
{"default:stick", "default:stick", "default:stick"},
|
{"default:stick", "default:stick", "default:stick"},
|
||||||
{"default:stick", "default:stick", "default:stick"},
|
{"default:stick", "default:stick", "default:stick"},
|
||||||
{"default:stick", "default:stick", "default:stick"}
|
{"default:stick", "default:stick", "default:stick"}
|
||||||
|
-- MODIFICATION MADE FOR MFF ^
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -443,11 +444,12 @@ minetest.register_craft({
|
|||||||
recipe = {
|
recipe = {
|
||||||
{"default:cobble"},
|
{"default:cobble"},
|
||||||
{"default:cobble"},
|
{"default:cobble"},
|
||||||
|
-- MODIFICATION MADE FOR MFF
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "default:cobble 2",
|
output = "default:cobble 2", -- MODIFICATION MADE FOR MFF
|
||||||
recipe = {
|
recipe = {
|
||||||
{"moreblocks:cobble_compressed"},
|
{"moreblocks:cobble_compressed"},
|
||||||
}
|
}
|
||||||
@ -457,6 +459,7 @@ minetest.register_craft({
|
|||||||
type = "cooking", output = "moreblocks:tar", recipe = "default:gravel",
|
type = "cooking", output = "moreblocks:tar", recipe = "default:gravel",
|
||||||
})
|
})
|
||||||
|
|
||||||
|
if minetest.setting_getbool("moreblocks.circular_saw_crafting") ~= false then -- “If nil or true then”
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "moreblocks:circular_saw",
|
output = "moreblocks:circular_saw",
|
||||||
recipe = {
|
recipe = {
|
||||||
@ -465,3 +468,4 @@ minetest.register_craft({
|
|||||||
{ "group:wood", "", "group:wood"},
|
{ "group:wood", "", "group:wood"},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
end
|
||||||
|
@ -46,7 +46,9 @@ minetest.register_craft({
|
|||||||
additional_wear = -0.15, -- Tool repair buff (15% bonus instead of 2%).
|
additional_wear = -0.15, -- Tool repair buff (15% bonus instead of 2%).
|
||||||
})
|
})
|
||||||
|
|
||||||
-- Redefinitions of some default nodes:
|
-- Redefinitions of some default nodes
|
||||||
|
-- ===================================
|
||||||
|
|
||||||
-- Let there be light. This makes some nodes let light pass through:
|
-- Let there be light. This makes some nodes let light pass through:
|
||||||
minetest.override_item("default:ladder", {
|
minetest.override_item("default:ladder", {
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
|
@ -35,6 +35,7 @@ local default_nodes = { -- Default stairs/slabs/panels/microblocks:
|
|||||||
for _, name in pairs(default_nodes) do
|
for _, name in pairs(default_nodes) do
|
||||||
local nodename = "default:" .. name
|
local nodename = "default:" .. name
|
||||||
local ndef = minetest.registered_nodes[nodename]
|
local ndef = minetest.registered_nodes[nodename]
|
||||||
|
if ndef then
|
||||||
local groups = {}
|
local groups = {}
|
||||||
for k, v in pairs(ndef.groups)
|
for k, v in pairs(ndef.groups)
|
||||||
-- Ignore wood and stone groups to not make them usable in crafting:
|
-- Ignore wood and stone groups to not make them usable in crafting:
|
||||||
@ -55,4 +56,5 @@ for _, name in pairs(default_nodes) do
|
|||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
@ -22,51 +22,22 @@ end
|
|||||||
|
|
||||||
function stairsplus:register_slab(modname, subname, recipeitem, fields)
|
function stairsplus:register_slab(modname, subname, recipeitem, fields)
|
||||||
local defs = {
|
local defs = {
|
||||||
[""] = {
|
[""] = 8,
|
||||||
node_box = {
|
["_quarter"] = 4,
|
||||||
type = "fixed",
|
["_three_quarter"] = 12,
|
||||||
fixed = {-0.5, -0.5, -0.5, 0.5, 0, 0.5},
|
["_1"] = 1,
|
||||||
},
|
["_2"] = 2,
|
||||||
},
|
["_14"] = 14,
|
||||||
["_quarter"] = {
|
["_15"] = 15,
|
||||||
node_box = {
|
}
|
||||||
type = "fixed",
|
local desc_base = S("%s Slab"):format(fields.description)
|
||||||
fixed = {-0.5, -0.5, -0.5, 0.5, -0.25, 0.5},
|
for alternate, num in pairs(defs) do
|
||||||
},
|
local def = {
|
||||||
},
|
node_box = {
|
||||||
["_three_quarter"] = {
|
type = "fixed",
|
||||||
node_box = {
|
fixed = {-0.5, -0.5, -0.5, 0.5, (num/16)-0.5, 0.5},
|
||||||
type = "fixed",
|
}
|
||||||
fixed = {-0.5, -0.5, -0.5, 0.5, 0.25, 0.5},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
["_1"] = {
|
|
||||||
node_box = {
|
|
||||||
type = "fixed",
|
|
||||||
fixed = {-0.5, -0.5, -0.5, 0.5, -0.4375, 0.5},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
["_2"] = {
|
|
||||||
node_box = {
|
|
||||||
type = "fixed",
|
|
||||||
fixed = {-0.5, -0.5, -0.5, 0.5, -0.375, 0.5},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
["_14"] = {
|
|
||||||
node_box = {
|
|
||||||
type = "fixed",
|
|
||||||
fixed = {-0.5, -0.5, -0.5, 0.5, 0.375, 0.5},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
["_15"] = {
|
|
||||||
node_box = {
|
|
||||||
type = "fixed",
|
|
||||||
fixed = {-0.5, -0.5, -0.5, 0.5, 0.4375, 0.5},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
local desc = S("%s Slab"):format(fields.description)
|
|
||||||
for alternate, def in pairs(defs) do
|
|
||||||
def.drawtype = "nodebox"
|
def.drawtype = "nodebox"
|
||||||
def.paramtype = "light"
|
def.paramtype = "light"
|
||||||
def.paramtype2 = "facedir"
|
def.paramtype2 = "facedir"
|
||||||
@ -74,7 +45,7 @@ function stairsplus:register_slab(modname, subname, recipeitem, fields)
|
|||||||
for k, v in pairs(fields) do
|
for k, v in pairs(fields) do
|
||||||
def[k] = v
|
def[k] = v
|
||||||
end
|
end
|
||||||
def.description = desc
|
def.description = ("%s (%d/16)"):format(desc_base, num)
|
||||||
if fields.drop then
|
if fields.drop then
|
||||||
def.drop = modname.. ":slab_" .. fields.drop .. alternate
|
def.drop = modname.. ":slab_" .. fields.drop .. alternate
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user