summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2018-11-21 16:19:32 +0000
committerTenPlus1 <kinsellaja@yahoo.com>2018-11-21 16:19:32 +0000
commit10028cd63d83ad6574b23c39316a9a9ae558ba54 (patch)
treeb9fa5b70f6abdafd18a2ccf7f04eedc1cdd079a1
parente36deb7bc5913b2cb063b893d9d6df6ac0872007 (diff)
add glass of milk and craft recipesorigin/masterorigin/HEAD
-rw-r--r--cow.lua31
-rw-r--r--lucky_block.lua1
-rw-r--r--readme.md2
-rw-r--r--textures/mobs_glass_milk.pngbin0 -> 199 bytes
4 files changed, 33 insertions, 1 deletions
diff --git a/cow.lua b/cow.lua
index fe372ff..5f9348a 100644
--- a/cow.lua
+++ b/cow.lua
@@ -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
diff --git a/readme.md b/readme.md
index 6517917..85d8a00 100644
--- a/readme.md
+++ b/readme.md
@@ -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
new file mode 100644
index 0000000..59f1ba1
--- /dev/null
+++ b/textures/mobs_glass_milk.png
Binary files differ