Update help aliases for signs

This commit is contained in:
Wuzzy 2017-07-26 16:13:19 +02:00
parent b95627057e
commit 712424eb8d
2 changed files with 21 additions and 13 deletions

View File

@ -1,3 +1,3 @@
mcl_sounds
mcl_core
mcl_sounds?
mcl_core?
doc?

View File

@ -232,7 +232,10 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
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", {
description = "Sign",
@ -252,7 +255,7 @@ minetest.register_node("mcl_signs:wall_sign", {
tiles = {"mcl_signs_sign.png"},
groups = sign_groups,
stack_max = 16,
sounds = mcl_sounds.node_sound_wood_defaults(),
sounds = node_sounds,
on_place = function(itemstack, placer, pointed_thing)
local above = pointed_thing.above
@ -384,7 +387,7 @@ local ssign = {
groups = sign_groups,
drop = "mcl_signs:wall_sign",
stack_max = 16,
sounds = mcl_sounds.node_sound_wood_defaults(),
sounds = node_sounds,
on_destruct = destruct_sign,
on_receive_fields = function(pos, formname, fields, sender)
@ -449,6 +452,7 @@ minetest.register_craft({
burntime = 10,
})
if minetest.get_modpath("mcl_core") then
minetest.register_craft({
output = 'mcl_signs:wall_sign 3',
recipe = {
@ -457,9 +461,13 @@ minetest.register_craft({
{'', 'mcl_core:stick', ''},
}
})
end
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_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
minetest.register_alias("signs:sign_wall", "mcl_signs:wall_sign")