]> git.lizzy.rs Git - Crafter.git/blob - mods/buildtest/init.lua
Create custom dtime related move_to velocity api
[Crafter.git] / mods / buildtest / init.lua
1 minetest.register_node("buildtest:glass_pipe", {
2         description = "Glass Pipe",
3         tiles = {"glass_pipe.png"},
4         groups = {glass = 1},
5         sounds = main.stoneSound(),
6         drawtype = "nodebox",
7         paramtype = "light",
8         sunlight_propagates = true,
9         connects_to = {"buildtest:glass_pipe","hopper:hopper"},
10         node_box = {
11                 type = "connected",
12                 -- {x1, y1, z1, x2, y2, z2}
13                 disconnected  = {
14                         {-3/16,-3/16,-3/16,3/16,3/16,3/16}
15                         },
16                 connect_top = {
17                         {-3/16,-3/16,-3/16,3/16,8/16,3/16}
18                         },
19                 connect_bottom = {
20                         {-3/16,-8/16,-3/16,3/16,3/16,3/16}
21                         },
22                         
23                         
24                 connect_left = {
25                         {-8/16,-3/16,-3/16,3/16,3/16,3/16}
26                         },
27                 connect_right = {
28                         {-3/16,-3/16,-3/16,8/16,3/16,3/16}
29                         },      
30                 connect_front = {
31                         {-3/16,-3/16,-8/16,3/16,3/16,3/16}
32                         },
33                 
34                 connect_back = {
35                         {-3/16,-3/16,-3/16,3/16,3/16,8/16}
36                         },
37         },
38 })
39
40 minetest.register_craft({
41         output = "buildtest:glass_pipe 20",
42         recipe = {
43                 {"main:glass","","main:glass"},
44                 {"main:glass","","main:glass"},
45                 {"main:glass","","main:glass"},
46         }
47 })