forked from 6r1d/minetest_new_glass
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathobsidian_glow_a.lua
77 lines (72 loc) · 2.76 KB
/
obsidian_glow_a.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
---------------------------------------------------------------
-- Soft glowing framed obsidian glass --
---------------------------------------------------------------
-- Node definition for a soft glowing glass
minetest.register_node("new_glass:super_steel_framed_obsidian_glass", {
description = "Super Steel-framed Obsidian Glass",
drawtype = "glasslike_framed",
tiles = {"steel_frame.png", "framedglass_glass_face_clean.png"},
paramtype = "light",
sunlight_propagates = true,
palette = "unifieddyes_palette_extended.png",
airbrush_replacement_node = "new_glass:super_steel_framed_obsidian_glass_tinted",
groups = {cracky = 3, oddly_breakable_by_hand = 3, ud_param2_colorable = 1},
sounds = default.node_sound_glass_defaults(),
on_dig = unifieddyes.on_dig,
light_source = 8,
})
-- Node definition for a soft glowing tinted glass
minetest.register_node("new_glass:super_steel_framed_obsidian_glass_tinted", {
description = "Super Steel-framed Obsidian Glass (tinted)",
drawtype = "glasslike_framed",
tiles = {
{ name = "steel_frame.png", color = "white" },
"newglass_base.png",
},
paramtype = "light",
paramtype2 = "color",
sunlight_propagates = true,
palette = "unifieddyes_palette_extended.png",
inventory_image = minetest.inventorycube("framedglass_glass_face_inv_static.png"),
airbrush_replacement_node = "new_glass:super_steel_framed_obsidian_glass_tinted",
is_ground_content = true,
use_texture_alpha = true,
groups = {
cracky = 3, oddly_breakable_by_hand = 3, ud_param2_colorable = 1,
not_in_creative_inventory = 1
},
sounds = default.node_sound_glass_defaults(),
on_dig = unifieddyes.on_dig,
light_source = 11,
})
-- Register coloring for a soft glowing tinted glass
unifieddyes.register_color_craft({
output = "new_glass:super_steel_framed_obsidian_glass_tinted",
type = "shapeless",
palette = "extended",
neutral_node = "new_glass:super_steel_framed_obsidian_glass",
recipe = {
"NEUTRAL_NODE",
"MAIN_DYE"
}
})
-- 4 soft-glowing glasses using a basic craft recipe and a mese block
if not new_glass.hide_recipe_super_steel_framed then
minetest.register_craft({
output = 'new_glass:super_steel_framed_obsidian_glass 4',
recipe = {
{'default:obsidian_glass', 'default:obsidian_glass', 'default:steel_ingot'},
{'default:obsidian_glass', 'default:obsidian_glass', 'default:steel_ingot'},
{'default:steel_ingot', 'default:steel_ingot', 'default:mese'},
}
})
end
-- One soft-glowing glass from a steel framed one and a meselamp
if not new_glass.hide_recipe_super_steel_framed then
minetest.register_craft({
output = 'new_glass:super_steel_framed_obsidian_glass',
recipe = {
{'framedglass:steel_framed_obsidian_glass', 'default:meselamp'}
}
})
end