From 3928193652ec68f836715ed9e20a85335bec941f Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Sat, 11 Mar 2017 18:23:30 +0100 Subject: [PATCH] Add many farming-related help texts --- mods/ITEMS/mcl_farming/beetroot.lua | 5 +++++ mods/ITEMS/mcl_farming/carrots.lua | 2 ++ mods/ITEMS/mcl_farming/melon.lua | 2 ++ mods/ITEMS/mcl_farming/potatoes.lua | 5 +++++ mods/ITEMS/mcl_farming/pumpkin.lua | 4 ++++ mods/ITEMS/mcl_farming/wheat.lua | 2 ++ 6 files changed, 20 insertions(+) diff --git a/mods/ITEMS/mcl_farming/beetroot.lua b/mods/ITEMS/mcl_farming/beetroot.lua index ab14602985..5b07cdf7fc 100644 --- a/mods/ITEMS/mcl_farming/beetroot.lua +++ b/mods/ITEMS/mcl_farming/beetroot.lua @@ -1,5 +1,7 @@ minetest.register_craftitem("mcl_farming:beetroot_seeds", { description = "Beetroot Seeds", + _doc_items_longdesc = "Grows into a beetroot plant. Chickens like beetroot seeds.", + _doc_items_usagehelp = "Place the beetroot seeds on farmland (which can be created with a hoe) to plant a beetroot plant. They grow in sunlight and grow faster on hydrated farmland. Rightclick an animal to feed it beetroot seeds.", groups = { craftitem=1 }, inventory_image = "mcl_farming_beetroot_seeds.png", wield_image = "mcl_farming_beetroot_seeds.png", @@ -93,6 +95,8 @@ minetest.register_node("mcl_farming:beetroot", { minetest.register_craftitem("mcl_farming:beetroot_item", { description = "Beetroot", + _doc_items_longdesc = "Beetroots can be eaten for 1 hunger point. Pigs like beetroots, too.", + _doc_items_usagehelp = "Hold it in your hand and right-click to eat it. Rightclick an animal to feed it.", inventory_image = "mcl_farming_beetroot.png", wield_image = "mcl_farming_beetroot.png", on_place = minetest.item_eat(1), @@ -102,6 +106,7 @@ minetest.register_craftitem("mcl_farming:beetroot_item", { minetest.register_craftitem("mcl_farming:beetroot_soup", { description = "Beetroot Soup", + _doc_items_longdesc = "Beetroot soup is a healthy soup which can be consumed for 6 hunger points.", stack_max = 1, inventory_image = "mcl_farming_beetroot_soup.png", wield_image = "mcl_farming_beetroot_soup.png", diff --git a/mods/ITEMS/mcl_farming/carrots.lua b/mods/ITEMS/mcl_farming/carrots.lua index 4fc5d29dff..abaa97213e 100644 --- a/mods/ITEMS/mcl_farming/carrots.lua +++ b/mods/ITEMS/mcl_farming/carrots.lua @@ -77,6 +77,8 @@ minetest.register_node("mcl_farming:carrot", { minetest.register_craftitem("mcl_farming:carrot_item", { description = "Carrot", + _doc_items_longdesc = "Carrots can be eaten and planted. When eaten, a carrot restores 3 hunger points. Pigs and rabbits like carrots.", + _doc_items_usagehelp = "Hold it in your hand and rightclick to eat it. Place it on top of farmland to plant the carrot. It grows in sunlight and grows faster on hydrated farmland. Rightclick an animal to feed it.", inventory_image = "farming_carrot.png", groups = { food = 2, eatable = 3 }, on_secondary_use = minetest.item_eat(3), diff --git a/mods/ITEMS/mcl_farming/melon.lua b/mods/ITEMS/mcl_farming/melon.lua index 24f5fdb2b0..dd90c08868 100644 --- a/mods/ITEMS/mcl_farming/melon.lua +++ b/mods/ITEMS/mcl_farming/melon.lua @@ -248,6 +248,8 @@ minetest.register_node("mcl_farming:melontige_linked_b", { minetest.register_craftitem("mcl_farming:melon_seeds", { description = "Melon Seeds", + _doc_items_longdesc = "Grows into a melon. Chickens like melon seeds.", + _doc_items_usagehelp = "Place the melon seeds on farmland (which can be created with a hoe) to plant a melon stem. Melons grow in sunlight and grow faster on hydrated farmland. Rightclick an animal to feed it melon seeds.", stack_max = 64, groups = { craftitem=1 }, inventory_image = "farming_melon_seed.png", diff --git a/mods/ITEMS/mcl_farming/potatoes.lua b/mods/ITEMS/mcl_farming/potatoes.lua index 362caffb04..862d383ff8 100644 --- a/mods/ITEMS/mcl_farming/potatoes.lua +++ b/mods/ITEMS/mcl_farming/potatoes.lua @@ -58,6 +58,8 @@ minetest.register_node("mcl_farming:potato", { minetest.register_craftitem("mcl_farming:potato_item", { description = "Potato", + _doc_items_longdesc = "Potatoes are food items which can be eaten, cooked in the furnace and planted. Eating a potato restores 1 hunger point. Pigs like potatoes.", + _doc_items_usagehelp = "Hold it in your hand and rightclick to eat it. Place it on top of farmland to plant it. It grows in sunlight and grows faster on hydrated farmland. Rightclick an animal to feed it.", inventory_image = "farming_potato.png", groups = { food = 2, eatable = 1 }, stack_max = 64, @@ -74,6 +76,7 @@ minetest.register_craftitem("mcl_farming:potato_item", { minetest.register_craftitem("mcl_farming:potato_item_baked", { description = "Baked Potato", + _doc_items_longdesc = "Baked potatoes are foot items which can be eaten for 6 hunger points.", stack_max = 64, inventory_image = "farming_potato_baked.png", on_place = minetest.item_eat(6), @@ -83,6 +86,8 @@ minetest.register_craftitem("mcl_farming:potato_item_baked", { minetest.register_craftitem("mcl_farming:potato_item_poison", { description = "Poisonous Potato", + _doc_items_longdesc = "This potato doesn't look healthy. Eating it will only poison you.", + _doc_items_usagehelp = "Hold it in your hand and rightclick to eat it. But why would you want to do this?", stack_max = 64, inventory_image = "farming_potato_poison.png", -- TODO: Cause status effects diff --git a/mods/ITEMS/mcl_farming/pumpkin.lua b/mods/ITEMS/mcl_farming/pumpkin.lua index 39247c44f8..5f1a0b98c9 100644 --- a/mods/ITEMS/mcl_farming/pumpkin.lua +++ b/mods/ITEMS/mcl_farming/pumpkin.lua @@ -1,5 +1,7 @@ minetest.register_craftitem("mcl_farming:pumpkin_seeds", { description = "Pumpkin Seeds", + _doc_items_longdesc = "Grows into a pumpkin. Chickens like pumpkin seeds.", + _doc_items_usagehelp = "Place the pumpkin seeds on farmland (which can be created with a hoe) to plant a pumpkin stem. Pumpkins grow in sunlight and grow faster on hydrated farmland. Rightclick an animal to feed it pumpkin seeds.", stack_max = 64, inventory_image = "farming_pumpkin_seed.png", groups = { craftitem=1 }, @@ -306,6 +308,7 @@ minetest.register_abm({ minetest.register_node("mcl_farming:pumpkin_face_light", { description = "Jack o'Lantern", + _doc_items_longdesc = "A Jack o'lantern is a traditional halloween decoration made from a pumpkin and glows brightly.", is_ground_content = false, stack_max = 64, paramtype2 = "facedir", @@ -331,6 +334,7 @@ minetest.register_craft({ minetest.register_craftitem("mcl_farming:pumpkin_pie", { description = "Pumpkin Pie", + _doc_items_longdesc = "A pumpkin pie is very filling and can be eaten for 8 hunger points.", stack_max = 64, inventory_image = "mcl_farming_pumpkin_pie.png", wield_image = "mcl_farming_pumpkin_pie.png", diff --git a/mods/ITEMS/mcl_farming/wheat.lua b/mods/ITEMS/mcl_farming/wheat.lua index f7370dc57d..ae5e05fb65 100644 --- a/mods/ITEMS/mcl_farming/wheat.lua +++ b/mods/ITEMS/mcl_farming/wheat.lua @@ -1,5 +1,7 @@ minetest.register_craftitem("mcl_farming:wheat_seeds", { description = "Wheat Seeds", + _doc_items_longdesc = "Grows into a wheat plant. Chickens like wheat seeds.", + _doc_items_usagehelp = "Place the wheat seeds on farmland (which can be created with a hoe) to plant a wheat plant. They grow in sunlight and grow faster on hydrated farmland. Rightclick an animal to feed it wheat seeds.", groups = { craftitem=1 }, inventory_image = "farming_wheat_seed.png", on_place = function(itemstack, placer, pointed_thing)