-
Notifications
You must be signed in to change notification settings - Fork 5
/
nautilus_variants.lua
174 lines (151 loc) · 5.46 KB
/
nautilus_variants.lua
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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
local S = nautilus.S
-- wooden cabin
minetest.register_craftitem("nautilus:cabin_wooden",{
description = S("Wooden Cabin for Nautilus"),
inventory_image = "nautilus_icon_cabin_wood.png",
})
-- wooden boat
minetest.register_tool("nautilus:boat_wooden", {
description = S("Wooden Nautilus"),
inventory_image = "nautilus_icon_wood.png",
liquids_pointable = true,
stack_max = 1,
_color = "#869393",
_energy = 0,
hull_integrity = 50,
deep_limit = 25,
overload_drop = {"nautilus:engine", "default:bronze_ingot 3"},
on_place = nautilus.on_place,
})
-- boat
minetest.override_item("nautilus:boat", {
hull_integrity = 75,
deep_limit = 100,
_color = "#ffe400",
_energy = 0,
overload_drop = {"nautilus:engine", "default:steel_ingot 3","default:steelblock 3"},
})
-- carbon steel cabin
minetest.register_craftitem("nautilus:cabin_carbon_steel",{
description = "Carbon Steel Cabin for Nautilus",
inventory_image = "nautilus_icon_cabin_carbon.png",
})
-- cabron teel boat
minetest.register_tool("nautilus:boat_carbon_steel", {
description = S("Carbon Steel Nautilus"),
inventory_image = "nautilus_icon_carbon.png",
liquids_pointable = true,
stack_max = 1,
_color = "#869393",
_energy = 0,
hull_integrity = 100,
deep_limit = 300,
overload_drop = {"nautilus:engine", "technic:carbon_steel_ingot 3","technic:carbon_steel_block 3"},
on_place = nautilus.on_place,
})
-- stainless steel cabin
minetest.register_craftitem("nautilus:cabin_stainless_steel",{
description = S("Stainless Steel Cabin for Nautilus"),
inventory_image = "nautilus_icon_cabin_stainless.png",
})
-- stainless steel boat
minetest.register_tool("nautilus:boat_stainless_steel", {
description = S("Stainless Steel Nautilus"),
inventory_image = "nautilus_icon_stainless.png",
liquids_pointable = true,
stack_max = 1,
_color = "#b7b7b7",
_energy = 0,
hull_integrity = 200,
deep_limit = 900,
overload_drop = {"nautilus:engine", "technic:stainless_steel_ingot 3","technic:stainless_steel_block 3"},
on_place = nautilus.on_place,
})
-- mithril cabin
minetest.register_craftitem("nautilus:cabin_mithril",{
description = S("Mithril Cabin for Nautilus"),
inventory_image = "nautilus_icon_cabin_mithril.png",
})
-- mithril boat
minetest.register_tool("nautilus:boat_mithril", {
description = S("Mithril Nautilus"),
inventory_image = "nautilus_icon_mithril.png",
liquids_pointable = true,
stack_max = 1,
_color = "#3a5ece",
_energy = 0,
hull_integrity = 400,
deep_limit = nil,
overload_drop = {"nautilus:engine", "moreores:mithril_ingot 3","moreores:mithril_block 3"},
on_place = nautilus.on_place,
})
if minetest.get_modpath("default") then
local wood_name = "group:wood"
if minetest.get_modpath("oak") then
wood_name = "oak:wood"
end
minetest.register_craft({
output = "nautilus:boat_wooden",
recipe = {
{"", "", ""},
{"nautilus:engine", "nautilus:cabin_wooden", "nautilus:engine"},
}
})
minetest.register_craft({
output = "nautilus:cabin_wooden",
recipe = {
{"default:bronze_ingot", wood_name, "default:bronze_ingot"},
{wood_name, "default:glass", wood_name},
{"default:bronze_ingot", wood_name, "default:bronze_ingot"},
}
})
end
if minetest.get_modpath("technic") then
minetest.register_craft({
output = "nautilus:boat_carbon_steel",
recipe = {
{"", "", ""},
{"nautilus:engine", "nautilus:cabin_carbon_steel", "nautilus:engine"},
}
})
minetest.register_craft({
output = "nautilus:cabin_carbon_steel",
recipe = {
{"technic:carbon_steel_ingot", "technic:carbon_steel_block", "technic:carbon_steel_ingot"},
{"technic:carbon_steel_block", "default:glass", "technic:carbon_steel_block"},
{"technic:carbon_steel_ingot", "technic:carbon_steel_block", "technic:carbon_steel_ingot"},
}
})
minetest.register_craft({
output = "nautilus:boat_stainless_steel",
recipe = {
{"", "", ""},
{"nautilus:engine", "nautilus:cabin_stainless_steel", "nautilus:engine"},
}
})
minetest.register_craft({
output = "nautilus:cabin_stainless_steel",
recipe = {
{"technic:stainless_steel_ingot", "technic:stainless_steel_block", "technic:stainless_steel_ingot"},
{"technic:stainless_steel_block", "default:glass", "technic:stainless_steel_block"},
{"technic:stainless_steel_ingot", "technic:stainless_steel_block", "technic:stainless_steel_ingot"},
}
})
end
if minetest.get_modpath("moreores") then
minetest.register_craft({
output = "nautilus:boat_mithril",
recipe = {
{"", "", ""},
{"nautilus:engine", "nautilus:cabin_mithril", "nautilus:engine"},
}
})
minetest.register_craft({
output = "nautilus:cabin_mithril",
recipe = {
{"moreores:mithril_ingot", "moreores:mithril_block", "moreores:mithril_ingot"},
{"moreores:mithril_block", "default:glass", "moreores:mithril_block"},
{"moreores:mithril_ingot", "moreores:mithril_block", "moreores:mithril_ingot"},
}
})
end