Simplify trunk, cactus, pot collisionbox

master
Wuzzy 2021-08-07 18:04:32 +02:00
parent 3add4e03c4
commit da04066546
3 changed files with 21 additions and 9 deletions

View File

@ -8,16 +8,20 @@ minetest.register_node("hades_core:cactus", {
paramtype = "light",
is_ground_content = true,
drawtype = "nodebox",
node_box = {
type = "fixed",
fixed = {
{-0.5,-0.5,-3/16, 0.5,0.5,3/16},
{-7/16,-0.5,-5/16, 7/16,0.5,5/16},
{-6/16,-0.5,-6/16, 6/16,0.5,6/16},
{-5/16,-0.5,-7/16, 5/16,0.5,7/16},
{-3/16,-0.5,-0.5, 3/16,0.5,0.5},
},
node_box = {
type = "fixed",
fixed = {
{-0.5,-0.5,-3/16, 0.5,0.5,3/16},
{-7/16,-0.5,-5/16, 7/16,0.5,5/16},
{-6/16,-0.5,-6/16, 6/16,0.5,6/16},
{-5/16,-0.5,-7/16, 5/16,0.5,7/16},
{-3/16,-0.5,-0.5, 3/16,0.5,0.5},
},
},
collision_box = {
type = "fixed",
fixed = {{ -0.5, -0.5, -0.5, 0.5, 0.5, 0.5 }},
},
groups = {snappy=1,choppy=3,flammable=2},
sounds = hades_sounds.node_sound_wood_defaults(),
})

View File

@ -717,6 +717,10 @@ local S = minetest.get_translator("hades_furniture")
{-3/16,-0.5,-0.5, 3/16,0.5,0.5},
},
},
collision_box = {
type = "fixed",
fixed = {{ -0.5, -0.5, -0.5, 0.5, 0.5, 0.5 }},
},
groups = {cracky=3},
sounds = hades_sounds.node_sound_stone_defaults({
footstep = hades_sounds.node_sound_dirt_defaults().footstep,

View File

@ -16,6 +16,10 @@ hades_trees.register_trunk = function(id, def)
{-3/16,-0.5,-0.5, 3/16,0.5,0.5},
},
},
collision_box = {
type = "fixed",
fixed = {{ -0.5, -0.5, -0.5, 0.5, 0.5, 0.5 }},
},
is_ground_content = false,
groups = {tree=(def.tree_group or 1),choppy=2,oddly_breakable_by_hand=1,flammable=2},
sounds = def.sounds or hades_sounds.node_sound_wood_defaults(),