1 local S
= minetest
.get_translator("vessels")
3 -- Minetest 0.4 mod: vessels
4 -- See README.txt for licensing and other information.
6 minetest
.register_node("vessels:glass_bottle", {
7 description
= S("Empty Glass Bottle"),
8 drawtype
= "plantlike",
9 tiles
= {"vessels_glass_bottle.png"},
10 inventory_image
= "vessels_glass_bottle_inv.png",
11 wield_image
= "vessels_glass_bottle.png",
14 is_ground_content
= false,
17 fixed
= {-0.25, -0.5, -0.25, 0.25, 0.4, 0.25}
19 groups
= {vessel
=1,dig_immediate
=3,attached_node
=1},
20 sounds
= hades_sounds
.node_sound_glass_defaults(),
23 minetest
.register_craft( {
24 output
= "vessels:glass_bottle 10",
26 { "hades_core:glass", "", "hades_core:glass" },
27 { "hades_core:glass", "", "hades_core:glass" },
28 { "", "hades_core:glass", "" }
32 minetest
.register_node("vessels:drinking_glass", {
33 description
= S("Empty Drinking Glass"),
34 drawtype
= "plantlike",
35 tiles
= {"vessels_drinking_glass.png"},
36 inventory_image
= "vessels_drinking_glass_inv.png",
37 wield_image
= "vessels_drinking_glass.png",
40 is_ground_content
= false,
43 fixed
= {-0.25, -0.5, -0.25, 0.25, 0.4, 0.25}
45 groups
= {vessel
=1,dig_immediate
=3,attached_node
=1},
46 sounds
= hades_sounds
.node_sound_glass_defaults(),
49 minetest
.register_craft( {
50 output
= "vessels:drinking_glass 14",
52 { "hades_core:glass", "", "hades_core:glass" },
53 { "hades_core:glass", "", "hades_core:glass" },
54 { "hades_core:glass", "hades_core:glass", "hades_core:glass" }
58 minetest
.register_node("vessels:steel_bottle", {
59 description
= S("Empty Heavy Steel Bottle"),
60 drawtype
= "plantlike",
61 tiles
= {"vessels_steel_bottle.png"},
62 inventory_image
= "vessels_steel_bottle_inv.png",
63 wield_image
= "vessels_steel_bottle.png",
66 is_ground_content
= false,
69 fixed
= {-0.25, -0.5, -0.25, 0.25, 0.4, 0.25}
71 groups
= {vessel
=1,dig_immediate
=3,attached_node
=1},
72 sounds
= hades_sounds
.node_sound_defaults(),
75 minetest
.register_craft( {
76 output
= "vessels:steel_bottle 5",
78 { "hades_core:steel_ingot", "", "hades_core:steel_ingot" },
79 { "hades_core:steel_ingot", "", "hades_core:steel_ingot" },
80 { "", "hades_core:steel_ingot", "" }
85 -- Make sure we can recycle them
87 minetest
.register_craftitem("vessels:glass_fragments", {
88 description
= S("Pile of Glass Fragments"),
89 inventory_image
= "vessels_glass_fragments.png",
92 minetest
.register_craft( {
94 output
= "vessels:glass_fragments",
96 "vessels:glass_bottle",
97 "vessels:glass_bottle",
101 minetest
.register_craft( {
103 output
= "vessels:glass_fragments",
105 "vessels:drinking_glass",
106 "vessels:drinking_glass",
110 minetest
.register_craft({
111 output
= "vessels:glass_fragments 6",
112 recipe
= {{"doors:door_glass"}},
115 minetest
.register_craft({
116 output
= "vessels:glass_fragments 6",
117 recipe
= {{"travelnet:elevator_door_glass_closed"}}
120 minetest
.register_craft({
122 output
= "hades_core:glass",
123 recipe
= "vessels:glass_fragments",
126 minetest
.register_craft( {
128 output
= "hades_core:steel_ingot",
129 recipe
= "vessels:steel_bottle",