forked from mtcontrib/homedecor_modpack
Style updates.
There's no actual code changes here.
This commit is contained in:
parent
9a4a0e934c
commit
16ae960520
@ -4,7 +4,7 @@ screwdriver = screwdriver or {}
|
|||||||
minetest.register_entity("itemframes:item",{
|
minetest.register_entity("itemframes:item",{
|
||||||
hp_max = 1,
|
hp_max = 1,
|
||||||
visual="wielditem",
|
visual="wielditem",
|
||||||
visual_size={x=.33,y=.33},
|
visual_size={x = 0.33, y = 0.33},
|
||||||
collisionbox = {0, 0, 0, 0, 0, 0},
|
collisionbox = {0, 0, 0, 0, 0, 0},
|
||||||
physical = false,
|
physical = false,
|
||||||
textures = {"air"},
|
textures = {"air"},
|
||||||
@ -38,8 +38,8 @@ minetest.register_entity("itemframes:item",{
|
|||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
local facedir = {}
|
local facedir = {}
|
||||||
|
|
||||||
facedir[0] = {x = 0, y = 0, z = 1}
|
facedir[0] = {x = 0, y = 0, z = 1}
|
||||||
facedir[1] = {x = 1, y = 0, z = 0}
|
facedir[1] = {x = 1, y = 0, z = 0}
|
||||||
facedir[2] = {x = 0, y = 0, z = -1}
|
facedir[2] = {x = 0, y = 0, z = -1}
|
||||||
@ -72,7 +72,7 @@ local update_item = function(pos, node)
|
|||||||
pos.y = pos.y + posad.y * 6.5 / 16
|
pos.y = pos.y + posad.y * 6.5 / 16
|
||||||
pos.z = pos.z + posad.z * 6.5 / 16
|
pos.z = pos.z + posad.z * 6.5 / 16
|
||||||
elseif node.name == "itemframes:pedestal" then
|
elseif node.name == "itemframes:pedestal" then
|
||||||
pos.y = pos.y + 12/16+.33
|
pos.y = pos.y + 12 / 16 + 0.33
|
||||||
end
|
end
|
||||||
tmp.nodename = node.name
|
tmp.nodename = node.name
|
||||||
tmp.texture = ItemStack(meta:get_string("item")):get_name()
|
tmp.texture = ItemStack(meta:get_string("item")):get_name()
|
||||||
@ -100,8 +100,14 @@ end
|
|||||||
minetest.register_node("itemframes:frame",{
|
minetest.register_node("itemframes:frame",{
|
||||||
description = "Item frame",
|
description = "Item frame",
|
||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
node_box = { type = "fixed", fixed = {-0.5, -0.5, 7/16, 0.5, 0.5, 0.5} },
|
node_box = {
|
||||||
selection_box = { type = "fixed", fixed = {-0.5, -0.5, 7/16, 0.5, 0.5, 0.5} },
|
type = "fixed",
|
||||||
|
fixed = {-0.5, -0.5, 7/16, 0.5, 0.5, 0.5}
|
||||||
|
},
|
||||||
|
selection_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = {-0.5, -0.5, 7/16, 0.5, 0.5, 0.5}
|
||||||
|
},
|
||||||
tiles = {"itemframes_frame.png"},
|
tiles = {"itemframes_frame.png"},
|
||||||
inventory_image = "itemframes_frame.png",
|
inventory_image = "itemframes_frame.png",
|
||||||
wield_image = "itemframes_frame.png",
|
wield_image = "itemframes_frame.png",
|
||||||
@ -152,13 +158,18 @@ minetest.register_node("itemframes:frame",{
|
|||||||
minetest.register_node("itemframes:pedestal",{
|
minetest.register_node("itemframes:pedestal",{
|
||||||
description = "Pedestal",
|
description = "Pedestal",
|
||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
node_box = { type = "fixed", fixed = {
|
node_box = {
|
||||||
|
type = "fixed", fixed = {
|
||||||
{-7/16, -8/16, -7/16, 7/16, -7/16, 7/16}, -- bottom plate
|
{-7/16, -8/16, -7/16, 7/16, -7/16, 7/16}, -- bottom plate
|
||||||
{-6/16, -7/16, -6/16, 6/16, -6/16, 6/16}, -- bottom plate (upper)
|
{-6/16, -7/16, -6/16, 6/16, -6/16, 6/16}, -- bottom plate (upper)
|
||||||
{-0.25, -6/16, -0.25, 0.25, 11/16, 0.25}, -- pillar
|
{-0.25, -6/16, -0.25, 0.25, 11/16, 0.25}, -- pillar
|
||||||
{-7/16, 11/16, -7/16, 7/16, 12/16, 7/16}, -- top plate
|
{-7/16, 11/16, -7/16, 7/16, 12/16, 7/16}, -- top plate
|
||||||
} },
|
}
|
||||||
--selection_box = { type = "fixed", fixed = {-7/16, -0.5, -7/16, 7/16, 12/16, 7/16} },
|
},
|
||||||
|
--selection_box = {
|
||||||
|
-- type = "fixed",
|
||||||
|
-- fixed = {-7/16, -0.5, -7/16, 7/16, 12/16, 7/16}
|
||||||
|
--},
|
||||||
tiles = {"itemframes_pedestal.png"},
|
tiles = {"itemframes_pedestal.png"},
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
groups = {cracky = 3},
|
groups = {cracky = 3},
|
||||||
@ -233,6 +244,7 @@ minetest.register_craft({
|
|||||||
{'group:stick', 'group:stick', 'group:stick'},
|
{'group:stick', 'group:stick', 'group:stick'},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = 'itemframes:pedestal',
|
output = 'itemframes:pedestal',
|
||||||
recipe = {
|
recipe = {
|
||||||
|
Loading…
Reference in New Issue
Block a user