2016-04-01 20:02:19 -04:00
|
|
|
--[[
|
|
|
|
More Blocks: slope definitions
|
|
|
|
|
2017-02-19 12:01:09 -05:00
|
|
|
Copyright (c) 2011-2017 Hugo Locurcio and contributors.
|
2016-04-01 20:02:19 -04:00
|
|
|
Licensed under the zlib license. See LICENSE.md for more information.
|
|
|
|
--]]
|
|
|
|
|
|
|
|
local S = moreblocks.intllib
|
|
|
|
|
|
|
|
-- Node will be called <modname>:slope_<subname>
|
|
|
|
|
|
|
|
function register_slope(modname, subname, recipeitem, groups, images, description, drop, light)
|
|
|
|
stairsplus:register_slope(modname, subname, recipeitem, {
|
|
|
|
groups = groups,
|
|
|
|
tiles = images,
|
|
|
|
description = description,
|
|
|
|
drop = drop,
|
|
|
|
light_source = light,
|
|
|
|
sounds = default.node_sound_stone_defaults(),
|
|
|
|
})
|
|
|
|
end
|
|
|
|
|
Update several mods:
biome_lib, boost_cart, building_blocks, castle, homedecor, glooptest,
currency, roads, invsaw, maptools, mesecons, moreblocks, nixie_tubes,
pipeworks, signs_lib, technic, unified_inventory, unifiedbricks, worldedit,
xban2
2016-12-01 04:22:40 -05:00
|
|
|
function stairsplus:register_slope_alias(modname_old, subname_old, modname_new, subname_new)
|
Add readme.md mostly taken from the forum thread (and markdown-ified)
Updated several mods: castles, homedecor, digilines, farming redo,
jumping, maptools, mesecons, moreblocks, moretrees, pipeworks,
signs_lib, technic, unified_dyes
Deleted the peaceful_npc mod, as it is broken and unmaintained.
2018-05-11 10:22:53 -04:00
|
|
|
local defs = table.copy(stairsplus.defs["slope"])
|
Update several mods:
biome_lib, boost_cart, building_blocks, castle, homedecor, glooptest,
currency, roads, invsaw, maptools, mesecons, moreblocks, nixie_tubes,
pipeworks, signs_lib, technic, unified_inventory, unifiedbricks, worldedit,
xban2
2016-12-01 04:22:40 -05:00
|
|
|
for alternate, def in pairs(defs) do
|
|
|
|
minetest.register_alias(modname_old .. ":slope_" .. subname_old .. alternate, modname_new .. ":slope_" .. subname_new .. alternate)
|
|
|
|
end
|
|
|
|
end
|
2016-04-01 20:02:19 -04:00
|
|
|
|
Update several mods:
biome_lib, boost_cart, building_blocks, castle, homedecor, glooptest,
currency, roads, invsaw, maptools, mesecons, moreblocks, nixie_tubes,
pipeworks, signs_lib, technic, unified_inventory, unifiedbricks, worldedit,
xban2
2016-12-01 04:22:40 -05:00
|
|
|
function stairsplus:register_slope_alias_force(modname_old, subname_old, modname_new, subname_new)
|
Add readme.md mostly taken from the forum thread (and markdown-ified)
Updated several mods: castles, homedecor, digilines, farming redo,
jumping, maptools, mesecons, moreblocks, moretrees, pipeworks,
signs_lib, technic, unified_dyes
Deleted the peaceful_npc mod, as it is broken and unmaintained.
2018-05-11 10:22:53 -04:00
|
|
|
local defs = table.copy(stairsplus.defs["slope"])
|
Update several mods:
biome_lib, boost_cart, building_blocks, castle, homedecor, glooptest,
currency, roads, invsaw, maptools, mesecons, moreblocks, nixie_tubes,
pipeworks, signs_lib, technic, unified_inventory, unifiedbricks, worldedit,
xban2
2016-12-01 04:22:40 -05:00
|
|
|
for alternate, def in pairs(defs) do
|
|
|
|
minetest.register_alias_force(modname_old .. ":slope_" .. subname_old .. alternate, modname_new .. ":slope_" .. subname_new .. alternate)
|
|
|
|
end
|
|
|
|
end
|
2016-04-01 20:02:19 -04:00
|
|
|
|
Update several mods:
biome_lib, boost_cart, building_blocks, castle, homedecor, glooptest,
currency, roads, invsaw, maptools, mesecons, moreblocks, nixie_tubes,
pipeworks, signs_lib, technic, unified_inventory, unifiedbricks, worldedit,
xban2
2016-12-01 04:22:40 -05:00
|
|
|
function stairsplus:register_slope(modname, subname, recipeitem, fields)
|
Add readme.md mostly taken from the forum thread (and markdown-ified)
Updated several mods: castles, homedecor, digilines, farming redo,
jumping, maptools, mesecons, moreblocks, moretrees, pipeworks,
signs_lib, technic, unified_dyes
Deleted the peaceful_npc mod, as it is broken and unmaintained.
2018-05-11 10:22:53 -04:00
|
|
|
local defs = table.copy(stairsplus.defs["slope"])
|
2016-04-01 20:02:19 -04:00
|
|
|
for alternate, def in pairs(defs) do
|
Add readme.md mostly taken from the forum thread (and markdown-ified)
Updated several mods: castles, homedecor, digilines, farming redo,
jumping, maptools, mesecons, moreblocks, moretrees, pipeworks,
signs_lib, technic, unified_dyes
Deleted the peaceful_npc mod, as it is broken and unmaintained.
2018-05-11 10:22:53 -04:00
|
|
|
stairsplus.register_single("slope", alternate, def, modname, subname, recipeitem, fields)
|
2016-04-01 20:02:19 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
circular_saw.known_nodes[recipeitem] = {modname, subname}
|
|
|
|
end
|