Add in basic buildtest pipe

This commit is contained in:
oilboi 2020-03-25 22:00:28 -04:00
parent 8311f56701
commit acce559dfe
2 changed files with 40 additions and 0 deletions

40
mods/buildtest/init.lua Normal file
View File

@ -0,0 +1,40 @@
minetest.register_node("buildtest:glass_pipe", {
description = "Glass Pipe",
tiles = {"glass_pipe.png"},
groups = {stone = 1, hard = 1, pickaxe = 1, hand = 4},
sounds = main.stoneSound(),
drawtype = "nodebox",
paramtype = "light",
sunlight_propagates = true,
connects_to = {"buildtest:glass_pipe","hopper:hopper"},
node_box = {
type = "connected",
-- {x1, y1, z1, x2, y2, z2}
disconnected = {
{-3/16,-3/16,-3/16,3/16,3/16,3/16}
},
connect_top = {
{-3/16,-3/16,-3/16,3/16,8/16,3/16}
},
connect_bottom = {
{-3/16,-8/16,-3/16,3/16,3/16,3/16}
},
connect_left = {
{-8/16,-3/16,-3/16,3/16,3/16,3/16}
},
connect_right = {
{-3/16,-3/16,-3/16,8/16,3/16,3/16}
},
connect_front = {
{-3/16,-3/16,-8/16,3/16,3/16,3/16}
},
connect_back = {
{-3/16,-3/16,-3/16,3/16,3/16,8/16}
},
},
})

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB