diff options
author | TenPlus1 <kinsellaja@yahoo.com> | 2018-11-21 16:19:32 +0000 |
---|---|---|
committer | TenPlus1 <kinsellaja@yahoo.com> | 2018-11-21 16:19:32 +0000 |
commit | 10028cd63d83ad6574b23c39316a9a9ae558ba54 (patch) | |
tree | b9fa5b70f6abdafd18a2ccf7f04eedc1cdd079a1 | |
parent | e36deb7bc5913b2cb063b893d9d6df6ac0872007 (diff) |
add glass of milk and craft recipesorigin/masterorigin/HEAD
-rw-r--r-- | cow.lua | 31 | ||||
-rw-r--r-- | lucky_block.lua | 1 | ||||
-rw-r--r-- | readme.md | 2 | ||||
-rw-r--r-- | textures/mobs_glass_milk.png | bin | 0 -> 199 bytes |
4 files changed, 33 insertions, 1 deletions
@@ -132,6 +132,37 @@ minetest.register_craftitem(":mobs:bucket_milk", { groups = {food_milk = 1, flammable = 3}, }) +-- glass of milk +minetest.register_craftitem(":mobs:glass_milk", { + description = S("Glass of Milk"), + inventory_image = "mobs_glass_milk.png", + on_use = minetest.item_eat(2, 'vessels:drinking_glass'), + groups = {food_milk_glass = 1, flammable = 3}, +}) + +minetest.register_craft({ + type = "shapeless", + output = "mobs:glass_milk 4", + recipe = { + 'vessels:drinking_glass', 'vessels:drinking_glass', + 'vessels:drinking_glass', 'vessels:drinking_glass', + 'mobs:bucket_milk' + }, + replacements = { {"mobs:bucket_milk", "bucket:bucket_empty"} } +}) + +minetest.register_craft({ + type = "shapeless", + output = "mobs:bucket_milk", + recipe = { + 'mobs:glass_milk', 'mobs:glass_milk', + 'mobs:glass_milk', 'mobs:glass_milk', + 'bucket:bucket_empty' + }, + replacements = { {"mobs:glass_milk", "vessels:drinking_glass 4"} } +}) + + -- butter minetest.register_craftitem(":mobs:butter", { description = S("Butter"), diff --git a/lucky_block.lua b/lucky_block.lua index 7fa0639..e88b20d 100644 --- a/lucky_block.lua +++ b/lucky_block.lua @@ -20,6 +20,7 @@ if minetest.get_modpath("lucky_block") then {"dro", {"mobs:pork_raw", "mobs:pork_cooked"}, 10}, {"dro", {"mobs:mutton_raw", "mobs:mutton_cooked"}, 10}, {"dro", {"mobs:meat_raw", "mobs:meat"}, 10}, + {"dro", {"mobs:glass_milk"}, 5}, }) if minetest.registered_nodes["default:nyancat"] then @@ -42,4 +42,4 @@ These monochrome cuties spawn in Ethereal's bamboo biome and can be tamed with b --- *Note: After breeding, animals need to rest for 4 minutes and baby animals take 4 minutes to grow up, also feeding them helps them grow quicker...* -#### Lucky Blocks: 19 +#### Lucky Blocks: 20 diff --git a/textures/mobs_glass_milk.png b/textures/mobs_glass_milk.png Binary files differnew file mode 100644 index 0000000..59f1ba1 --- /dev/null +++ b/textures/mobs_glass_milk.png |