Added glass/bottle for Champagne, Coffee Liquor, Brandy (thanks Felfa)

master
tenplus1 2020-12-20 20:06:22 +00:00
parent e9be9426ce
commit 0ebe29b580
10 changed files with 58 additions and 5 deletions

View File

@ -26,8 +26,9 @@ Change log:
- 1.6 - Added bottle of Mead, Cider and Mint-Julep (textures by Darkstalker),
re-arranged code, tweaked lucky blocks, updated translations
- 1.7 - Added more uses for blue agave (fuel, paper, food, agave syrup)
- 1.8 - Added glass and bottles for Champagne, Brandy and Coffee Liquor (thanks Felfa)
Lucky Blocks: 15
Lucky Blocks: 18
Wine Mod API

View File

@ -72,7 +72,9 @@ local ferment = {
{"farming:wheat", "wine:glass_wheat_beer"},
{"farming:rice", "wine:glass_sake"},
{"farming:corn", "wine:glass_bourbon"},
{"farming:baked_potato", "wine:glass_vodka"}
{"farming:baked_potato", "wine:glass_vodka"},
{"farming:coffee_beans", "wine:glass_coffee_liquor"},
{"wine:glass_champagne_raw", "wine:glass_champagne"}
}
if mcl then
@ -125,7 +127,10 @@ local beverages = {
{"vodka", "Vodka", true, 2, 3},
{"cider", "Cider", true, 2, 6},
{"mead", "Honey-Mead", true, 4, 5},
{"mint", "Mint Julep", true, 4, 3}
{"mint", "Mint Julep", true, 4, 3},
{"brandy", "Brandy", true, 3, 4},
{"coffee_liquor", "Coffee Liquor", true, 3, 4},
{"champagne", "Champagne", true, 4, 5}
}
@ -213,7 +218,36 @@ for n = 1, #beverages do
end
-- override to add food group to wine glass
-- brandy recipe
minetest.register_craft({
type = "cooking",
cooktime = 15,
output = "wine:glass_brandy",
recipe = "wine:glass_wine"
})
-- Raw champagne
if minetest.get_modpath("farming")
and farming.mod and (farming.mod == "undo" or farming.mod == "redo") then
minetest.register_craftitem("wine:glass_champagne_raw", {
description = "Raw Champagne",
inventory_image = "wine_champagne_raw_glass.png",
groups = {vessel = 1, flammable = 3}
})
minetest.register_craft({
type = "shapeless",
output = "wine:glass_champagne_raw",
recipe = {
"wine:glass_wine", "farming:sugar"
}
})
end
-- override to add food group to wine and brandy glass
minetest.override_item("wine:glass_wine", {
groups = {
food_wine = 1, vessel = 1, dig_immediate = 3,
@ -221,6 +255,13 @@ minetest.override_item("wine:glass_wine", {
}
})
minetest.override_item("wine:glass_brandy", {
groups = {
food_brandy = 1, vessel = 1, dig_immediate = 3,
attached_node = 1, alcohol = 1, drink = 1
}
})
-- blue agave
minetest.register_node("wine:blue_agave", {
@ -351,7 +392,7 @@ end
-- Mint Julep recipe
if minetest.get_modpath("farming")
and farming.mod and farming.mod == "redo"then
and farming.mod and (farming.mod == "redo" or farming.mod == "undo") then
minetest.register_craft({
type = "shapeless",
@ -622,6 +663,9 @@ if minetest.get_modpath("lucky_block") then
{"dro", {"wine:glass_bourbon"}, 5},
{"dro", {"wine:glass_vodka"}, 5},
{"dro", {"wine:glass_mint"}, 5},
{"dro", {"wine:glass_coffee_liquor"}, 5},
{"dro", {"wine:glass_brandy"}, 5},
{"dro", {"wine:glass_champagne"}, 5},
{"dro", {"wine:wine_barrel"}, 1},
{"tel", 5, 1},
{"nod", "default:chest", 0, {
@ -637,6 +681,9 @@ if minetest.get_modpath("lucky_block") then
{name = "wine:bottle_mead", max = 1},
{name = "wine:bottle_beer", max = 1},
{name = "wine:bottle_wheat_beer", max = 1},
{name = "wine:bottle_coffee_liquor", max = 1},
{name = "wine:bottle_brandy", max = 1},
{name = "wine:bottle_champagne", max = 1},
{name = "wine:blue_agave", max = 4}}},
})
end

View File

@ -37,3 +37,8 @@ Textures by Darkstalker (cc-by-3.0 license)
wine_mead_bottle.png
wine_mint_bottle.png
wine_mint_glass.png
Textures by Felfa (CC0)
wine_champagne*.png
wine_coffee*.png
wine_brandy*.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 318 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 169 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 330 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 199 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 212 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 218 B