-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinit.lua
More file actions
114 lines (103 loc) · 2.59 KB
/
init.lua
File metadata and controls
114 lines (103 loc) · 2.59 KB
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
minetest.register_node("plaster:lime", {
description = "Lime",
inventory_image = "plaster_lime.png",
})
minetest.register_node("plaster:plaster", {
description = "Plaster",
tiles = {"plaster_plaster.png"},
is_ground_content = false,
groups = {choppy = 2, cracky = 2},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("plaster:cross", {
description = "Plaster with Crossed Frame",
tiles = {"plaster_frame_square.png", "plaster_frame_square.png", "plaster_frame_cross.png"},
paramtype2 = "facedir",
on_place = minetest.rotate_node,
is_ground_content = false,
groups = {choppy = 2, cracky = 2},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("plaster:square", {
description = "Plaster with Squared Frame",
tiles = {"plaster_frame_square.png"},
is_ground_content = false,
groups = {choppy = 2, cracky = 2},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("plaster:straight", {
description = "Plaster with Straight Frame",
tiles = {"plaster_frame_straight_top.png", "plaster_frame_straight_top.png", "plaster_frame_straight.png^[transformR90"},
paramtype2 = "facedir",
on_place = minetest.rotate_node,
is_ground_content = false,
groups = {choppy = 2, cracky = 2},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_craft({
type = "shapeless",
output = "plaster:lime 6",
recipe = {"default:coral_skeleton"},
})
local s = "group:sand"
local l = "plaster:lime"
local w = "bucket:bucket_water"
minetest.register_craft({
output = "plaster:plaster 6",
recipe = {
{s,l,s},
{l, w, l},
{s, l, s}
},
replacements = {
{w, w},
}
})
local p = "plaster:plaster"
local s = "group:stick"
local n = ""
minetest.register_craft({
output = "plaster:square",
recipe = {
{s,s,s},
{s,p,s},
{s,s,s}
}
})
minetest.register_craft({
type = "shapeless",
output = "plaster:plaster",
recipe = {"plaster:square"},
})
minetest.register_craft({
output = "plaster:cross",
recipe = {
{n,s,s},
{s,p,s},
{s,s,n}
}
})
minetest.register_craft({
type = "shapeless",
output = "plaster:plaster",
recipe = {"plaster:cross"},
})
minetest.register_craft({
output = "plaster:straight",
recipe = {
{s,n,s},
{n,p,n},
{s,n,s}
}
})
minetest.register_craft({
type = "shapeless",
output = p,
recipe = {"plaster:straight"},
})
if minetest.global_exists("dungeon_loot") then
dungeon_loot.register({
{name = "plaster:plaster", chance = 0.35, count={3,24}},
{name = "plaster:lime", chance = 0.45, count={13,24}}
})
end