-
Notifications
You must be signed in to change notification settings - Fork 1
/
nodes.lua
91 lines (81 loc) · 2.69 KB
/
nodes.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
minetest.register_craftitem( "titanium:titanium", {
description = "Titanium",
inventory_image = "titanium_titanium.png",
on_place_on_ground = minetest.craftitem_place_item,
})
minetest.register_node( "titanium:titanium_in_ground", {
description = "Titanium Ore",
tiles = { "default_stone.png^titanium_titanium_in_ground.png" },
is_ground_content = true,
groups = {cracky=1},
sounds = default.node_sound_stone_defaults(),
drop = 'craft "titanium:titanium" 1',
})
minetest.register_node( "titanium:block", {
description = "Titanium Block",
tiles = { "titanium_block.png" },
is_ground_content = true,
groups = {cracky=1},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_craft({
output = 'titanium:block',
recipe = {
{'titanium:titanium', 'titanium:titanium', 'titanium:titanium'},
{'titanium:titanium', 'titanium:titanium', 'titanium:titanium'},
{'titanium:titanium', 'titanium:titanium', 'titanium:titanium'},
}
})
minetest.register_craft({
output = 'titanium:titanium 9',
recipe = {
{'', 'titanium:block', ''},
}
})
minetest.register_node("titanium:glass", {
description = "Titanium Glass",
drawtype = "glasslike",
tiles = {"titanium_glass.png"},
light_propagates = true,
paramtype = "light",
sunlight_propagates = true,
is_ground_content = true,
groups = {snappy=1,cracky=2,oddly_breakable_by_hand=2},
sounds = default.node_sound_glass_defaults(),
})
minetest.register_craft({
output = 'titanium:glass 3',
recipe = {
{'', 'titanium:titanium', ''},
{'titanium:titanium', 'default:glass', 'titanium:titanium'},
{'', 'titanium:titanium', ''},
}
})
minetest.register_craftitem( "titanium:tougher_titanium", {
description = "Tougher Titanium",
inventory_image = "tougher_titanium.png",
on_place_on_ground = minetest.craftitem_place_item,
})
minetest.register_craft({
output = 'titanium:tougher_titanium',
recipe = {
{'titanium:titanium', 'titanium:titanium'},
{'titanium:titanium', 'titanium:titanium'},
}
})
minetest.register_node( "titanium:titanium_plate", {
description = "Titanium Plate",
tiles = {"titanium_plate.png"},
inventory_image = "titanium_plate.png",
is_ground_content = true,
groups = {cracky=1},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_craft({
output = 'titanium:titanium_plate 9',
recipe = {
{'titanium:titanium', 'titanium:titanium', 'titanium:titanium'},
{'titanium:titanium', 'titanium:tougher_titanium', 'titanium:titanium'},
{'titanium:titanium', 'titanium:titanium', 'titanium:titanium'},
}
})