mirror of
https://github.com/mt-mods/basic_signs.git
synced 2025-06-28 22:46:04 +02:00
Compare commits
3 Commits
2019-09-15
...
2019-09-21
Author | SHA1 | Date | |
---|---|---|---|
c4f0b331c0 | |||
2f6943495a | |||
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", "" }
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
55
init.lua
55
init.lua
@ -35,11 +35,13 @@ function basic_signs.determine_sign_type(pos, placer, itemstack, pointed_thing)
|
|||||||
not placer:get_player_control().sneak then
|
not placer:get_player_control().sneak then
|
||||||
return minetest.registered_nodes[pt_name].on_rightclick(pos, node, placer, itemstack, pointed_thing)
|
return minetest.registered_nodes[pt_name].on_rightclick(pos, node, placer, itemstack, pointed_thing)
|
||||||
elseif signs_lib.check_for_pole(pos, pointed_thing) then
|
elseif signs_lib.check_for_pole(pos, pointed_thing) then
|
||||||
minetest.swap_node(pos, {name = "default:sign_wall_wood_onpole", param2 = node.param2})
|
minetest.swap_node(pos, {name = "default:sign_wall_wood_onpole", param2 = node.param2})
|
||||||
|
elseif signs_lib.check_for_horizontal_pole(pos, pointed_thing) then
|
||||||
|
minetest.swap_node(pos, {name = "default:sign_wall_wood_onpole_horiz", param2 = node.param2})
|
||||||
elseif signs_lib.check_for_ceiling(pointed_thing) then
|
elseif signs_lib.check_for_ceiling(pointed_thing) then
|
||||||
minetest.swap_node(pos, {name = "default:sign_wall_wood_hanging", param2 = newparam2})
|
minetest.swap_node(pos, {name = "default:sign_wall_wood_hanging", param2 = newparam2})
|
||||||
elseif basic_signs.check_for_floor(pointed_thing) then
|
elseif basic_signs.check_for_floor(pointed_thing) then
|
||||||
minetest.swap_node(pos, {name = "basic_signs:yard_sign", param2 = newparam2})
|
minetest.swap_node(pos, {name = "basic_signs:yard_sign", param2 = newparam2})
|
||||||
end
|
end
|
||||||
signs_lib.update_sign(pos)
|
signs_lib.update_sign(pos)
|
||||||
|
|
||||||
@ -71,7 +73,47 @@ signs_lib.register_sign("basic_signs:sign_wall_locked", {
|
|||||||
locked = true,
|
locked = true,
|
||||||
entity_info = "standard",
|
entity_info = "standard",
|
||||||
allow_hanging = true,
|
allow_hanging = true,
|
||||||
allow_widefont = true
|
allow_widefont = true,
|
||||||
|
allow_onpole = true,
|
||||||
|
allow_onpole_horizontal = 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,
|
||||||
|
allow_onpole = true,
|
||||||
|
allow_onpole_horizontal = 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,
|
||||||
|
allow_onpole = true,
|
||||||
|
allow_onpole_horizontal = 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")
|
||||||
@ -111,7 +153,9 @@ for i, color in ipairs(sign_colors) do
|
|||||||
yaw = signs_lib.standard_yaw
|
yaw = signs_lib.standard_yaw
|
||||||
},
|
},
|
||||||
allow_hanging = true,
|
allow_hanging = true,
|
||||||
allow_widefont = true
|
allow_widefont = true,
|
||||||
|
allow_onpole = true,
|
||||||
|
allow_onpole_horizontal = true
|
||||||
})
|
})
|
||||||
|
|
||||||
table.insert(signs_lib.lbm_restore_nodes, "signs:sign_wall_"..color[1])
|
table.insert(signs_lib.lbm_restore_nodes, "signs:sign_wall_"..color[1])
|
||||||
@ -135,7 +179,6 @@ signs_lib.register_sign("basic_signs:yard_sign", {
|
|||||||
},
|
},
|
||||||
groups = wgroups,
|
groups = wgroups,
|
||||||
drop = "default:sign_wall_wood",
|
drop = "default:sign_wall_wood",
|
||||||
allow_onpole = false,
|
|
||||||
allow_widefont = true
|
allow_widefont = true
|
||||||
})
|
})
|
||||||
|
|
||||||
|
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 |
Reference in New Issue
Block a user