Added glass/bottle for Champagne, Coffee Liquor, Brandy (thanks Felfa)
@ -26,8 +26,9 @@ Change log:
|
|||||||
- 1.6 - Added bottle of Mead, Cider and Mint-Julep (textures by Darkstalker),
|
- 1.6 - Added bottle of Mead, Cider and Mint-Julep (textures by Darkstalker),
|
||||||
re-arranged code, tweaked lucky blocks, updated translations
|
re-arranged code, tweaked lucky blocks, updated translations
|
||||||
- 1.7 - Added more uses for blue agave (fuel, paper, food, agave syrup)
|
- 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
|
Wine Mod API
|
||||||
|
55
init.lua
@ -72,7 +72,9 @@ local ferment = {
|
|||||||
{"farming:wheat", "wine:glass_wheat_beer"},
|
{"farming:wheat", "wine:glass_wheat_beer"},
|
||||||
{"farming:rice", "wine:glass_sake"},
|
{"farming:rice", "wine:glass_sake"},
|
||||||
{"farming:corn", "wine:glass_bourbon"},
|
{"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
|
if mcl then
|
||||||
@ -125,7 +127,10 @@ local beverages = {
|
|||||||
{"vodka", "Vodka", true, 2, 3},
|
{"vodka", "Vodka", true, 2, 3},
|
||||||
{"cider", "Cider", true, 2, 6},
|
{"cider", "Cider", true, 2, 6},
|
||||||
{"mead", "Honey-Mead", true, 4, 5},
|
{"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
|
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", {
|
minetest.override_item("wine:glass_wine", {
|
||||||
groups = {
|
groups = {
|
||||||
food_wine = 1, vessel = 1, dig_immediate = 3,
|
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
|
-- blue agave
|
||||||
minetest.register_node("wine:blue_agave", {
|
minetest.register_node("wine:blue_agave", {
|
||||||
@ -351,7 +392,7 @@ end
|
|||||||
|
|
||||||
-- Mint Julep recipe
|
-- Mint Julep recipe
|
||||||
if minetest.get_modpath("farming")
|
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({
|
minetest.register_craft({
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
@ -622,6 +663,9 @@ if minetest.get_modpath("lucky_block") then
|
|||||||
{"dro", {"wine:glass_bourbon"}, 5},
|
{"dro", {"wine:glass_bourbon"}, 5},
|
||||||
{"dro", {"wine:glass_vodka"}, 5},
|
{"dro", {"wine:glass_vodka"}, 5},
|
||||||
{"dro", {"wine:glass_mint"}, 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},
|
{"dro", {"wine:wine_barrel"}, 1},
|
||||||
{"tel", 5, 1},
|
{"tel", 5, 1},
|
||||||
{"nod", "default:chest", 0, {
|
{"nod", "default:chest", 0, {
|
||||||
@ -637,6 +681,9 @@ if minetest.get_modpath("lucky_block") then
|
|||||||
{name = "wine:bottle_mead", max = 1},
|
{name = "wine:bottle_mead", max = 1},
|
||||||
{name = "wine:bottle_beer", max = 1},
|
{name = "wine:bottle_beer", max = 1},
|
||||||
{name = "wine:bottle_wheat_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}}},
|
{name = "wine:blue_agave", max = 4}}},
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
@ -37,3 +37,8 @@ Textures by Darkstalker (cc-by-3.0 license)
|
|||||||
wine_mead_bottle.png
|
wine_mead_bottle.png
|
||||||
wine_mint_bottle.png
|
wine_mint_bottle.png
|
||||||
wine_mint_glass.png
|
wine_mint_glass.png
|
||||||
|
|
||||||
|
Textures by Felfa (CC0)
|
||||||
|
wine_champagne*.png
|
||||||
|
wine_coffee*.png
|
||||||
|
wine_brandy*.png
|
||||||
|
BIN
textures/wine_brandy_bottle.png
Normal file
After Width: | Height: | Size: 318 B |
BIN
textures/wine_brandy_glass.png
Normal file
After Width: | Height: | Size: 169 B |
BIN
textures/wine_champagne_bottle.png
Normal file
After Width: | Height: | Size: 330 B |
BIN
textures/wine_champagne_glass.png
Normal file
After Width: | Height: | Size: 199 B |
BIN
textures/wine_champagne_raw_glass.png
Normal file
After Width: | Height: | Size: 212 B |
BIN
textures/wine_coffee_liquor_bottle.png
Normal file
After Width: | Height: | Size: 2.4 KiB |
BIN
textures/wine_coffee_liquor_glass.png
Normal file
After Width: | Height: | Size: 218 B |