added glass and bottle of vodka

master
TenPlus1 2020-03-20 09:11:21 +00:00
parent 4bce3581f6
commit b2c4c15150
4 changed files with 62 additions and 1 deletions

View File

@ -18,8 +18,9 @@ Change log:
- 0.8 - Barrel and Agave both use node timers now thanks to h-v-smacker, added sake
- 0.9 - Added Glass of Rum and Bottle of Rum thanks to acm :) Added {alcohol=1} groups
- 1.0 - Added glass and bottle or Bourbon made by fermenting corn
- 1.1 - Added glass and bottle of Vodka made by fermenting baked potato
Lucky Blocks: 12
Lucky Blocks: 13
Wine Mod API

View File

@ -33,6 +33,7 @@ local ferment = {
{"farming:wheat", "wine:glass_wheat_beer"},
{"farming:rice", "wine:glass_sake"},
{"farming:corn", "wine:glass_bourbon"},
{"farming:baked_potato", "wine:glass_vodka"}
}
function wine:add_item(list)
@ -399,6 +400,63 @@ minetest.register_craft({
})
-- glass of vodka
minetest.register_node("wine:glass_vodka", {
description = S("Glass of Vodka"),
drawtype = "plantlike",
visual_scale = 0.8,
tiles = {"wine_vodka_glass.png"},
inventory_image = "wine_vodka_glass.png",
wield_image = "wine_vodka_glass.png",
paramtype = "light",
is_ground_content = false,
sunlight_propagates = true,
walkable = false,
selection_box = {
type = "fixed",
fixed = {-0.2, -0.5, -0.2, 0.2, 0.2, 0.2}
},
groups = {
food_wine = 1, vessel = 1, dig_immediate = 3, attached_node = 1,
alcohol = 1
},
sounds = default.node_sound_glass_defaults(),
on_use = minetest.item_eat(2),
})
-- bottle of vodka
minetest.register_node("wine:bottle_vodka", {
description = S("Bottle of Vodka"),
drawtype = "plantlike",
tiles = {"wine_vodka_bottle.png"},
inventory_image = "wine_vodka_bottle.png",
paramtype = "light",
sunlight_propagates = true,
walkable = false,
selection_box = {
type = "fixed",
fixed = { -0.15, -0.5, -0.15, 0.15, 0.25, 0.15 }
},
groups = {dig_immediate = 3, attached_node = 1, vessel = 1},
sounds = default.node_sound_defaults(),
})
minetest.register_craft({
output = "wine:bottle_vodka",
recipe = {
{"wine:glass_vodka", "wine:glass_vodka", "wine:glass_vodka"},
{"wine:glass_vodka", "wine:glass_vodka", "wine:glass_vodka"},
{"wine:glass_vodka", "wine:glass_vodka", "wine:glass_vodka"},
},
})
minetest.register_craft({
type = "shapeless",
output = "wine:glass_vodka 9",
recipe = {"wine:bottle_vodka"},
})
-- blue agave
minetest.register_node("wine:blue_agave", {
description = "Blue Agave",
@ -730,6 +788,7 @@ if minetest.get_modpath("lucky_block") then
{"dro", {"wine:glass_rum"}, 5},
{"dro", {"wine:glass_tequila"}, 5},
{"dro", {"wine:glass_bourbon"}, 5},
{"dro", {"wine:glass_vodka"}, 5},
{"dro", {"wine:wine_barrel"}, 1},
{"tel", 5, 1},
{"nod", "default:chest", 0, {
@ -737,6 +796,7 @@ if minetest.get_modpath("lucky_block") then
{name = "wine:bottle_tequila", max = 1},
{name = "wine:bottle_rum", max = 1},
{name = "wine:bottle_bourbon", max = 1},
{name = "wine:bottle_vodka", max = 1},
{name = "wine:wine_barrel", max = 1},
{name = "wine:blue_agave", max = 4}}},
})

Binary file not shown.

After

Width:  |  Height:  |  Size: 237 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 166 B