Update help aliases for signs
This commit is contained in:
parent
b95627057e
commit
712424eb8d
@ -1,3 +1,3 @@
|
|||||||
mcl_sounds
|
mcl_sounds?
|
||||||
mcl_core
|
mcl_core?
|
||||||
doc?
|
doc?
|
||||||
|
@ -232,7 +232,10 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
|
|||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
local node_sounds
|
||||||
|
if minetest.get_modpath("mcl_sounds") then
|
||||||
|
node_sounds = mcl_sounds.node_sound_wood_defaults()
|
||||||
|
end
|
||||||
|
|
||||||
minetest.register_node("mcl_signs:wall_sign", {
|
minetest.register_node("mcl_signs:wall_sign", {
|
||||||
description = "Sign",
|
description = "Sign",
|
||||||
@ -252,7 +255,7 @@ minetest.register_node("mcl_signs:wall_sign", {
|
|||||||
tiles = {"mcl_signs_sign.png"},
|
tiles = {"mcl_signs_sign.png"},
|
||||||
groups = sign_groups,
|
groups = sign_groups,
|
||||||
stack_max = 16,
|
stack_max = 16,
|
||||||
sounds = mcl_sounds.node_sound_wood_defaults(),
|
sounds = node_sounds,
|
||||||
|
|
||||||
on_place = function(itemstack, placer, pointed_thing)
|
on_place = function(itemstack, placer, pointed_thing)
|
||||||
local above = pointed_thing.above
|
local above = pointed_thing.above
|
||||||
@ -384,7 +387,7 @@ local ssign = {
|
|||||||
groups = sign_groups,
|
groups = sign_groups,
|
||||||
drop = "mcl_signs:wall_sign",
|
drop = "mcl_signs:wall_sign",
|
||||||
stack_max = 16,
|
stack_max = 16,
|
||||||
sounds = mcl_sounds.node_sound_wood_defaults(),
|
sounds = node_sounds,
|
||||||
|
|
||||||
on_destruct = destruct_sign,
|
on_destruct = destruct_sign,
|
||||||
on_receive_fields = function(pos, formname, fields, sender)
|
on_receive_fields = function(pos, formname, fields, sender)
|
||||||
@ -449,17 +452,22 @@ minetest.register_craft({
|
|||||||
burntime = 10,
|
burntime = 10,
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
if minetest.get_modpath("mcl_core") then
|
||||||
output = 'mcl_signs:wall_sign 3',
|
minetest.register_craft({
|
||||||
recipe = {
|
output = 'mcl_signs:wall_sign 3',
|
||||||
{'group:wood', 'group:wood', 'group:wood'},
|
recipe = {
|
||||||
{'group:wood', 'group:wood', 'group:wood'},
|
{'group:wood', 'group:wood', 'group:wood'},
|
||||||
{'', 'mcl_core:stick', ''},
|
{'group:wood', 'group:wood', 'group:wood'},
|
||||||
}
|
{'', 'mcl_core:stick', ''},
|
||||||
})
|
}
|
||||||
|
})
|
||||||
|
end
|
||||||
|
|
||||||
if minetest.get_modpath("doc") then
|
if minetest.get_modpath("doc") then
|
||||||
doc.add_entry_alias("nodes", "mcl_signs:wall_sign", "nodes", "mcl_signs:standing_sign")
|
doc.add_entry_alias("nodes", "mcl_signs:wall_sign", "nodes", "mcl_signs:standing_sign")
|
||||||
|
doc.add_entry_alias("nodes", "mcl_signs:wall_sign", "nodes", "mcl_signs:standing_sign22_5")
|
||||||
|
doc.add_entry_alias("nodes", "mcl_signs:wall_sign", "nodes", "mcl_signs:standing_sign45")
|
||||||
|
doc.add_entry_alias("nodes", "mcl_signs:wall_sign", "nodes", "mcl_signs:standing_sign67_5")
|
||||||
end
|
end
|
||||||
|
|
||||||
minetest.register_alias("signs:sign_wall", "mcl_signs:wall_sign")
|
minetest.register_alias("signs:sign_wall", "mcl_signs:wall_sign")
|
||||||
|
Loading…
Reference in New Issue
Block a user