mirror of
https://github.com/mt-mods/basic_signs.git
synced 2024-12-24 09:50:29 +01:00
Add glass and obsidian glass signs
requires signs_lib commit c66c1b7 or later (otherwise the entity won't be visible from the back side).
This commit is contained in:
parent
7c235ec779
commit
7f4bf6daf1
37
crafting.lua
37
crafting.lua
@ -136,3 +136,40 @@ minetest.register_craft( {
|
|||||||
{ "steel:sheet_metal", "steel:sheet_metal", "steel:sheet_metal" }
|
{ "steel:sheet_metal", "steel:sheet_metal", "steel:sheet_metal" }
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
minetest.register_craft( {
|
||||||
|
output = "basic_signs:sign_wall_glass 8",
|
||||||
|
recipe = {
|
||||||
|
{ "default:glass", "default:glass", "default:glass" },
|
||||||
|
{ "default:glass", "default:glass", "default:glass" },
|
||||||
|
{ "", "default:glass", "" }
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft( {
|
||||||
|
output = "basic_signs:sign_wall_obsidian_glass 8",
|
||||||
|
recipe = {
|
||||||
|
{ "default:obsidian_glass", "default:obsidian_glass", "default:obsidian_glass" },
|
||||||
|
{ "default:obsidian_glass", "default:obsidian_glass", "default:obsidian_glass" },
|
||||||
|
{ "", "default:obsidian_glass", "" }
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft( {
|
||||||
|
output = "basic_signs:sign_wall_glass 3",
|
||||||
|
recipe = {
|
||||||
|
{ "xpanes:pane_flat", "xpanes:pane_flat", "xpanes:pane_flat" },
|
||||||
|
{ "xpanes:pane_flat", "xpanes:pane_flat", "xpanes:pane_flat" },
|
||||||
|
{ "", "xpanes:pane_flat", "" }
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft( {
|
||||||
|
output = "basic_signs:sign_wall_obsidian_glass 3",
|
||||||
|
recipe = {
|
||||||
|
{ "xpanes:obsidian_pane_flat", "xpanes:obsidian_pane_flat", "xpanes:obsidian_pane_flat" },
|
||||||
|
{ "xpanes:obsidian_pane_flat", "xpanes:obsidian_pane_flat", "xpanes:obsidian_pane_flat" },
|
||||||
|
{ "", "xpanes:obsidian_pane_flat", "" }
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
34
init.lua
34
init.lua
@ -74,6 +74,40 @@ signs_lib.register_sign("basic_signs:sign_wall_locked", {
|
|||||||
allow_widefont = true
|
allow_widefont = true
|
||||||
})
|
})
|
||||||
|
|
||||||
|
signs_lib.register_sign("basic_signs:sign_wall_glass", {
|
||||||
|
description = S("Glass Sign"),
|
||||||
|
tiles = {
|
||||||
|
{ name = "basic_signs_sign_wall_glass.png", backface_culling = true},
|
||||||
|
"basic_signs_sign_wall_glass_edges.png",
|
||||||
|
},
|
||||||
|
inventory_image = "basic_signs_sign_wall_glass_inv.png",
|
||||||
|
default_color = "c",
|
||||||
|
locked = true,
|
||||||
|
entity_info = "standard",
|
||||||
|
sounds = default.node_sound_glass_defaults(),
|
||||||
|
groups = {cracky = 3, oddly_breakable_by_hand = 3},
|
||||||
|
allow_hanging = true,
|
||||||
|
allow_widefont = true,
|
||||||
|
use_texture_alpha = true,
|
||||||
|
})
|
||||||
|
|
||||||
|
signs_lib.register_sign("basic_signs:sign_wall_obsidian_glass", {
|
||||||
|
description = S("Obsidian Glass Sign"),
|
||||||
|
tiles = {
|
||||||
|
{ name = "basic_signs_sign_wall_obsidian_glass.png", backface_culling = true},
|
||||||
|
"basic_signs_sign_wall_obsidian_glass_edges.png",
|
||||||
|
},
|
||||||
|
inventory_image = "basic_signs_sign_wall_obsidian_glass_inv.png",
|
||||||
|
default_color = "c",
|
||||||
|
locked = true,
|
||||||
|
entity_info = "standard",
|
||||||
|
sounds = default.node_sound_glass_defaults(),
|
||||||
|
groups = {cracky = 3},
|
||||||
|
allow_hanging = true,
|
||||||
|
allow_widefont = true,
|
||||||
|
use_texture_alpha = true,
|
||||||
|
})
|
||||||
|
|
||||||
minetest.register_alias("locked_sign:sign_wall_locked", "basic_signs:sign_wall_locked")
|
minetest.register_alias("locked_sign:sign_wall_locked", "basic_signs:sign_wall_locked")
|
||||||
|
|
||||||
|
|
||||||
|
BIN
textures/basic_signs_sign_wall_glass.png
Normal file
BIN
textures/basic_signs_sign_wall_glass.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.1 KiB |
BIN
textures/basic_signs_sign_wall_glass_edges.png
Normal file
BIN
textures/basic_signs_sign_wall_glass_edges.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 178 B |
BIN
textures/basic_signs_sign_wall_obsidian_glass.png
Normal file
BIN
textures/basic_signs_sign_wall_obsidian_glass.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 592 B |
BIN
textures/basic_signs_sign_wall_obsidian_glass_edges.png
Normal file
BIN
textures/basic_signs_sign_wall_obsidian_glass_edges.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 156 B |
Loading…
Reference in New Issue
Block a user