1
0
Fork 0

More accurate hopper selection box

This commit is contained in:
Wuzzy 2017-11-23 00:41:26 +01:00
parent f5de6db4aa
commit ab0de78151
1 changed files with 26 additions and 8 deletions

View File

@ -28,7 +28,6 @@ Hoppers interact with containers the following way:
paramtype = "light",
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"},
selection_box = {type="regular"},
node_box = {
type = "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},
},
},
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,
on_construct = function(pos)
@ -144,7 +153,6 @@ minetest.register_node("mcl_hoppers:hopper_side", {
sunlight_propagates = true,
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"},
selection_box = {type="regular"},
node_box = {
type = "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},
},
},
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,
on_construct = function(pos)