2017-01-16 17:40:08 +01:00
-- TODO: Add special status effects for raw flesh
2019-03-08 00:22:28 +01:00
local S = minetest.get_translator ( " mcl_mobitems " )
2017-01-16 17:40:08 +01:00
minetest.register_craftitem ( " mcl_mobitems:rotten_flesh " , {
2019-03-08 00:22:28 +01:00
description = S ( " Rotten Flesh " ) ,
2020-03-12 02:29:30 +01:00
_tt_help = minetest.colorize ( " #FFFF00 " , S ( " 80% chance of food poisoning " ) ) ,
2019-03-08 00:22:28 +01:00
_doc_items_longdesc = S ( " Yuck! This piece of flesh clearly has seen better days. If you're really desperate, you can eat it to restore a few hunger points, but there's a 80% chance it causes food poisoning, which increases your hunger for a while. " ) ,
2017-01-16 17:40:08 +01:00
inventory_image = " mcl_mobitems_rotten_flesh.png " ,
wield_image = " mcl_mobitems_rotten_flesh.png " ,
2017-02-28 04:53:52 +01:00
on_place = minetest.item_eat ( 4 ) ,
on_secondary_use = minetest.item_eat ( 4 ) ,
groups = { food = 2 , eatable = 4 } ,
2017-05-20 17:45:04 +02:00
_mcl_saturation = 0.8 ,
2017-01-16 17:40:08 +01:00
stack_max = 64 ,
} )
minetest.register_craftitem ( " mcl_mobitems:mutton " , {
2019-03-08 00:22:28 +01:00
description = S ( " Raw Mutton " ) ,
_doc_items_longdesc = S ( " Raw mutton is the flesh from a sheep and can be eaten safely. Cooking it will greatly increase its nutritional value. " ) ,
2017-01-16 17:40:08 +01:00
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 ) ,
2017-01-16 17:40:08 +01:00
groups = { food = 2 , eatable = 2 } ,
2017-05-20 17:45:04 +02:00
_mcl_saturation = 1.2 ,
2017-01-16 17:40:08 +01:00
stack_max = 64 ,
} )
minetest.register_craftitem ( " mcl_mobitems:cooked_mutton " , {
2019-03-08 00:22:28 +01:00
description = S ( " Cooked Mutton " ) ,
_doc_items_longdesc = S ( " Cooked mutton is the cooked flesh from a sheep and is used as food. " ) ,
2017-01-16 17:40:08 +01:00
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 ) ,
2017-01-16 17:40:08 +01:00
groups = { food = 2 , eatable = 6 } ,
2017-05-20 17:45:04 +02:00
_mcl_saturation = 9.6 ,
2017-01-16 17:40:08 +01:00
stack_max = 64 ,
} )
minetest.register_craftitem ( " mcl_mobitems:beef " , {
2019-03-08 00:22:28 +01:00
description = S ( " Raw Beef " ) ,
_doc_items_longdesc = S ( " Raw beef is the flesh from cows and can be eaten safely. Cooking it will greatly increase its nutritional value. " ) ,
2017-01-16 17:40:08 +01:00
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 ) ,
2017-01-16 17:40:08 +01:00
groups = { food = 2 , eatable = 3 } ,
2017-05-20 17:45:04 +02:00
_mcl_saturation = 1.8 ,
2017-01-16 17:40:08 +01:00
stack_max = 64 ,
} )
minetest.register_craftitem ( " mcl_mobitems:cooked_beef " , {
2019-03-08 00:22:28 +01:00
description = S ( " Steak " ) ,
_doc_items_longdesc = S ( " Steak is cooked beef from cows and can be eaten. " ) ,
2017-01-16 17:40:08 +01:00
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 ) ,
2017-01-16 17:40:08 +01:00
groups = { food = 2 , eatable = 8 } ,
2017-05-20 17:45:04 +02:00
_mcl_saturation = 12.8 ,
2017-01-16 17:40:08 +01:00
stack_max = 64 ,
} )
minetest.register_craftitem ( " mcl_mobitems:chicken " , {
2019-03-08 00:22:28 +01:00
description = S ( " Raw Chicken " ) ,
2020-03-12 02:29:30 +01:00
_tt_help = minetest.colorize ( " #FFFF00 " , S ( " 30% chance of food poisoning " ) ) ,
2019-03-08 00:22:28 +01:00
_doc_items_longdesc = S ( " Raw chicken is a food item which is not safe to consume. You can eat it to restore a few hunger points, but there's a 30% chance to suffer from food poisoning, which increases your hunger rate for a while. Cooking raw chicken will make it safe to eat and increases its nutritional value. " ) ,
2017-01-16 17:40:08 +01:00
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 ) ,
2017-01-16 17:40:08 +01:00
groups = { food = 2 , eatable = 2 } ,
2017-05-20 17:45:04 +02:00
_mcl_saturation = 1.2 ,
2017-01-16 17:40:08 +01:00
stack_max = 64 ,
} )
minetest.register_craftitem ( " mcl_mobitems:cooked_chicken " , {
2019-03-08 00:22:28 +01:00
description = S ( " Cooked Chicken " ) ,
_doc_items_longdesc = S ( " A cooked chicken is a healthy food item which can be eaten. " ) ,
2017-01-16 17:40:08 +01:00
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 ) ,
2017-01-16 17:40:08 +01:00
groups = { food = 2 , eatable = 6 } ,
2017-05-20 17:45:04 +02:00
_mcl_saturation = 7.2 ,
2017-01-16 17:40:08 +01:00
stack_max = 64 ,
} )
minetest.register_craftitem ( " mcl_mobitems:porkchop " , {
2019-03-08 00:22:28 +01:00
description = S ( " Raw Porkchop " ) ,
_doc_items_longdesc = S ( " A raw porkchop is the flesh from a pig and can be eaten safely. Cooking it will greatly increase its nutritional value. " ) ,
2017-01-16 17:40:08 +01:00
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 ) ,
2017-01-16 17:40:08 +01:00
groups = { food = 2 , eatable = 3 } ,
2017-05-20 17:45:04 +02:00
_mcl_saturation = 1.8 ,
2017-01-16 17:40:08 +01:00
stack_max = 64 ,
} )
minetest.register_craftitem ( " mcl_mobitems:cooked_porkchop " , {
2019-03-08 00:22:28 +01:00
description = S ( " Cooked Porkchop " ) ,
_doc_items_longdesc = S ( " Cooked porkchop is the cooked flesh of a pig and is used as food. " ) ,
2017-01-16 17:40:08 +01:00
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 ) ,
2017-01-16 17:40:08 +01:00
groups = { food = 2 , eatable = 8 } ,
2017-05-20 17:45:04 +02:00
_mcl_saturation = 12.8 ,
2017-01-16 17:40:08 +01:00
stack_max = 64 ,
} )
minetest.register_craftitem ( " mcl_mobitems:rabbit " , {
2019-03-08 00:22:28 +01:00
description = S ( " Raw Rabbit " ) ,
_doc_items_longdesc = S ( " Raw rabbit is a food item from a dead rabbit. It can be eaten safely. Cooking it will increase its nutritional value. " ) ,
2017-01-16 17:40:08 +01:00
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 ) ,
2017-01-16 17:40:08 +01:00
groups = { food = 2 , eatable = 3 } ,
2017-05-20 17:45:04 +02:00
_mcl_saturation = 1.8 ,
2017-01-16 17:40:08 +01:00
stack_max = 64 ,
} )
minetest.register_craftitem ( " mcl_mobitems:cooked_rabbit " , {
2019-03-08 00:22:28 +01:00
description = S ( " Cooked Rabbit " ) ,
_doc_items_longdesc = S ( " This is a food item which can be eaten. " ) ,
2017-01-16 17:40:08 +01:00
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 ) ,
2017-01-16 17:40:08 +01:00
groups = { food = 2 , eatable = 5 } ,
2017-05-20 17:45:04 +02:00
_mcl_saturation = 6.0 ,
2017-01-16 17:40:08 +01:00
stack_max = 64 ,
} )
2017-05-23 02:14:43 +02:00
local drink_milk = function ( itemstack , player , pointed_thing )
2017-08-03 16:36:55 +02:00
local bucket = minetest.do_item_eat ( 0 , " mcl_buckets:bucket_empty " , itemstack , player , pointed_thing )
2017-05-23 02:14:43 +02:00
-- Check if we were allowed to drink this (eat delay check)
2020-07-10 16:08:40 +02:00
if mcl_hunger.active and ( bucket : get_name ( ) ~= " mcl_mobitems:milk_bucket " or minetest.is_creative_enabled ( player : get_player_name ( ) ) ) then
2017-05-23 02:14:43 +02:00
mcl_hunger.stop_poison ( player )
end
2020-06-28 18:16:07 +02:00
mcl_potions._reset_player_effects ( player )
2017-05-23 02:14:43 +02:00
return bucket
end
2017-05-21 00:19:12 +02:00
-- TODO: Clear *all* status effects
2017-01-17 01:09:11 +01:00
minetest.register_craftitem ( " mcl_mobitems:milk_bucket " , {
2019-03-08 00:22:28 +01:00
description = S ( " Milk " ) ,
2020-07-06 00:18:49 +02:00
_tt_help = minetest.colorize ( " #00FF00 " , S ( " Cures poison and removes all potion effects " ) ) ,
_doc_items_longdesc = S ( " Milk is very refreshing and can be obtained by using a bucket on a cow. Drinking it will cure all forms of poisoning and removes potion effects, but restores no hunger points. " ) ,
2017-03-10 04:28:51 +01:00
_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-05-21 00:19:12 +02:00
-- Clear poisoning when used
2017-05-23 02:14:43 +02:00
on_place = drink_milk ,
on_secondary_use = drink_milk ,
2017-01-17 01:09:11 +01:00
stack_max = 1 ,
2017-05-23 02:04:27 +02:00
groups = { food = 3 , can_eat_when_full = 1 } ,
2017-01-17 01:09:11 +01:00
} )
2017-01-16 17:40:08 +01:00
minetest.register_craftitem ( " mcl_mobitems:spider_eye " , {
2019-03-08 00:22:28 +01:00
description = S ( " Spider Eye " ) ,
2020-03-12 02:29:30 +01:00
_tt_help = minetest.colorize ( " #FFFF00 " , S ( " Poisonous " ) ) ,
2019-03-08 00:22:28 +01:00
_doc_items_longdesc = S ( " Spider eyes are used mainly in crafting. If you're really desperate, you can eat a spider eye, but it will poison you briefly. " ) ,
2017-01-16 17:40:08 +01:00
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 ) ,
2020-07-05 03:28:02 +02:00
groups = { food = 2 , eatable = 2 , brewitem = 1 } ,
2017-05-20 17:45:04 +02:00
_mcl_saturation = 3.2 ,
2017-01-16 17:40:08 +01:00
stack_max = 64 ,
} )
2017-02-01 17:59:15 +01:00
minetest.register_craftitem ( " mcl_mobitems:bone " , {
2019-03-08 00:22:28 +01:00
description = S ( " Bone " ) ,
_doc_items_longdesc = S ( " Bones can be used to tame wolves so they will protect you. They are also useful as a crafting ingredient. " ) ,
2019-03-25 12:05:57 +01:00
_doc_items_usagehelp = S ( " Wield the bone near wolves to attract them. Use the “Place” key on the wolf to give it a bone and tame it. You can then give commands to the tamed wolf by using the “Place” key on 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 " , {
2019-03-08 00:22:28 +01:00
description = S ( " String " ) ,
_doc_items_longdesc = S ( " 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 } ,
} )
2017-01-16 17:40:08 +01:00
minetest.register_craftitem ( " mcl_mobitems:blaze_rod " , {
2019-03-08 00:22:28 +01:00
description = S ( " Blaze Rod " ) ,
_doc_items_longdesc = S ( " This is a crafting component dropped from dead blazes. " ) ,
2017-01-16 17:40:08 +01:00
wield_image = " mcl_mobitems_blaze_rod.png " ,
inventory_image = " mcl_mobitems_blaze_rod.png " ,
2017-01-20 04:54:09 +01:00
groups = { craftitem = 1 } ,
2017-01-16 17:40:08 +01:00
stack_max = 64 ,
} )
minetest.register_craftitem ( " mcl_mobitems:blaze_powder " , {
2019-03-08 00:22:28 +01:00
description = S ( " Blaze Powder " ) ,
_doc_items_longdesc = S ( " This item is mainly used for crafting. " ) ,
2017-01-16 17:40:08 +01:00
wield_image = " mcl_mobitems_blaze_powder.png " ,
inventory_image = " mcl_mobitems_blaze_powder.png " ,
2019-02-06 10:57:23 +01:00
groups = { craftitem = 1 , brewitem = 1 } ,
2017-01-16 17:40:08 +01:00
stack_max = 64 ,
} )
minetest.register_craftitem ( " mcl_mobitems:magma_cream " , {
2019-03-08 00:22:28 +01:00
description = S ( " Magma Cream " ) ,
_doc_items_longdesc = S ( " Magma cream is a crafting component. " ) ,
2017-01-16 17:40:08 +01:00
wield_image = " mcl_mobitems_magma_cream.png " ,
inventory_image = " mcl_mobitems_magma_cream.png " ,
2019-02-06 10:57:23 +01:00
groups = { craftitem = 1 , brewitem = 1 } ,
2017-01-16 17:40:08 +01:00
stack_max = 64 ,
} )
minetest.register_craftitem ( " mcl_mobitems:ghast_tear " , {
2019-03-08 00:22:28 +01:00
description = S ( " Ghast Tear " ) ,
_doc_items_longdesc = S ( " Place this item in an item frame as decoration. " ) ,
2017-01-16 17:40:08 +01:00
wield_image = " mcl_mobitems_ghast_tear.png " ,
inventory_image = " mcl_mobitems_ghast_tear.png " ,
2019-02-06 10:57:23 +01:00
-- TODO: Reveal item when it's useful
2020-07-05 03:28:02 +02:00
groups = { brewitem = 1 , not_in_creative_inventory = 0 } ,
2017-01-16 17:40:08 +01:00
stack_max = 64 ,
} )
minetest.register_craftitem ( " mcl_mobitems:nether_star " , {
2019-03-08 00:22:28 +01:00
description = S ( " Nether Star " ) ,
_doc_items_longdesc = S ( " A nether star is dropped when the Wither dies. Place it in an item frame to show the world how hardcore you are! Or just as decoration. " ) ,
2017-01-16 17:40:08 +01:00
wield_image = " mcl_mobitems_nether_star.png " ,
inventory_image = " mcl_mobitems_nether_star.png " ,
2019-02-06 10:57:23 +01:00
-- TODO: Reveal item when it's useful
groups = { craftitem = 1 , not_in_creative_inventory = 1 } ,
2017-01-16 17:40:08 +01:00
stack_max = 64 ,
} )
minetest.register_craftitem ( " mcl_mobitems:leather " , {
2019-03-08 00:22:28 +01:00
description = S ( " Leather " ) ,
_doc_items_longdesc = S ( " Leather is a versatile crafting component. " ) ,
2017-01-16 17:40:08 +01:00
wield_image = " mcl_mobitems_leather.png " ,
inventory_image = " mcl_mobitems_leather.png " ,
2017-01-20 04:54:09 +01:00
groups = { craftitem = 1 } ,
2017-01-16 17:40:08 +01:00
stack_max = 64 ,
} )
minetest.register_craftitem ( " mcl_mobitems:feather " , {
2019-03-08 00:22:28 +01:00
description = S ( " Feather " ) ,
_doc_items_longdesc = S ( " Feathers are used in crafting and are dropped from chickens. " ) ,
2017-01-16 17:40:08 +01:00
wield_image = " mcl_mobitems_feather.png " ,
inventory_image = " mcl_mobitems_feather.png " ,
2017-01-20 04:54:09 +01:00
groups = { craftitem = 1 } ,
2017-01-16 17:40:08 +01:00
stack_max = 64 ,
} )
minetest.register_craftitem ( " mcl_mobitems:rabbit_hide " , {
2019-03-08 00:22:28 +01:00
description = S ( " Rabbit Hide " ) ,
_doc_items_longdesc = S ( " Rabbit hide is used to create leather. " ) ,
2017-01-16 17:40:08 +01:00
wield_image = " mcl_mobitems_rabbit_hide.png " ,
inventory_image = " mcl_mobitems_rabbit_hide.png " ,
2017-01-20 04:54:09 +01:00
groups = { craftitem = 1 } ,
2017-01-16 17:40:08 +01:00
stack_max = 64 ,
} )
minetest.register_craftitem ( " mcl_mobitems:rabbit_foot " , {
2019-03-08 00:22:28 +01:00
description = S ( " Rabbit's Foot " ) ,
_doc_items_longdesc = S ( " Must be your lucky day! Place this item in an item frame for decoration. " ) ,
2017-01-16 17:40:08 +01:00
wield_image = " mcl_mobitems_rabbit_foot.png " ,
inventory_image = " mcl_mobitems_rabbit_foot.png " ,
2019-02-06 10:57:23 +01:00
-- TODO: Reveal item when it's useful
2020-07-05 03:28:02 +02:00
groups = { brewitem = 1 , not_in_creative_inventory = 0 } ,
2017-01-16 17:40:08 +01:00
stack_max = 64 ,
} )
2017-01-20 21:09:29 +01:00
minetest.register_craftitem ( " mcl_mobitems:saddle " , {
2019-03-08 00:22:28 +01:00
description = S ( " Saddle " ) ,
2020-02-19 04:54:17 +01:00
_tt_help = S ( " Can be placed on animals to ride them " ) ,
2019-03-08 00:22:28 +01:00
_doc_items_longdesc = S ( " Saddles can be put on some animals in order to mount them. " ) ,
2018-01-02 15:18:56 +01:00
_doc_items_usagehelp = " Rightclick an animal (with the saddle in your hand) to try put on the saddle. Saddles fit on horses, mules, donkeys and pigs. Horses, mules and donkeys need to be tamed first, otherwise they'll reject the saddle. Saddled animals can be mounted by rightclicking them again. " ,
2017-01-20 21:09:29 +01:00
wield_image = " mcl_mobitems_saddle.png " ,
inventory_image = " mcl_mobitems_saddle.png " ,
2019-02-06 11:15:53 +01:00
groups = { transport = 1 } ,
2017-01-20 21:09:29 +01:00
stack_max = 1 ,
} )
2017-02-01 16:14:03 +01:00
minetest.register_craftitem ( " mcl_mobitems:rabbit_stew " , {
2019-03-08 00:22:28 +01:00
description = S ( " Rabbit Stew " ) ,
_doc_items_longdesc = S ( " Rabbit stew is a very nutricious food item. " ) ,
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-05-21 03:26:51 +02:00
_mcl_saturation = 12.0 ,
2017-02-01 16:14:03 +01:00
} )
2017-02-06 20:54:35 +01:00
minetest.register_craftitem ( " mcl_mobitems:shulker_shell " , {
2019-03-08 00:22:28 +01:00
description = S ( " Shulker Shell " ) ,
_doc_items_longdesc = S ( " 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 " , {
2019-03-08 00:22:28 +01:00
description = S ( " Slimeball " ) ,
_doc_items_longdesc = S ( " 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 " , {
2019-03-08 00:22:28 +01:00
description = S ( " 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 ,
2020-07-05 03:28:02 +02:00
groups = { craftitem = 1 , brewitem = 1 } ,
2017-02-16 21:33:14 +01:00
} )
2017-02-01 17:06:31 +01:00
minetest.register_tool ( " mcl_mobitems:carrot_on_a_stick " , {
2019-03-08 00:22:28 +01:00
description = S ( " Carrot on a Stick " ) ,
2020-02-19 04:54:17 +01:00
_tt_help = S ( " Lets you ride a saddled pig " ) ,
2019-03-08 00:22:28 +01:00
_doc_items_longdesc = S ( " A carrot on a stick can be used on saddled pigs to ride them. " ) ,
2019-03-25 12:05:57 +01:00
_doc_items_usagehelp = S ( " Place it on a saddled pig to mount it. You can now ride the pig like a horse. 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
2017-01-16 17:40:08 +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 " , " " } ,
} ,
} )
2017-01-16 17:40:08 +01:00
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 " } ,
2017-01-16 17:40:08 +01:00
} )
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 ,
} )
2017-01-16 17:40:08 +01:00
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 " , } } ,
} )