MineClone5/mods/ITEMS/mcl_mobitems/init.lua

408 lines
14 KiB
Lua
Raw Normal View History

-- TODO: Add special status effects for raw flesh
minetest.register_craftitem("mcl_mobitems:rotten_flesh", {
description = "Rotten Flesh",
2017-03-10 04:28:51 +01:00
_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",
wield_image = "mcl_mobitems_rotten_flesh.png",
on_place = minetest.item_eat(4),
on_secondary_use = minetest.item_eat(4),
groups = { food = 2, eatable = 4 },
stack_max = 64,
})
minetest.register_craftitem("mcl_mobitems:mutton", {
description = "Raw Mutton",
2017-03-10 04:28:51 +01:00
_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",
wield_image = "mcl_mobitems_mutton_raw.png",
2017-02-16 17:45:33 +01:00
on_place = minetest.item_eat(2),
on_secondary_use = minetest.item_eat(2),
groups = { food = 2, eatable = 2 },
stack_max = 64,
})
minetest.register_craftitem("mcl_mobitems:cooked_mutton", {
description = "Cooked Mutton",
2017-03-10 04:28:51 +01:00
_doc_items_longdesc = "This is a food item which can be eaten for 6 hunger points.",
inventory_image = "mcl_mobitems_mutton_cooked.png",
wield_image = "mcl_mobitems_mutton_cooked.png",
2017-02-16 17:45:33 +01:00
on_place = minetest.item_eat(6),
on_secondary_use = minetest.item_eat(6),
groups = { food = 2, eatable = 6 },
stack_max = 64,
})
minetest.register_craftitem("mcl_mobitems:beef", {
description = "Raw Beef",
2017-03-10 04:28:51 +01:00
_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",
wield_image = "mcl_mobitems_beef_raw.png",
2017-02-16 17:45:33 +01:00
on_place = minetest.item_eat(3),
on_secondary_use = minetest.item_eat(3),
groups = { food = 2, eatable = 3 },
stack_max = 64,
})
minetest.register_craftitem("mcl_mobitems:cooked_beef", {
description = "Steak",
2017-03-10 04:28:51 +01:00
_doc_items_longdesc = "Steak is cooked beef from cows and can be eaten for 8 hunger points.",
inventory_image = "mcl_mobitems_beef_cooked.png",
wield_image = "mcl_mobitems_beef_cooked.png",
2017-02-16 17:45:33 +01:00
on_place = minetest.item_eat(8),
on_secondary_use = minetest.item_eat(8),
groups = { food = 2, eatable = 8 },
stack_max = 64,
})
minetest.register_craftitem("mcl_mobitems:chicken", {
description = "Raw Chicken",
2017-03-10 04:28:51 +01:00
_doc_items_longdesc = "This is a food item which can be eaten for 2 hunger points.",
inventory_image = "mcl_mobitems_chicken_raw.png",
wield_image = "mcl_mobitems_chicken_raw.png",
2017-02-16 17:45:33 +01:00
on_place = minetest.item_eat(2),
on_secondary_use = minetest.item_eat(2),
groups = { food = 2, eatable = 2 },
stack_max = 64,
})
minetest.register_craftitem("mcl_mobitems:cooked_chicken", {
description = "Cooked Chicken",
2017-03-10 04:28:51 +01:00
_doc_items_longdesc = "This is a food item which can be eaten for 6 hunger points.",
inventory_image = "mcl_mobitems_chicken_cooked.png",
wield_image = "mcl_mobitems_chicken_cooked.png",
2017-02-16 17:45:33 +01:00
on_place = minetest.item_eat(6),
on_secondary_use = minetest.item_eat(6),
groups = { food = 2, eatable = 6 },
stack_max = 64,
})
minetest.register_craftitem("mcl_mobitems:porkchop", {
description = "Raw Porkchop",
2017-03-10 04:28:51 +01:00
_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",
2017-02-01 19:20:16 +01:00
wield_image = "mcl_mobitems_porkchop_raw.png",
2017-02-16 17:45:33 +01:00
on_place = minetest.item_eat(3),
on_secondary_use = minetest.item_eat(3),
groups = { food = 2, eatable = 3 },
stack_max = 64,
})
minetest.register_craftitem("mcl_mobitems:cooked_porkchop", {
description = "Cooked Porkchop",
2017-03-10 04:28:51 +01:00
_doc_items_longdesc = "This is a food item which can be eaten for 8 hunger points.",
inventory_image = "mcl_mobitems_porkchop_cooked.png",
wield_image = "mcl_mobitems_porkchop_cooked.png",
2017-02-16 17:45:33 +01:00
on_place = minetest.item_eat(8),
on_secondary_use = minetest.item_eat(8),
groups = { food = 2, eatable = 8 },
stack_max = 64,
})
minetest.register_craftitem("mcl_mobitems:rabbit", {
description = "Raw Rabbit",
2017-03-10 04:28:51 +01:00
_doc_items_longdesc = "This is a food item which can be eaten for 3 hunger points.",
inventory_image = "mcl_mobitems_rabbit_raw.png",
wield_image = "mcl_mobitems_rabbit_raw.png",
2017-02-16 17:45:33 +01:00
on_place = minetest.item_eat(3),
on_secondary_use = minetest.item_eat(3),
groups = { food = 2, eatable = 3 },
stack_max = 64,
})
minetest.register_craftitem("mcl_mobitems:cooked_rabbit", {
description = "Cooked Rabbit",
2017-03-10 04:28:51 +01:00
_doc_items_longdesc = "This is a food item which can be eaten for 5 hunger points.",
inventory_image = "mcl_mobitems_rabbit_cooked.png",
wield_image = "mcl_mobitems_rabbit_cooked.png",
2017-02-16 17:45:33 +01:00
on_place = minetest.item_eat(5),
on_secondary_use = minetest.item_eat(5),
groups = { food = 2, eatable = 5 },
stack_max = 64,
})
2017-01-17 01:09:11 +01:00
-- TODO: Clear status effects
minetest.register_craftitem("mcl_mobitems:milk_bucket", {
description = "Milk",
2017-03-10 04:28:51 +01:00
_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.",
2017-01-17 01:09:11 +01:00
inventory_image = "mcl_mobitems_bucket_milk.png",
wield_image = "mcl_mobitems_bucket_milk.png",
2017-02-16 17:45:33 +01:00
on_place = minetest.item_eat(0, "bucket:bucket_empty"),
on_secondary_use = minetest.item_eat(0, "bucket:bucket_empty"),
2017-01-17 01:09:11 +01:00
stack_max = 1,
2017-01-20 11:33:56 +01:00
groups = { food = 3 },
2017-01-17 01:09:11 +01:00
})
minetest.register_craftitem("mcl_mobitems:spider_eye", {
description = "Spider Eye",
2017-03-10 04:28:51 +01:00
_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",
wield_image = "mcl_mobitems_spider_eye.png",
2017-02-16 17:45:33 +01:00
on_place = minetest.item_eat(2),
on_secondary_use = minetest.item_eat(2),
groups = { food = 2, eatable = 2 },
stack_max = 64,
})
2017-02-01 17:59:15 +01:00
minetest.register_craftitem("mcl_mobitems:bone", {
description = "Bone",
2017-03-10 04:28:51 +01:00
_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.",
2017-02-01 17:59:15 +01:00
inventory_image = "mcl_mobitems_bone.png",
stack_max = 64,
groups = { craftitem=1 },
})
minetest.register_craftitem("mcl_mobitems:string",{
description = "String",
2017-03-18 17:52:41 +01:00
_doc_items_longdesc = "Strings are used in crafting.",
2017-02-01 17:59:15 +01:00
inventory_image = "mcl_mobitems_string.png",
stack_max = 64,
groups = { craftitem = 1 },
})
minetest.register_craftitem("mcl_mobitems:blaze_rod", {
description = "Blaze Rod",
2017-03-18 17:52:41 +01:00
_doc_items_longdesc = "This is a crafting component dropped from dead blazes.",
wield_image = "mcl_mobitems_blaze_rod.png",
inventory_image = "mcl_mobitems_blaze_rod.png",
groups = { craftitem = 1 },
stack_max = 64,
})
minetest.register_craftitem("mcl_mobitems:blaze_powder", {
description = "Blaze Powder",
2017-03-18 17:52:41 +01:00
_doc_items_longdesc = "This item is mainly used for brewing potions and crafting.",
wield_image = "mcl_mobitems_blaze_powder.png",
inventory_image = "mcl_mobitems_blaze_powder.png",
groups = { brewitem = 1 },
stack_max = 64,
})
minetest.register_craftitem("mcl_mobitems:magma_cream", {
description = "Magma Cream",
2017-03-18 17:52:41 +01:00
_doc_items_longdesc = "Magma cream is a crafting component.",
wield_image = "mcl_mobitems_magma_cream.png",
inventory_image = "mcl_mobitems_magma_cream.png",
2017-01-20 11:37:18 +01:00
groups = { brewitem = 1 },
stack_max = 64,
})
minetest.register_craftitem("mcl_mobitems:ghast_tear", {
description = "Ghast Tear",
2017-03-18 17:52:41 +01:00
_doc_items_longdesc = "A ghast tear is an item used in potion brewing. It is dropped from dead ghasts.",
wield_image = "mcl_mobitems_ghast_tear.png",
inventory_image = "mcl_mobitems_ghast_tear.png",
groups = { brewitem = 1 },
stack_max = 64,
})
minetest.register_craftitem("mcl_mobitems:nether_star", {
description = "Nether Star",
2017-03-18 17:52:41 +01:00
_doc_items_longdesc = "A nether star is a crafting component. It is dropped from the Wither.",
wield_image = "mcl_mobitems_nether_star.png",
inventory_image = "mcl_mobitems_nether_star.png",
groups = { craftitem = 1 },
stack_max = 64,
})
minetest.register_craftitem("mcl_mobitems:leather", {
description = "Leather",
2017-03-18 17:52:41 +01:00
_doc_items_longdesc = "Leather is a versatile crafting component.",
wield_image = "mcl_mobitems_leather.png",
inventory_image = "mcl_mobitems_leather.png",
groups = { craftitem = 1 },
stack_max = 64,
})
minetest.register_craftitem("mcl_mobitems:feather", {
description = "Feather",
2017-03-18 17:52:41 +01:00
_doc_items_longdesc = "Feathers are used in crafting and are dropped from chickens.",
wield_image = "mcl_mobitems_feather.png",
inventory_image = "mcl_mobitems_feather.png",
groups = { craftitem = 1 },
stack_max = 64,
})
minetest.register_craftitem("mcl_mobitems:rabbit_hide", {
description = "Rabbit Hide",
2017-03-10 04:28:51 +01:00
_doc_items_longdesc = "Rabbit hide is used to create leather.",
wield_image = "mcl_mobitems_rabbit_hide.png",
inventory_image = "mcl_mobitems_rabbit_hide.png",
groups = { craftitem = 1 },
stack_max = 64,
})
minetest.register_craftitem("mcl_mobitems:rabbit_foot", {
description = "Rabbit's Foot",
2017-03-10 04:28:51 +01:00
_doc_items_longdesc = "This item is used in brewing.",
wield_image = "mcl_mobitems_rabbit_foot.png",
inventory_image = "mcl_mobitems_rabbit_foot.png",
2017-01-20 11:21:55 +01:00
groups = { brewitem = 1 },
stack_max = 64,
})
2017-01-20 21:09:29 +01:00
minetest.register_craftitem("mcl_mobitems:saddle", {
description = "Saddle",
2017-03-10 04:28:51 +01:00
_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.",
2017-01-20 21:09:29 +01:00
wield_image = "mcl_mobitems_saddle.png",
inventory_image = "mcl_mobitems_saddle.png",
stack_max = 1,
})
2017-02-01 16:14:03 +01:00
minetest.register_craftitem("mcl_mobitems:rabbit_stew", {
description = "Rabbit Stew",
2017-03-10 04:28:51 +01:00
_doc_items_longdesc = "Rabbit stew is a very nutricious food item which can be consumed for 10 hunger points.",
2017-02-01 16:14:03 +01:00
wield_image = "mcl_mobitems_rabbit_stew.png",
inventory_image = "mcl_mobitems_rabbit_stew.png",
stack_max = 1,
2017-02-16 17:45:33 +01:00
on_place = minetest.item_eat(10, "mcl_core:bowl"),
on_secondary_use = minetest.item_eat(10, "mcl_core:bowl"),
2017-02-01 16:14:03 +01:00
groups = { food = 3, eatable = 10 },
})
2017-02-06 20:54:35 +01:00
minetest.register_craftitem("mcl_mobitems:shulker_shell", {
description = "Shulker Shell",
2017-03-18 17:52:41 +01:00
_doc_items_longdesc = "Shulker shells are used in crafting. They are dropped from dead shulkers.",
2017-02-06 20:54:35 +01:00
inventory_image = "mcl_mobitems_shulker_shell.png",
groups = { craftitem = 1 },
})
2017-02-11 22:05:14 +01:00
minetest.register_craftitem("mcl_mobitems:slimeball", {
description = "Slimeball",
2017-03-18 17:52:41 +01:00
_doc_items_longdesc = "Slimeballs are used in crafting. They are dropped from slimes.",
2017-02-11 22:05:14 +01:00
inventory_image = "mcl_mobitems_slimeball.png",
groups = { craftitem = 1 },
})
2017-02-16 21:33:14 +01:00
minetest.register_craftitem("mcl_mobitems:gunpowder", {
description = "Gunpowder",
2017-03-18 17:52:41 +01:00
_doc_items_longdesc = doc.sub.items.temp.craftitem,
2017-02-16 21:33:14 +01:00
inventory_image = "default_gunpowder.png",
stack_max = 64,
groups = { craftitem=1 },
})
2017-02-01 17:06:31 +01:00
minetest.register_tool("mcl_mobitems:carrot_on_a_stick", {
description = "Carrot on a Stick",
2017-03-10 04:28:51 +01:00
_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.",
2017-02-01 17:06:31 +01:00
wield_image = "mcl_mobitems_carrot_on_a_stick.png",
inventory_image = "mcl_mobitems_carrot_on_a_stick.png",
groups = { transport = 1 },
})
2017-02-11 22:05:14 +01:00
-----------
-- Crafting
-----------
minetest.register_craft({
output = "mcl_mobitems:leather",
recipe = {
{ "mcl_mobitems:rabbit_hide", "mcl_mobitems:rabbit_hide" },
{ "mcl_mobitems:rabbit_hide", "mcl_mobitems:rabbit_hide" },
}
})
minetest.register_craft({
output = "mcl_mobitems:blaze_powder 2",
recipe = {{"mcl_mobitems:blaze_rod"}},
})
2017-02-05 23:21:09 +01:00
minetest.register_craft({
output = "mcl_mobitems:rabbit_stew",
recipe = {
{ "", "mcl_mobitems:cooked_rabbit", "", },
{ "group:mushroom", "mcl_farming:potato_item_baked", "mcl_farming:carrot_item", },
{ "", "mcl_core:bowl", "", },
},
})
2017-02-01 16:14:03 +01:00
minetest.register_craft({
output = "mcl_mobitems:rabbit_stew",
recipe = {
{ "", "mcl_mobitems:cooked_rabbit", "", },
{ "mcl_farming:carrot_item", "mcl_farming:potato_item_baked", "group:mushroom", },
{ "", "mcl_core:bowl", "", },
},
})
2017-02-01 17:06:31 +01:00
minetest.register_craft({
output = "mcl_mobitems:carrot_on_a_stick",
recipe = {
{ "mcl_fishing:fishing_rod", "", },
{ "", "mcl_farming:carrot_item" },
},
})
minetest.register_craft({
output = "mcl_mobitems:carrot_on_a_stick",
recipe = {
{ "", "mcl_fishing:fishing_rod", },
{ "mcl_farming:carrot_item", "" },
},
})
minetest.register_craft({
type = "shapeless",
output = "mcl_mobitems:magma_cream",
2017-02-11 22:05:14 +01:00
recipe = {"mcl_mobitems:blaze_powder", "mcl_mobitems:slimeball"},
})
minetest.register_craft({
type = "cooking",
output = "mcl_mobitems:cooked_mutton",
recipe = "mcl_mobitems:mutton",
cooktime = 10,
})
minetest.register_craft({
type = "cooking",
output = "mcl_mobitems:cooked_rabbit",
recipe = "mcl_mobitems:rabbit",
cooktime = 10,
})
minetest.register_craft({
type = "cooking",
output = "mcl_mobitems:cooked_chicken",
recipe = "mcl_mobitems:chicken",
cooktime = 10,
})
minetest.register_craft({
type = "cooking",
output = "mcl_mobitems:cooked_beef",
recipe = "mcl_mobitems:beef",
cooktime = 10,
})
2017-02-13 14:11:18 +01:00
minetest.register_craft({
type = "cooking",
output = "mcl_mobitems:cooked_porkchop",
recipe = "mcl_mobitems:porkchop",
cooktime = 10,
})
minetest.register_craft({
type = "fuel",
recipe = "mcl_mobitems:blaze_rod",
burntime = 120,
})
2017-02-11 22:05:14 +01:00
minetest.register_craft({
output = 'mcl_mobitems:slimeball 9',
recipe = {{"mcl_core:slimeblock"}},
})
minetest.register_craft({
output = "mcl_core:slimeblock",
recipe = {{"mcl_mobitems:slimeball","mcl_mobitems:slimeball","mcl_mobitems:slimeball",},
{"mcl_mobitems:slimeball","mcl_mobitems:slimeball","mcl_mobitems:slimeball",},
{"mcl_mobitems:slimeball","mcl_mobitems:slimeball","mcl_mobitems:slimeball",}},
})
2017-02-07 05:11:23 +01:00