-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinit.lua
63 lines (58 loc) · 1.51 KB
/
init.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
travelnet.register_travelnet_box({
nodename = ":fancy_travelnet:fancy_travelnet", color = "#FFFFF"
})
travelnet.register_travelnet_box({
nodename = ":fancy_travelnet:undercore", color = "#FFFFF"
})
minetest.override_item("fancy_travelnet:fancy_travelnet", {
description = "Fancy Travelnet",
tiles = {
"fancy_travelnet_front.png",
"fancy_travelnet_back.png",
"fancy_travelnet_side.png",
"travelnet_top.png",
"travelnet_bottom.png",
},
inventory_image = "fancy_travelnet_inv.png",
})
minetest.override_item("fancy_travelnet:undercore", {
description = "Magical Travelnet",
tiles = {
{
image = "fancy_travelnet_undercore_front.png",
backface_culling = false,
animation = {
type = "vertical_frames",
aspect_w = 16,
aspect_h = 32,
length = 1.5
},
},
"fancy_travelnet_undercore_back.png",
"fancy_travelnet_undercore_side.png",
"[combine:16x16:0,-16=fancy_travelnet_undercore_side.png",
{
image = "fancy_travelnet_undercore_bottom.png",
backface_culling = false,
animation = {
type = "vertical_frames",
aspect_w = 16,
aspect_h = 16,
length = 1
},
},
},
inventory_image = "fancy_travelnet_undercore_inv.png",
})
minetest.register_craft({
type = "shapeless",
output = "fancy_travelnet:fancy_travelnet",
recipe = {"group:travelnet", xcompat.materials.gold_ingot}
})
if minetest.get_modpath("moreores") then
minetest.register_craft({
type = "shapeless",
output = "fancy_travelnet:undercore",
recipe = {"group:travelnet", "moreores:mithril_ingot"}
})
end