1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
local pipe_box = {
type = "fixed",
fixed = {{-0.375, -0.5, -0.375, 0.375, 0.5, 0.375},}}
local pipe_elbow_box = {
type = "fixed",
fixed = {{-0.375, -0.5, -0.375, 0.375, 0.375, 0.375},
{-0.375, -0.375, 0.375, 0.375, 0.375, -0.5},}}
local pipe_end_box = {
type = "fixed",
fixed = {{-0.375, -0.5, -0.375, 0.375, 0.375, 0.375},
{-0.5, 0.3125, -0.5, 0.5, 0.5, 0.5},}}
minetest.register_node("mario:pipe",{
description = "Pipe",
tiles = {
"mario_pipe_end_sm.png",
"mario_pipe_end_sm.png",
"mario_pipe.png",
"mario_pipe.png",
"mario_pipe.png",
"mario_pipe.png",
},
drawtype = "nodebox",
paramtype = "light",
paramtype2 = "facedir",
groups = {cracky = 1,not_in_creative_inventory=1},
node_box = pipe_box,
on_place = minetest.rotate_node,
})
minetest.register_node("mario:pipe_elbow",{
description = "Pipe Elbow",
tiles = {
"mario_pipe.png",
"mario_pipe_end_sm.png^mario_pipe_elbow_ic.png",
"mario_pipe.png^mario_pipe_elbow.png^[transformFX",
"mario_pipe.png^mario_pipe_elbow.png",
"mario_pipe.png",
"mario_pipe_end_sm.png^mario_pipe_elbow_ic.png^[transformFY",
},
drawtype = "nodebox",
paramtype = "light",
paramtype2 = "facedir",
groups = {cracky = 1,not_in_creative_inventory=1},
node_box = pipe_elbow_box,
on_place = minetest.rotate_node,
})
minetest.register_node("mario:pipe_end",{
description = "Pipe End",
tiles = {
"mario_pipe_end_sm.png",
"mario_pipe_end_sm.png",
"mario_pipe.png^mario_pipe_end_ring.png",
"mario_pipe.png^mario_pipe_end_ring.png",
"mario_pipe.png^mario_pipe_end_ring.png",
"mario_pipe.png^mario_pipe_end_ring.png",
},
drawtype = "nodebox",
paramtype = "light",
paramtype2 = "facedir",
groups = {cracky = 1,not_in_creative_inventory=1},
node_box = pipe_end_box,
on_place = minetest.rotate_node,
})
|