forked from mtcontrib/homedecor_modpack
shorten globe coll/sel box code a bit
This commit is contained in:
parent
8cf3db8aae
commit
b3cd8e45fb
@ -1926,6 +1926,11 @@ minetest.register_node("homedecor:calendar", {
|
|||||||
sounds = default.node_sound_defaults(),
|
sounds = default.node_sound_defaults(),
|
||||||
})
|
})
|
||||||
|
|
||||||
|
local globe_cbox = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = { -0.4, -0.5, -0.3, 0.3, 0.3, 0.3 }
|
||||||
|
}
|
||||||
|
|
||||||
minetest.register_node("homedecor:desk_globe", {
|
minetest.register_node("homedecor:desk_globe", {
|
||||||
description = "Desk globe",
|
description = "Desk globe",
|
||||||
drawtype = "mesh",
|
drawtype = "mesh",
|
||||||
@ -1934,14 +1939,8 @@ minetest.register_node("homedecor:desk_globe", {
|
|||||||
inventory_image = "homedecor_desk_globe_inv.png",
|
inventory_image = "homedecor_desk_globe_inv.png",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
selection_box = {
|
selection_box = globe_cbox,
|
||||||
type = "fixed",
|
collision_box = globe_cbox,
|
||||||
fixed = { -0.4, -0.5, -0.3, 0.3, 0.3, 0.3 }
|
|
||||||
},
|
|
||||||
collision_box = {
|
|
||||||
type = "fixed",
|
|
||||||
fixed = { -0.4, -0.5, -0.3, 0.3, 0.3, 0.3 }
|
|
||||||
},
|
|
||||||
groups = {choppy=2},
|
groups = {choppy=2},
|
||||||
sounds = default.node_sound_defaults(),
|
sounds = default.node_sound_defaults(),
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user