1
0
Fork 0

Add many farming-related help texts

This commit is contained in:
Wuzzy 2017-03-11 18:23:30 +01:00
parent cd53fc401b
commit 3928193652
6 changed files with 20 additions and 0 deletions

View File

@ -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",

View File

@ -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),

View File

@ -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",

View File

@ -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

View File

@ -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",

View File

@ -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)