mirror of
https://github.com/mt-mods/homedecor_modpack.git
synced 2025-01-03 13:30:20 +01:00
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",{
|
||||
hp_max = 1,
|
||||
visual="wielditem",
|
||||
visual_size={x=.33,y=.33},
|
||||
visual_size={x = 0.33, y = 0.33},
|
||||
collisionbox = {0, 0, 0, 0, 0, 0},
|
||||
physical = false,
|
||||
textures = {"air"},
|
||||
@ -38,8 +38,8 @@ minetest.register_entity("itemframes:item",{
|
||||
end,
|
||||
})
|
||||
|
||||
|
||||
local facedir = {}
|
||||
|
||||
facedir[0] = {x = 0, y = 0, z = 1}
|
||||
facedir[1] = {x = 1, y = 0, z = 0}
|
||||
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.z = pos.z + posad.z * 6.5 / 16
|
||||
elseif node.name == "itemframes:pedestal" then
|
||||
pos.y = pos.y + 12/16+.33
|
||||
pos.y = pos.y + 12 / 16 + 0.33
|
||||
end
|
||||
tmp.nodename = node.name
|
||||
tmp.texture = ItemStack(meta:get_string("item")):get_name()
|
||||
@ -100,8 +100,14 @@ end
|
||||
minetest.register_node("itemframes:frame",{
|
||||
description = "Item frame",
|
||||
drawtype = "nodebox",
|
||||
node_box = { 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} },
|
||||
node_box = {
|
||||
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"},
|
||||
inventory_image = "itemframes_frame.png",
|
||||
wield_image = "itemframes_frame.png",
|
||||
@ -152,13 +158,18 @@ minetest.register_node("itemframes:frame",{
|
||||
minetest.register_node("itemframes:pedestal",{
|
||||
description = "Pedestal",
|
||||
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
|
||||
{-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
|
||||
{-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"},
|
||||
paramtype = "light",
|
||||
groups = {cracky = 3},
|
||||
@ -233,6 +244,7 @@ minetest.register_craft({
|
||||
{'group:stick', 'group:stick', 'group:stick'},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = 'itemframes:pedestal',
|
||||
recipe = {
|
||||
|
Loading…
Reference in New Issue
Block a user