Add some help texts for mob items

This commit is contained in:
Wuzzy 2017-03-10 04:28:51 +01:00
parent 506cc00dc6
commit 3153538d0f

View File

@ -2,6 +2,7 @@
minetest.register_craftitem("mcl_mobitems:rotten_flesh", { minetest.register_craftitem("mcl_mobitems:rotten_flesh", {
description = "Rotten Flesh", description = "Rotten Flesh",
_doc_items_longdesc = "Yuck! This piece of flesh clearly has seen better days. If you're really desperate, you can eat it for 4 hunger points, but it will poison and hurt you for a while.",
inventory_image = "mcl_mobitems_rotten_flesh.png", inventory_image = "mcl_mobitems_rotten_flesh.png",
wield_image = "mcl_mobitems_rotten_flesh.png", wield_image = "mcl_mobitems_rotten_flesh.png",
on_place = minetest.item_eat(4), on_place = minetest.item_eat(4),
@ -12,6 +13,7 @@ minetest.register_craftitem("mcl_mobitems:rotten_flesh", {
minetest.register_craftitem("mcl_mobitems:mutton", { minetest.register_craftitem("mcl_mobitems:mutton", {
description = "Raw Mutton", description = "Raw Mutton",
_doc_items_longdesc = "Raw mutton is the flesh from sheep and can be eaten for 2 hunger points.",
inventory_image = "mcl_mobitems_mutton_raw.png", inventory_image = "mcl_mobitems_mutton_raw.png",
wield_image = "mcl_mobitems_mutton_raw.png", wield_image = "mcl_mobitems_mutton_raw.png",
on_place = minetest.item_eat(2), on_place = minetest.item_eat(2),
@ -22,6 +24,7 @@ minetest.register_craftitem("mcl_mobitems:mutton", {
minetest.register_craftitem("mcl_mobitems:cooked_mutton", { minetest.register_craftitem("mcl_mobitems:cooked_mutton", {
description = "Cooked Mutton", description = "Cooked Mutton",
_doc_items_longdesc = "This is a food item which can be eaten for 6 hunger points.",
inventory_image = "mcl_mobitems_mutton_cooked.png", inventory_image = "mcl_mobitems_mutton_cooked.png",
wield_image = "mcl_mobitems_mutton_cooked.png", wield_image = "mcl_mobitems_mutton_cooked.png",
on_place = minetest.item_eat(6), on_place = minetest.item_eat(6),
@ -32,6 +35,7 @@ minetest.register_craftitem("mcl_mobitems:cooked_mutton", {
minetest.register_craftitem("mcl_mobitems:beef", { minetest.register_craftitem("mcl_mobitems:beef", {
description = "Raw Beef", description = "Raw Beef",
_doc_items_longdesc = "Raw beef is the flesh from cows and can be eaten for 3 hunger points.",
inventory_image = "mcl_mobitems_beef_raw.png", inventory_image = "mcl_mobitems_beef_raw.png",
wield_image = "mcl_mobitems_beef_raw.png", wield_image = "mcl_mobitems_beef_raw.png",
on_place = minetest.item_eat(3), on_place = minetest.item_eat(3),
@ -42,6 +46,7 @@ minetest.register_craftitem("mcl_mobitems:beef", {
minetest.register_craftitem("mcl_mobitems:cooked_beef", { minetest.register_craftitem("mcl_mobitems:cooked_beef", {
description = "Steak", description = "Steak",
_doc_items_longdesc = "Steak is cooked beef from cows and can be eaten for 8 hunger points.",
inventory_image = "mcl_mobitems_beef_cooked.png", inventory_image = "mcl_mobitems_beef_cooked.png",
wield_image = "mcl_mobitems_beef_cooked.png", wield_image = "mcl_mobitems_beef_cooked.png",
on_place = minetest.item_eat(8), on_place = minetest.item_eat(8),
@ -52,6 +57,7 @@ minetest.register_craftitem("mcl_mobitems:cooked_beef", {
minetest.register_craftitem("mcl_mobitems:chicken", { minetest.register_craftitem("mcl_mobitems:chicken", {
description = "Raw Chicken", description = "Raw Chicken",
_doc_items_longdesc = "This is a food item which can be eaten for 2 hunger points.",
inventory_image = "mcl_mobitems_chicken_raw.png", inventory_image = "mcl_mobitems_chicken_raw.png",
wield_image = "mcl_mobitems_chicken_raw.png", wield_image = "mcl_mobitems_chicken_raw.png",
on_place = minetest.item_eat(2), on_place = minetest.item_eat(2),
@ -62,6 +68,7 @@ minetest.register_craftitem("mcl_mobitems:chicken", {
minetest.register_craftitem("mcl_mobitems:cooked_chicken", { minetest.register_craftitem("mcl_mobitems:cooked_chicken", {
description = "Cooked Chicken", description = "Cooked Chicken",
_doc_items_longdesc = "This is a food item which can be eaten for 6 hunger points.",
inventory_image = "mcl_mobitems_chicken_cooked.png", inventory_image = "mcl_mobitems_chicken_cooked.png",
wield_image = "mcl_mobitems_chicken_cooked.png", wield_image = "mcl_mobitems_chicken_cooked.png",
on_place = minetest.item_eat(6), on_place = minetest.item_eat(6),
@ -72,6 +79,7 @@ minetest.register_craftitem("mcl_mobitems:cooked_chicken", {
minetest.register_craftitem("mcl_mobitems:porkchop", { minetest.register_craftitem("mcl_mobitems:porkchop", {
description = "Raw Porkchop", description = "Raw Porkchop",
_doc_items_longdesc = "A raw porkchop is the flesh from a pig and can be eaten for 3 hunger points.",
inventory_image = "mcl_mobitems_porkchop_raw.png", inventory_image = "mcl_mobitems_porkchop_raw.png",
wield_image = "mcl_mobitems_porkchop_raw.png", wield_image = "mcl_mobitems_porkchop_raw.png",
on_place = minetest.item_eat(3), on_place = minetest.item_eat(3),
@ -82,6 +90,7 @@ minetest.register_craftitem("mcl_mobitems:porkchop", {
minetest.register_craftitem("mcl_mobitems:cooked_porkchop", { minetest.register_craftitem("mcl_mobitems:cooked_porkchop", {
description = "Cooked Porkchop", description = "Cooked Porkchop",
_doc_items_longdesc = "This is a food item which can be eaten for 8 hunger points.",
inventory_image = "mcl_mobitems_porkchop_cooked.png", inventory_image = "mcl_mobitems_porkchop_cooked.png",
wield_image = "mcl_mobitems_porkchop_cooked.png", wield_image = "mcl_mobitems_porkchop_cooked.png",
on_place = minetest.item_eat(8), on_place = minetest.item_eat(8),
@ -92,6 +101,7 @@ minetest.register_craftitem("mcl_mobitems:cooked_porkchop", {
minetest.register_craftitem("mcl_mobitems:rabbit", { minetest.register_craftitem("mcl_mobitems:rabbit", {
description = "Raw Rabbit", description = "Raw Rabbit",
_doc_items_longdesc = "This is a food item which can be eaten for 3 hunger points.",
inventory_image = "mcl_mobitems_rabbit_raw.png", inventory_image = "mcl_mobitems_rabbit_raw.png",
wield_image = "mcl_mobitems_rabbit_raw.png", wield_image = "mcl_mobitems_rabbit_raw.png",
on_place = minetest.item_eat(3), on_place = minetest.item_eat(3),
@ -102,6 +112,7 @@ minetest.register_craftitem("mcl_mobitems:rabbit", {
minetest.register_craftitem("mcl_mobitems:cooked_rabbit", { minetest.register_craftitem("mcl_mobitems:cooked_rabbit", {
description = "Cooked Rabbit", description = "Cooked Rabbit",
_doc_items_longdesc = "This is a food item which can be eaten for 5 hunger points.",
inventory_image = "mcl_mobitems_rabbit_cooked.png", inventory_image = "mcl_mobitems_rabbit_cooked.png",
wield_image = "mcl_mobitems_rabbit_cooked.png", wield_image = "mcl_mobitems_rabbit_cooked.png",
on_place = minetest.item_eat(5), on_place = minetest.item_eat(5),
@ -113,6 +124,8 @@ minetest.register_craftitem("mcl_mobitems:cooked_rabbit", {
-- TODO: Clear status effects -- TODO: Clear status effects
minetest.register_craftitem("mcl_mobitems:milk_bucket", { minetest.register_craftitem("mcl_mobitems:milk_bucket", {
description = "Milk", description = "Milk",
_doc_items_longdesc = "Milk is very refreshing can be obtained by using a bucket on a cow. Drinking it will clear all status effects (TODO), but restores no hunger points.",
_doc_items_usagehelp = "Rightclick to drink the milk.",
inventory_image = "mcl_mobitems_bucket_milk.png", inventory_image = "mcl_mobitems_bucket_milk.png",
wield_image = "mcl_mobitems_bucket_milk.png", wield_image = "mcl_mobitems_bucket_milk.png",
on_place = minetest.item_eat(0, "bucket:bucket_empty"), on_place = minetest.item_eat(0, "bucket:bucket_empty"),
@ -123,6 +136,7 @@ minetest.register_craftitem("mcl_mobitems:milk_bucket", {
minetest.register_craftitem("mcl_mobitems:spider_eye", { minetest.register_craftitem("mcl_mobitems:spider_eye", {
description = "Spider Eye", description = "Spider Eye",
_doc_items_longdesc = "Spider eyes are used mainly in crafting and brewing. If you're really desperate, you can eat a spider eye for 2 hunger points, but it will poison you.",
inventory_image = "mcl_mobitems_spider_eye.png", inventory_image = "mcl_mobitems_spider_eye.png",
wield_image = "mcl_mobitems_spider_eye.png", wield_image = "mcl_mobitems_spider_eye.png",
on_place = minetest.item_eat(2), on_place = minetest.item_eat(2),
@ -133,6 +147,8 @@ minetest.register_craftitem("mcl_mobitems:spider_eye", {
minetest.register_craftitem("mcl_mobitems:bone", { minetest.register_craftitem("mcl_mobitems:bone", {
description = "Bone", description = "Bone",
_doc_items_longdesc = "Bones can be used to tame wolves so they will protect you. They are also useful as a crafting ingredient.",
_doc_items_usagehelp = "Hold the bone in your hand near wolves to attract them. Rightclick the wolf to give it a bone and tame it. You can then give commands to the tamed wolf by rightclicking it.",
inventory_image = "mcl_mobitems_bone.png", inventory_image = "mcl_mobitems_bone.png",
stack_max = 64, stack_max = 64,
groups = { craftitem=1 }, groups = { craftitem=1 },
@ -140,6 +156,7 @@ minetest.register_craftitem("mcl_mobitems:bone", {
minetest.register_craftitem("mcl_mobitems:string",{ minetest.register_craftitem("mcl_mobitems:string",{
description = "String", description = "String",
_doc_items_usagehelp = "Strings are used in crafting.",
inventory_image = "mcl_mobitems_string.png", inventory_image = "mcl_mobitems_string.png",
stack_max = 64, stack_max = 64,
groups = { craftitem = 1 }, groups = { craftitem = 1 },
@ -203,6 +220,7 @@ minetest.register_craftitem("mcl_mobitems:feather", {
minetest.register_craftitem("mcl_mobitems:rabbit_hide", { minetest.register_craftitem("mcl_mobitems:rabbit_hide", {
description = "Rabbit Hide", description = "Rabbit Hide",
_doc_items_longdesc = "Rabbit hide is used to create leather.",
wield_image = "mcl_mobitems_rabbit_hide.png", wield_image = "mcl_mobitems_rabbit_hide.png",
inventory_image = "mcl_mobitems_rabbit_hide.png", inventory_image = "mcl_mobitems_rabbit_hide.png",
groups = { craftitem = 1 }, groups = { craftitem = 1 },
@ -211,6 +229,7 @@ minetest.register_craftitem("mcl_mobitems:rabbit_hide", {
minetest.register_craftitem("mcl_mobitems:rabbit_foot", { minetest.register_craftitem("mcl_mobitems:rabbit_foot", {
description = "Rabbit's Foot", description = "Rabbit's Foot",
_doc_items_longdesc = "This item is used in brewing.",
wield_image = "mcl_mobitems_rabbit_foot.png", wield_image = "mcl_mobitems_rabbit_foot.png",
inventory_image = "mcl_mobitems_rabbit_foot.png", inventory_image = "mcl_mobitems_rabbit_foot.png",
groups = { brewitem = 1 }, groups = { brewitem = 1 },
@ -219,6 +238,8 @@ minetest.register_craftitem("mcl_mobitems:rabbit_foot", {
minetest.register_craftitem("mcl_mobitems:saddle", { minetest.register_craftitem("mcl_mobitems:saddle", {
description = "Saddle", description = "Saddle",
_doc_items_longdesc = "Saddles can be put on horses and pigs in order to mount them.",
_doc_items_usagehelp = "Rightclick a horse or pig with a saddle to put on the saddle. You can now mount the animal by rightclicking it again.",
wield_image = "mcl_mobitems_saddle.png", wield_image = "mcl_mobitems_saddle.png",
inventory_image = "mcl_mobitems_saddle.png", inventory_image = "mcl_mobitems_saddle.png",
stack_max = 1, stack_max = 1,
@ -226,6 +247,7 @@ minetest.register_craftitem("mcl_mobitems:saddle", {
minetest.register_craftitem("mcl_mobitems:rabbit_stew", { minetest.register_craftitem("mcl_mobitems:rabbit_stew", {
description = "Rabbit Stew", description = "Rabbit Stew",
_doc_items_longdesc = "Rabbit stew is a very nutricious food item which can be consumed for 10 hunger points.",
wield_image = "mcl_mobitems_rabbit_stew.png", wield_image = "mcl_mobitems_rabbit_stew.png",
inventory_image = "mcl_mobitems_rabbit_stew.png", inventory_image = "mcl_mobitems_rabbit_stew.png",
stack_max = 1, stack_max = 1,
@ -255,6 +277,8 @@ minetest.register_craftitem("mcl_mobitems:gunpowder", {
minetest.register_tool("mcl_mobitems:carrot_on_a_stick", { minetest.register_tool("mcl_mobitems:carrot_on_a_stick", {
description = "Carrot on a Stick", description = "Carrot on a Stick",
_doc_items_longdesc = "A carrot on a stick can be used on saddled pigs to ride them.",
_doc_items_usagehelp = "Rightclick a saddled pig with the carrot on a stick to mount it. You can now ride it like a horse (TODO). Pigs will also walk towards you when you just wield the carrot on a stick.",
wield_image = "mcl_mobitems_carrot_on_a_stick.png", wield_image = "mcl_mobitems_carrot_on_a_stick.png",
inventory_image = "mcl_mobitems_carrot_on_a_stick.png", inventory_image = "mcl_mobitems_carrot_on_a_stick.png",
groups = { transport = 1 }, groups = { transport = 1 },