mirror of
https://github.com/mt-mods/homedecor_modpack.git
synced 2025-01-11 17:10:18 +01:00
add itemframe
This commit is contained in:
parent
cab9df2256
commit
0a1360eb39
@ -41,6 +41,7 @@ homedecor.materials = {
|
||||
glass_block = "default_glass",
|
||||
glass_bottle = "vessels:glass_bottle",
|
||||
coal_lump = "default:coal_lump",
|
||||
stone = "default:stone",
|
||||
cobble = "default:cobble",
|
||||
brick = "default:brick",
|
||||
}
|
||||
@ -113,6 +114,7 @@ elseif minetest.get_modpath("fl_ores") and minetest.get_modpath("fl_stone") then
|
||||
glass_block = "fl_glass:framed_glass",
|
||||
glass_bottle = "fl_bottles:bottle",
|
||||
coal_lump = "fl_ores:coal_ore",
|
||||
stone = "fl_stone:stone",
|
||||
cobble = "fl_stone:stone_rubble",
|
||||
brick = "",
|
||||
}
|
||||
|
@ -1,21 +0,0 @@
|
||||
unused_args = false
|
||||
allow_defined_top = true
|
||||
max_comment_line_length = 999
|
||||
|
||||
read_globals = {
|
||||
"DIR_DELIM",
|
||||
"minetest", "core",
|
||||
"unpack",
|
||||
"dump",
|
||||
table = { fields = { "copy", "getn" } },
|
||||
"vector", "nodeupdate",
|
||||
"VoxelManip", "VoxelArea",
|
||||
"PseudoRandom", "ItemStack",
|
||||
"default",
|
||||
"mesecon",
|
||||
"screwdriver",
|
||||
}
|
||||
|
||||
globals = {
|
||||
}
|
||||
|
@ -137,7 +137,9 @@ minetest.register_node("itemframes:frame",{
|
||||
sunlight_propagates = true,
|
||||
groups = {choppy = 2, dig_immediate = 2},
|
||||
legacy_wallmounted = true,
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
_sound_def = {
|
||||
key = "node_sound_wood_defaults",
|
||||
},
|
||||
on_rotate = sd_disallow or nil,
|
||||
after_place_node = function(pos, placer, itemstack)
|
||||
local meta = minetest.get_meta(pos)
|
||||
@ -213,8 +215,10 @@ minetest.register_node("itemframes:pedestal",{
|
||||
--},
|
||||
tiles = {"itemframes_pedestal.png"},
|
||||
paramtype = "light",
|
||||
groups = {cracky = 3},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
groups = {cracky = 3, dig_stone = 2},
|
||||
_sound_def = {
|
||||
key = "node_sound_stone_defaults",
|
||||
},
|
||||
on_rotate = sd_disallow or nil,
|
||||
after_place_node = function(pos, placer, itemstack)
|
||||
local meta = minetest.get_meta(pos)
|
||||
@ -308,7 +312,7 @@ minetest.register_craft({
|
||||
output = 'itemframes:frame',
|
||||
recipe = {
|
||||
{'group:stick', 'group:stick', 'group:stick'},
|
||||
{'group:stick', 'default:paper', 'default:stick'},
|
||||
{'group:stick', homedecor.materials.paper, 'default:stick'},
|
||||
{'group:stick', 'group:stick', 'group:stick'},
|
||||
}
|
||||
})
|
||||
@ -316,9 +320,9 @@ minetest.register_craft({
|
||||
minetest.register_craft({
|
||||
output = 'itemframes:pedestal',
|
||||
recipe = {
|
||||
{'default:stone', 'default:stone', 'default:stone'},
|
||||
{'', 'default:stone', ''},
|
||||
{'default:stone', 'default:stone', 'default:stone'},
|
||||
{homedecor.materials.stone, homedecor.materials.stone, homedecor.materials.stone},
|
||||
{'', homedecor.materials.stone, ''},
|
||||
{homedecor.materials.stone, homedecor.materials.stone, homedecor.materials.stone},
|
||||
}
|
||||
})
|
||||
|
||||
|
@ -1,3 +1,3 @@
|
||||
name = itemframes
|
||||
depends = default, homedecor_common
|
||||
optional_depends = mesecons_mvps, screwdriver
|
||||
depends = homedecor_common
|
||||
optional_depends = mesecons_mvps, screwdriver, default
|
||||
|
Loading…
Reference in New Issue
Block a user