More accurate hopper selection box
parent
f5de6db4aa
commit
ab0de78151
|
@ -28,7 +28,6 @@ Hoppers interact with containers the following way:
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
tiles = {"mcl_hoppers_hopper_inside.png^mcl_hoppers_hopper_top.png", "mcl_hoppers_hopper_outside.png", "mcl_hoppers_hopper_outside.png", "mcl_hoppers_hopper_inside.png", "mcl_hoppers_hopper_outside.png", "mcl_hoppers_hopper_outside.png"},
|
tiles = {"mcl_hoppers_hopper_inside.png^mcl_hoppers_hopper_top.png", "mcl_hoppers_hopper_outside.png", "mcl_hoppers_hopper_outside.png", "mcl_hoppers_hopper_inside.png", "mcl_hoppers_hopper_outside.png", "mcl_hoppers_hopper_outside.png"},
|
||||||
selection_box = {type="regular"},
|
|
||||||
node_box = {
|
node_box = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
fixed = {
|
fixed = {
|
||||||
|
@ -44,6 +43,16 @@ Hoppers interact with containers the following way:
|
||||||
{-0.1, -0.3, -0.1, 0.1, -0.5, 0.1},
|
{-0.1, -0.3, -0.1, 0.1, -0.5, 0.1},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
selection_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = {
|
||||||
|
--funnel
|
||||||
|
{-0.5, 0.0, -0.5, 0.5, 0.5, 0.5},
|
||||||
|
--spout
|
||||||
|
{-0.3, -0.3, -0.3, 0.3, 0.0, 0.3},
|
||||||
|
{-0.1, -0.3, -0.1, 0.1, -0.5, 0.1},
|
||||||
|
},
|
||||||
|
},
|
||||||
is_ground_content = false,
|
is_ground_content = false,
|
||||||
|
|
||||||
on_construct = function(pos)
|
on_construct = function(pos)
|
||||||
|
@ -144,7 +153,6 @@ minetest.register_node("mcl_hoppers:hopper_side", {
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
tiles = {"mcl_hoppers_hopper_inside.png^mcl_hoppers_hopper_top.png", "mcl_hoppers_hopper_outside.png", "mcl_hoppers_hopper_outside.png", "mcl_hoppers_hopper_inside.png", "mcl_hoppers_hopper_outside.png", "mcl_hoppers_hopper_outside.png"},
|
tiles = {"mcl_hoppers_hopper_inside.png^mcl_hoppers_hopper_top.png", "mcl_hoppers_hopper_outside.png", "mcl_hoppers_hopper_outside.png", "mcl_hoppers_hopper_inside.png", "mcl_hoppers_hopper_outside.png", "mcl_hoppers_hopper_outside.png"},
|
||||||
selection_box = {type="regular"},
|
|
||||||
node_box = {
|
node_box = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
fixed = {
|
fixed = {
|
||||||
|
@ -160,6 +168,16 @@ minetest.register_node("mcl_hoppers:hopper_side", {
|
||||||
{-0.5, -0.3, -0.1, 0.1, -0.1, 0.1},
|
{-0.5, -0.3, -0.1, 0.1, -0.1, 0.1},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
selection_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = {
|
||||||
|
--funnel
|
||||||
|
{-0.5, 0.0, -0.5, 0.5, 0.5, 0.5},
|
||||||
|
--spout
|
||||||
|
{-0.3, -0.3, -0.3, 0.3, 0.0, 0.3},
|
||||||
|
{-0.5, -0.3, -0.1, 0.1, -0.1, 0.1},
|
||||||
|
},
|
||||||
|
},
|
||||||
is_ground_content = false,
|
is_ground_content = false,
|
||||||
|
|
||||||
on_construct = function(pos)
|
on_construct = function(pos)
|
||||||
|
|
Loading…
Reference in New Issue