1
0
Fork 0

Add Help aliases for premature farming plants

This commit is contained in:
Wuzzy 2017-03-21 04:56:16 +01:00
parent c051ae7ae9
commit 767d7cbc3e
8 changed files with 37 additions and 1 deletions

View File

@ -140,3 +140,9 @@ minetest.register_craft({
}) })
mcl_farming:add_plant("mcl_farming:beetroot", {"mcl_farming:beetroot_0", "mcl_farming:beetroot_1", "mcl_farming:beetroot_2"}, 68, 3) mcl_farming:add_plant("mcl_farming:beetroot", {"mcl_farming:beetroot_0", "mcl_farming:beetroot_1", "mcl_farming:beetroot_2"}, 68, 3)
if minetest.get_modpath("doc") then
for i=1,2 do
doc.add_entry_alias("nodes", "mcl_farming:beetroot_0", "nodes", "mcl_farming:beetroot_"..i)
end
end

View File

@ -125,3 +125,9 @@ minetest.register_craft({
}) })
mcl_farming:add_plant("mcl_farming:carrot", {"mcl_farming:carrot_1", "mcl_farming:carrot_2", "mcl_farming:carrot_3"}, 50, 20) mcl_farming:add_plant("mcl_farming:carrot", {"mcl_farming:carrot_1", "mcl_farming:carrot_2", "mcl_farming:carrot_3"}, 50, 20)
if minetest.get_modpath("doc") then
for i=2,3 do
doc.add_entry_alias("nodes", "mcl_farming:carrot_1", "nodes", "mcl_farming:carrot_"..i)
end
end

View File

@ -3,3 +3,4 @@ mcl_sounds
bucket bucket
mcl_wool mcl_wool
mcl_torches mcl_torches
doc?

View File

@ -130,4 +130,8 @@ minetest.register_craft({
} }
}) })
if minetest.get_modpath("doc") then
for i=2,8 do
doc.add_entry_alias("nodes", "mcl_farming:melontige_1", "nodes", "mcl_farming:melontige_"..i)
end
end

View File

@ -115,3 +115,7 @@ minetest.register_craft({
}) })
mcl_farming:add_plant("mcl_farming:potato", {"mcl_farming:potato_1", "mcl_farming:potato_2"}, 50, 20) mcl_farming:add_plant("mcl_farming:potato", {"mcl_farming:potato_1", "mcl_farming:potato_2"}, 50, 20)
if minetest.get_modpath("doc") then
doc.add_entry_alias("nodes", "mcl_farming:potato_1", "nodes", "mcl_farming:potato_2")
end

View File

@ -138,3 +138,9 @@ minetest.register_craft({
output = "mcl_farming:pumpkin_pie", output = "mcl_farming:pumpkin_pie",
recipe = {"mcl_farming:pumpkin_face", "mcl_core:sugar", "mcl_throwing:egg"}, recipe = {"mcl_farming:pumpkin_face", "mcl_core:sugar", "mcl_throwing:egg"},
}) })
if minetest.get_modpath("doc") then
for i=2,8 do
doc.add_entry_alias("nodes", "mcl_farming:pumpkin_1", "nodes", "mcl_farming:pumpkin_"..i)
end
end

View File

@ -262,6 +262,10 @@ function mcl_farming:add_gourd(full_unconnected_stem, connected_stem_basename, s
sounds = mcl_sounds.node_sound_leaves_defaults(), sounds = mcl_sounds.node_sound_leaves_defaults(),
_mcl_blast_resistance = 0, _mcl_blast_resistance = 0,
}) })
if minetest.get_modpath("doc") then
doc.add_entry_alias("nodes", full_unconnected_stem, "nodes", connected_stem_names[i])
end
end end
minetest.register_abm({ minetest.register_abm({

View File

@ -189,3 +189,8 @@ minetest.register_craft({
} }
}) })
if minetest.get_modpath("doc") then
for i=2,3 do
doc.add_entry_alias("nodes", "mcl_farming:wheat_1", "nodes", "mcl_farming:wheat_"..i)
end
end