Browse Source

add glass of milk and craft recipes

master
TenPlus1 1 year ago
parent
commit
10028cd63d
4 changed files with 33 additions and 1 deletions
  1. +31
    -0
      cow.lua
  2. +1
    -0
      lucky_block.lua
  3. +1
    -1
      readme.md
  4. BIN
      textures/mobs_glass_milk.png

+ 31
- 0
cow.lua View File

@@ -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"),

+ 1
- 0
lucky_block.lua View File

@@ -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

+ 1
- 1
readme.md View File

@@ -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

BIN
textures/mobs_glass_milk.png View File

Before After
Width: 16  |  Height: 16  |  Size: 199B

Loading…
Cancel
Save