mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-12-23 00:19:32 +01:00
Fix stained glass
This commit is contained in:
parent
e0de4268e6
commit
76b5c30fd1
2 changed files with 23 additions and 21 deletions
|
@ -898,11 +898,11 @@ minetest.register_abm({
|
||||||
------------------------
|
------------------------
|
||||||
function AddGlass(desc, recipeitem, color)
|
function AddGlass(desc, recipeitem, color)
|
||||||
|
|
||||||
minetest.register_node("default:glass"..color, {
|
minetest.register_node("default:glass_"..color, {
|
||||||
description = desc,
|
description = desc,
|
||||||
drawtype = "glasslike",
|
drawtype = "glasslike",
|
||||||
tile_images = {"xpanes_pane_glass"..color..".png"},
|
tile_images = {"xpanes_pane_glass_"..color..".png"},
|
||||||
inventory_image = minetest.inventorycube("xpanes_pane_glass"..color..".png"),
|
inventory_image = minetest.inventorycube("xpanes_pane_glass_"..color..".png"),
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
use_texture_alpha = true,
|
use_texture_alpha = true,
|
||||||
stack_max = 64,
|
stack_max = 64,
|
||||||
|
@ -912,9 +912,11 @@ function AddGlass(desc, recipeitem, color)
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = 'default:glass_'..color..'',
|
output = 'default:glass_'..color..' 8',
|
||||||
recipe = {
|
recipe = {
|
||||||
{'default:glass', 'group:dye,'..recipeitem}
|
{'default:glass','default:glass','default:glass'},
|
||||||
|
{'default:glass','group:dye,'..recipeitem,'default:glass'},
|
||||||
|
{'default:glass','default:glass','default:glass'},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
|
@ -818,22 +818,22 @@ minetest.register_node("default:glass", {
|
||||||
})
|
})
|
||||||
|
|
||||||
---- colored glass
|
---- colored glass
|
||||||
AddGlass( "Red Glass", "basecolor_red", "_red")
|
AddGlass( "Red Stained Glass", "basecolor_red", "red")
|
||||||
AddGlass( "Green Glass", "unicolor_dark_green", "_green")
|
AddGlass( "Green Stained Glass", "unicolor_dark_green", "green")
|
||||||
AddGlass( "Blue Glass", "basecolor_blue", "_blue")
|
AddGlass( "Blue Stained Glass", "basecolor_blue", "blue")
|
||||||
AddGlass( "Light Blue Glass", "basecolor_cyan", "_light_blue")
|
AddGlass( "Light Blue Stained Glass", "basecolor_cyan", "light_blue")
|
||||||
AddGlass( "Black Glass", "basecolor_black", "_black")
|
AddGlass( "Black Stained Glass", "basecolor_black", "black")
|
||||||
AddGlass( "White Glass", "basecolor_white", "_white")
|
AddGlass( "White Stained Glass", "basecolor_white", "white")
|
||||||
AddGlass( "Yellow Glass", "basecolor_yellow", "_yellow")
|
AddGlass( "Yellow Stained Glass", "basecolor_yellow", "yellow")
|
||||||
AddGlass( "Brown Glass", "unicolor_dark_orange", "_brown")
|
AddGlass( "Brown Stained Glass", "unicolor_dark_orange", "brown")
|
||||||
AddGlass( "Orange Glass", "excolor_orange", "_orange")
|
AddGlass( "Orange Stained Glass", "excolor_orange", "orange")
|
||||||
AddGlass( "Pink Glass", "unicolor_light_red", "_pink")
|
AddGlass( "Pink Stained Glass", "unicolor_light_red", "pink")
|
||||||
AddGlass( "Gray Glass", "unicolor_darkgrey", "_gray")
|
AddGlass( "Gray Stained Glass", "unicolor_darkgrey", "gray")
|
||||||
AddGlass( "Lime Glass", "basecolor_green", "_lime")
|
AddGlass( "Lime Stained Glass", "basecolor_green", "lime")
|
||||||
AddGlass( "Light Gray Glass", "basecolor_grey", "_silver")
|
AddGlass( "Light Gray Stained Glass", "basecolor_grey", "silver")
|
||||||
AddGlass( "Magenta Glass", "basecolor_magenta", "_magenta")
|
AddGlass( "Magenta Stained Glass", "basecolor_magenta", "magenta")
|
||||||
AddGlass( "Purple Glass", "excolor_violet", "_purple")
|
AddGlass( "Purple Stained Glass", "excolor_violet", "purple")
|
||||||
AddGlass( "Cyan Glass", "basecolor_cyan", "_cyan")
|
AddGlass( "Cyan Stained Glass", "basecolor_cyan", "cyan")
|
||||||
|
|
||||||
minetest.register_node("default:rail", {
|
minetest.register_node("default:rail", {
|
||||||
description = "Rail",
|
description = "Rail",
|
||||||
|
|
Loading…
Reference in a new issue