Fix broken stained glass crafting (no groups)
This commit is contained in:
parent
63d1272110
commit
609a967c32
|
@ -717,7 +717,7 @@ minetest.register_abm({
|
||||||
------------------------
|
------------------------
|
||||||
-- Create Color Glass --
|
-- Create Color Glass --
|
||||||
------------------------
|
------------------------
|
||||||
function mcl_core.add_glass(desc, recipeitem, color)
|
function mcl_core.add_glass(desc, recipeitem, colorgroup, color)
|
||||||
|
|
||||||
minetest.register_node("mcl_core:glass_"..color, {
|
minetest.register_node("mcl_core:glass_"..color, {
|
||||||
description = desc,
|
description = desc,
|
||||||
|
@ -730,6 +730,7 @@ function mcl_core.add_glass(desc, recipeitem, color)
|
||||||
sunlight_propagates = "true",
|
sunlight_propagates = "true",
|
||||||
use_texture_alpha = true,
|
use_texture_alpha = true,
|
||||||
stack_max = 64,
|
stack_max = 64,
|
||||||
|
-- TODO: Add color to groups
|
||||||
groups = {handy=1, glass=1, building_block=1, material_glass=1},
|
groups = {handy=1, glass=1, building_block=1, material_glass=1},
|
||||||
sounds = mcl_sounds.node_sound_glass_defaults(),
|
sounds = mcl_sounds.node_sound_glass_defaults(),
|
||||||
drop = "",
|
drop = "",
|
||||||
|
@ -741,7 +742,7 @@ function mcl_core.add_glass(desc, recipeitem, color)
|
||||||
output = 'mcl_core:glass_'..color..' 8',
|
output = 'mcl_core:glass_'..color..' 8',
|
||||||
recipe = {
|
recipe = {
|
||||||
{'mcl_core:glass','mcl_core:glass','mcl_core:glass'},
|
{'mcl_core:glass','mcl_core:glass','mcl_core:glass'},
|
||||||
{'mcl_core:glass','group:dye,'..recipeitem,'mcl_core:glass'},
|
{'mcl_core:glass',recipeitem,'mcl_core:glass'},
|
||||||
{'mcl_core:glass','mcl_core:glass','mcl_core:glass'},
|
{'mcl_core:glass','mcl_core:glass','mcl_core:glass'},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
|
@ -1355,22 +1355,22 @@ minetest.register_node("mcl_core:glass", {
|
||||||
})
|
})
|
||||||
|
|
||||||
---- colored glass
|
---- colored glass
|
||||||
mcl_core.add_glass( "Red Stained Glass", "basecolor_red", "red")
|
mcl_core.add_glass( "Red Stained Glass", "mcl_dye:red", "basecolor_red", "red")
|
||||||
mcl_core.add_glass( "Green Stained Glass", "unicolor_dark_green", "green")
|
mcl_core.add_glass( "Green Stained Glass", "mcl_dye:dark_green", "unicolor_dark_green", "green")
|
||||||
mcl_core.add_glass( "Blue Stained Glass", "basecolor_blue", "blue")
|
mcl_core.add_glass( "Blue Stained Glass", "mcl_dye:blue", "basecolor_blue", "blue")
|
||||||
mcl_core.add_glass( "Light Blue Stained Glass", "unicolor_light_blue", "light_blue")
|
mcl_core.add_glass( "Light Blue Stained Glass", "mcl_dye:lightblue", "unicolor_light_blue", "light_blue")
|
||||||
mcl_core.add_glass( "Black Stained Glass", "basecolor_black", "black")
|
mcl_core.add_glass( "Black Stained Glass", "mcl_dye:black", "basecolor_black", "black")
|
||||||
mcl_core.add_glass( "White Stained Glass", "basecolor_white", "white")
|
mcl_core.add_glass( "White Stained Glass", "mcl_dye:white", "basecolor_white", "white")
|
||||||
mcl_core.add_glass( "Yellow Stained Glass", "basecolor_yellow", "yellow")
|
mcl_core.add_glass( "Yellow Stained Glass", "mcl_dye:yellow", "basecolor_yellow", "yellow")
|
||||||
mcl_core.add_glass( "Brown Stained Glass", "unicolor_dark_orange", "brown")
|
mcl_core.add_glass( "Brown Stained Glass", "mcl_dye:brown", "unicolor_dark_orange", "brown")
|
||||||
mcl_core.add_glass( "Orange Stained Glass", "excolor_orange", "orange")
|
mcl_core.add_glass( "Orange Stained Glass", "mcl_dye:orange", "excolor_orange", "orange")
|
||||||
mcl_core.add_glass( "Pink Stained Glass", "unicolor_light_red", "pink")
|
mcl_core.add_glass( "Pink Stained Glass", "mcl_dye:pink", "unicolor_light_red", "pink")
|
||||||
mcl_core.add_glass( "Grey Stained Glass", "unicolor_darkgrey", "gray")
|
mcl_core.add_glass( "Grey Stained Glass", "mcl_dye:dark_grey", "unicolor_darkgrey", "gray")
|
||||||
mcl_core.add_glass( "Lime Stained Glass", "basecolor_green", "lime")
|
mcl_core.add_glass( "Lime Stained Glass", "mcl_dye:green", "basecolor_green", "lime")
|
||||||
mcl_core.add_glass( "Light Grey Stained Glass", "basecolor_grey", "silver")
|
mcl_core.add_glass( "Light Grey Stained Glass", "mcl_dye:grey", "basecolor_grey", "silver")
|
||||||
mcl_core.add_glass( "Magenta Stained Glass", "basecolor_magenta", "magenta")
|
mcl_core.add_glass( "Magenta Stained Glass", "mcl_dye:magenta", "basecolor_magenta", "magenta")
|
||||||
mcl_core.add_glass( "Purple Stained Glass", "excolor_violet", "purple")
|
mcl_core.add_glass( "Purple Stained Glass", "mcl_dye:violet", "excolor_violet", "purple")
|
||||||
mcl_core.add_glass( "Cyan Stained Glass", "basecolor_cyan", "cyan")
|
mcl_core.add_glass( "Cyan Stained Glass", "mcl_dye:cyan", "basecolor_cyan", "cyan")
|
||||||
|
|
||||||
minetest.register_node("mcl_core:ladder", {
|
minetest.register_node("mcl_core:ladder", {
|
||||||
description = "Ladder",
|
description = "Ladder",
|
||||||
|
|
Loading…
Reference in New Issue