2017-02-22 09:04:52 +01:00
|
|
|
--[[
|
|
|
|
Medival glasses.
|
2019-07-21 08:57:44 +02:00
|
|
|
The glasses can be colorized using dye.
|
2017-02-22 09:04:52 +01:00
|
|
|
Colorization requires unifieddyes installed.
|
|
|
|
|
|
|
|
Special thanks to Semmett9 for the glass textures.
|
|
|
|
]]
|
|
|
|
|
2019-07-21 08:57:44 +02:00
|
|
|
--[[ Rhombus Glass ]]
|
|
|
|
|
2017-02-22 09:04:52 +01:00
|
|
|
minetest.register_node("darkage:glass", {
|
|
|
|
description = "Clean Medieval Glass",
|
|
|
|
drawtype = "glasslike",
|
|
|
|
tiles = {"darkage_glass.png"},
|
|
|
|
use_texture_alpha=false,
|
|
|
|
paramtype = "light",
|
|
|
|
sunlight_propagates = true,
|
|
|
|
groups = {cracky = 3, oddly_breakable_by_hand = 3, not_cuttable=1},
|
|
|
|
sounds = default.node_sound_glass_defaults(),
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "darkage:glass 8",
|
|
|
|
recipe = {
|
|
|
|
{"default:glass", "default:steel_ingot", "default:glass"},
|
|
|
|
{"default:steel_ingot", "default:glass", "default:steel_ingot"},
|
|
|
|
{"default:glass", "default:steel_ingot", "default:glass"},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
2019-07-21 08:57:44 +02:00
|
|
|
--[[ Round Glass By Semmett9 aka Infinatum ]]
|
2017-02-22 09:04:52 +01:00
|
|
|
|
2019-07-21 08:57:44 +02:00
|
|
|
minetest.register_node("darkage:glass_round", {
|
|
|
|
description = "Round Glass",
|
|
|
|
drawtype = "glasslike",
|
|
|
|
tiles = { "darkage_glass_round.png" },
|
|
|
|
paramtype = "light",
|
|
|
|
use_texture_alpha = true,
|
|
|
|
sunlight_propagates = true,
|
|
|
|
sounds = default.node_sound_glass_defaults(),
|
|
|
|
groups = {cracky=3,oddly_breakable_by_hand=3, not_cuttable=1},
|
|
|
|
})
|
2017-02-22 09:04:52 +01:00
|
|
|
|
2019-07-21 08:57:44 +02:00
|
|
|
minetest.register_craft({
|
|
|
|
output = "darkage:glass_round 8",
|
|
|
|
recipe = {
|
|
|
|
{"default:steel_ingot", "default:glass", "default:steel_ingot"},
|
|
|
|
{"default:glass", "default:glass", "default:glass"},
|
|
|
|
{"default:steel_ingot", "default:glass", "default:steel_ingot"},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
--[[ Square glass By Semmett9 aka Infinatum ]]
|
|
|
|
|
|
|
|
minetest.register_node("darkage:glass_square", {
|
|
|
|
description = "Square Glass",
|
|
|
|
drawtype = "glasslike",
|
|
|
|
tiles = { "darkage_glass_square.png" },
|
|
|
|
paramtype = "light",
|
|
|
|
use_texture_alpha = true,
|
|
|
|
sunlight_propagates = true,
|
|
|
|
sounds = default.node_sound_glass_defaults(),
|
|
|
|
groups = {cracky=3,oddly_breakable_by_hand=3, not_cuttable=1},
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "darkage:glass_square 8",
|
|
|
|
recipe = {
|
|
|
|
{"default:glass", "default:steel_ingot", "default:glass"},
|
|
|
|
{"default:steel_ingot", "default:steel_ingot", "default:steel_ingot"},
|
|
|
|
{"default:glass", "default:steel_ingot", "default:glass"},
|
|
|
|
}
|
|
|
|
})
|
2017-02-22 09:04:52 +01:00
|
|
|
|
|
|
|
--[[
|
2019-07-21 08:57:44 +02:00
|
|
|
Glowing Glass Variants
|
|
|
|
|
|
|
|
]]
|
|
|
|
|
|
|
|
--[[ Rhombus Glow Glass ]]
|
|
|
|
|
2017-02-22 09:04:52 +01:00
|
|
|
minetest.register_node("darkage:glow_glass", {
|
|
|
|
description = "Medieval Glow Glass",
|
|
|
|
drawtype = "glasslike",
|
|
|
|
tiles = {"darkage_glass.png"},
|
|
|
|
use_texture_alpha=true,
|
|
|
|
paramtype = "light",
|
|
|
|
sunlight_propagates = true,
|
2019-07-21 08:57:44 +02:00
|
|
|
light_source = default.LIGHT_MAX-3,
|
2017-02-22 09:04:52 +01:00
|
|
|
groups = {cracky = 3, oddly_breakable_by_hand = 3, not_cuttable=1},
|
|
|
|
sounds = default.node_sound_glass_defaults(),
|
2019-07-21 08:57:44 +02:00
|
|
|
inventory_image = minetest.inventorycube("darkage_glow_glass.png")
|
2017-02-22 09:04:52 +01:00
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
2019-07-21 08:57:44 +02:00
|
|
|
output = "darkage:glow_glass 1",
|
|
|
|
type = "shaped",
|
2017-02-22 09:04:52 +01:00
|
|
|
recipe = {
|
2019-07-21 08:57:44 +02:00
|
|
|
{"darkage:glass"},
|
|
|
|
{"default:torch"}
|
2017-02-22 09:04:52 +01:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
-- Recycling
|
|
|
|
minetest.register_craft({
|
2019-07-21 08:57:44 +02:00
|
|
|
output = "darkage:glass 1",
|
|
|
|
type = "shaped",
|
|
|
|
recipe = {{"darkage:glow_glass"}},
|
2017-02-22 09:04:52 +01:00
|
|
|
})
|
|
|
|
|
2019-07-21 08:57:44 +02:00
|
|
|
--[[ Round Glow Glass ]]
|
|
|
|
|
|
|
|
minetest.register_node("darkage:glow_glass_round", {
|
|
|
|
description = "Medieval Round Glow Glass",
|
2017-02-22 09:04:52 +01:00
|
|
|
drawtype = "glasslike",
|
2019-07-21 08:57:44 +02:00
|
|
|
tiles = {"darkage_glass_round.png"},
|
|
|
|
use_texture_alpha=true,
|
2017-02-22 09:04:52 +01:00
|
|
|
paramtype = "light",
|
|
|
|
sunlight_propagates = true,
|
2019-07-21 08:57:44 +02:00
|
|
|
light_source = default.LIGHT_MAX-3,
|
|
|
|
groups = {cracky = 3, oddly_breakable_by_hand = 3, not_cuttable=1},
|
2017-02-22 09:04:52 +01:00
|
|
|
sounds = default.node_sound_glass_defaults(),
|
2019-07-21 08:57:44 +02:00
|
|
|
inventory_image = minetest.inventorycube("darkage_glow_glass_round.png")
|
2017-02-22 09:04:52 +01:00
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
2019-07-21 08:57:44 +02:00
|
|
|
output = "darkage:glow_glass_round 1",
|
|
|
|
type = "shaped",
|
2017-02-22 09:04:52 +01:00
|
|
|
recipe = {
|
2019-07-21 08:57:44 +02:00
|
|
|
{"darkage:glass_round"},
|
|
|
|
{"default:torch"}
|
2017-02-22 09:04:52 +01:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
2019-07-21 08:57:44 +02:00
|
|
|
-- Recycling
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "darkage:glass_round 1",
|
|
|
|
recipe = {{"darkage:glow_glass_round"}}
|
|
|
|
})
|
|
|
|
|
|
|
|
--]] Square Glow Glass ]]
|
|
|
|
|
|
|
|
minetest.register_node("darkage:glow_glass_square", {
|
|
|
|
description = "Medieval Square Glow Glass",
|
|
|
|
drawtype = "glasslike",
|
|
|
|
tiles = {"darkage_glass_square.png"},
|
|
|
|
use_texture_alpha=true,
|
|
|
|
paramtype = "light",
|
|
|
|
sunlight_propagates = true,
|
|
|
|
light_source = default.LIGHT_MAX-3,
|
|
|
|
groups = {cracky = 3, oddly_breakable_by_hand = 3, not_cuttable=1},
|
|
|
|
sounds = default.node_sound_glass_defaults(),
|
|
|
|
inventory_image = minetest.inventorycube("darkage_glow_glass_square.png")
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "darkage:glow_glass_square 1",
|
|
|
|
type = "shaped",
|
|
|
|
recipe = {
|
|
|
|
{"darkage:glass_square"},
|
|
|
|
{"default:torch"},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
--Recycling
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "darkage:glass_square 1",
|
|
|
|
recipe = {{"darkage:glow_glass_square"}}
|
|
|
|
})
|
|
|
|
|
|
|
|
--[[
|
|
|
|
Colorizable Milk Glass Variants, depending on unifieddyes mod
|
|
|
|
|
|
|
|
]]
|
|
|
|
|
2017-02-22 09:04:52 +01:00
|
|
|
if minetest.get_modpath("unifieddyes") then
|
2019-07-21 08:57:44 +02:00
|
|
|
|
|
|
|
--[[ Rhombus Milk Glass ]]
|
|
|
|
|
|
|
|
minetest.register_node("darkage:milk_glass", {
|
|
|
|
description = "Milky Medieval Glass (Good for colorization)",
|
|
|
|
drawtype = "glasslike",
|
|
|
|
tiles = {"darkage_milk_glass.png"},
|
|
|
|
use_texture_alpha=true,
|
|
|
|
paramtype = "light",
|
|
|
|
paramtype2 = "color",
|
|
|
|
palette = "unifieddyes_palette_extended.png",
|
|
|
|
sunlight_propagates = true,
|
|
|
|
groups = {cracky = 3, oddly_breakable_by_hand = 3, not_cuttable=1, ud_param2_colorable = 1},
|
|
|
|
sounds = default.node_sound_glass_defaults()
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "darkage:milk_glass",
|
|
|
|
type = "shapeless",
|
|
|
|
recipe = {"darkage:glass", "dye:white"}
|
|
|
|
})
|
|
|
|
|
|
|
|
unifieddyes.register_color_craft({
|
|
|
|
output = "darkage:milk_glass",
|
|
|
|
palette = "extended",
|
|
|
|
type = "shapeless",
|
|
|
|
neutral_node = "",
|
|
|
|
recipe = {
|
|
|
|
"darkage:milk_glass",
|
|
|
|
"MAIN_DYE"
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
-- Recycling
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "darkage:glass 1",
|
|
|
|
recipe = {{"darkage:milk_glass"}}
|
|
|
|
})
|
|
|
|
|
|
|
|
--[[ Round Milk Glass ]]
|
|
|
|
|
2017-02-22 09:04:52 +01:00
|
|
|
minetest.register_node("darkage:milk_glass_round", {
|
|
|
|
description = "Milky Medieval Round Glass (Good for colorization)",
|
|
|
|
drawtype = "glasslike",
|
|
|
|
tiles = {"darkage_milk_glass_round.png"},
|
|
|
|
use_texture_alpha=true,
|
|
|
|
paramtype = "light",
|
|
|
|
paramtype2 = "color",
|
2019-07-21 08:57:44 +02:00
|
|
|
palette = "unifieddyes_palette_extended.png",
|
2017-02-22 09:04:52 +01:00
|
|
|
sunlight_propagates = true,
|
|
|
|
groups = {cracky = 3, oddly_breakable_by_hand = 3, not_cuttable=1, ud_param2_colorable = 1},
|
2019-07-21 08:57:44 +02:00
|
|
|
sounds = default.node_sound_glass_defaults()
|
2017-02-22 09:04:52 +01:00
|
|
|
})
|
2019-07-21 08:57:44 +02:00
|
|
|
-- Craft
|
2017-02-22 09:04:52 +01:00
|
|
|
minetest.register_craft({
|
2019-07-21 08:57:44 +02:00
|
|
|
output = "darkage:milk_glass_round",
|
2017-02-22 09:04:52 +01:00
|
|
|
type = "shapeless",
|
2019-07-21 08:57:44 +02:00
|
|
|
recipe = {"darkage:glass_round", "dye:white"},
|
2017-02-22 09:04:52 +01:00
|
|
|
})
|
|
|
|
|
2019-07-21 08:57:44 +02:00
|
|
|
unifieddyes.register_color_craft({
|
|
|
|
output = "darkage:milk_glass_round",
|
|
|
|
palette = "extended",
|
|
|
|
type = "shapeless",
|
|
|
|
neutral_node = "",
|
|
|
|
recipe = {
|
|
|
|
"darkage:milk_glass_round",
|
|
|
|
"MAIN_DYE"
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
-- Recycling
|
2017-02-22 09:04:52 +01:00
|
|
|
minetest.register_craft({
|
|
|
|
output = "darkage:glass_round 1",
|
|
|
|
recipe = {{"darkage:milk_glass_round"}}
|
|
|
|
})
|
|
|
|
|
2019-07-21 08:57:44 +02:00
|
|
|
--[[ Square Milk Glass ]]
|
2017-02-22 09:04:52 +01:00
|
|
|
|
|
|
|
minetest.register_node("darkage:milk_glass_square", {
|
|
|
|
description = "Milky Medieval Square Glass (Good for colorization)",
|
|
|
|
drawtype = "glasslike",
|
|
|
|
tiles = {"darkage_milk_glass_square.png"},
|
|
|
|
use_texture_alpha=true,
|
|
|
|
paramtype = "light",
|
|
|
|
paramtype2 = "color",
|
2019-07-21 08:57:44 +02:00
|
|
|
palette = "unifieddyes_palette_extended.png",
|
2017-02-22 09:04:52 +01:00
|
|
|
sunlight_propagates = true,
|
|
|
|
groups = {cracky = 3, oddly_breakable_by_hand = 3, not_cuttable=1, ud_param2_colorable = 1},
|
2019-07-21 08:57:44 +02:00
|
|
|
sounds = default.node_sound_glass_defaults()
|
2017-02-22 09:04:52 +01:00
|
|
|
})
|
|
|
|
|
2019-07-21 08:57:44 +02:00
|
|
|
-- Craft
|
2017-02-22 09:04:52 +01:00
|
|
|
minetest.register_craft({
|
2019-07-21 08:57:44 +02:00
|
|
|
output = "darkage:milk_glass_square",
|
2017-02-22 09:04:52 +01:00
|
|
|
type = "shapeless",
|
2019-07-21 08:57:44 +02:00
|
|
|
recipe = {"darkage:glass_square", "dye:white"},
|
2017-02-22 09:04:52 +01:00
|
|
|
})
|
|
|
|
|
2019-07-21 08:57:44 +02:00
|
|
|
unifieddyes.register_color_craft({
|
|
|
|
output = "darkage:milk_glass_square",
|
|
|
|
palette = "extended",
|
|
|
|
type = "shapeless",
|
|
|
|
neutral_node = "",
|
|
|
|
recipe = {
|
|
|
|
"darkage:stained_milk_glass_square",
|
|
|
|
"MAIN_DYE"
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
-- Recycling
|
2017-02-22 09:04:52 +01:00
|
|
|
minetest.register_craft({
|
2019-07-21 08:57:44 +02:00
|
|
|
output = "darkage:glass_square",
|
2017-02-22 09:04:52 +01:00
|
|
|
recipe = {{"darkage:milk_glass_square"}}
|
|
|
|
})
|
2019-07-21 08:57:44 +02:00
|
|
|
|
|
|
|
end --unifieddyes condition
|