diff --git a/README.md b/README.md index 01b1231..f6bce53 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ Change log: - 0.5 - Added apple cider - 0.6 - Added API so drinks can easily be added, also added wheat beer thanks to h-v-smacker and support for pipeworks/tubelib - 0.7 - Blue Agave now appears in desert areas and spreads very slowly, can me fermented into tequila -- 0.8 - Barrel and Agave both use node timers now thanks to h-v-smacker +- 0.8 - Barrel and Agave both use node timers now thanks to h-v-smacker, added sake Lucky Blocks: 9 diff --git a/init.lua b/init.lua index b1d7093..005b11a 100644 --- a/init.lua +++ b/init.lua @@ -30,6 +30,7 @@ local ferment = { {"default:apple", "wine:glass_cider"}, {"wine:blue_agave", "wine:glass_tequila"}, {"farming:wheat", "wine:glass_wheat_beer"}, + {"farming:rice", "wine:glass_sake"}, } function wine:add_item(list) @@ -238,6 +239,28 @@ minetest.register_craft({ }) +-- glass of sake +minetest.register_node("wine:glass_sake", { + description = "Sake", + drawtype = "plantlike", + visual_scale = 0.8, + tiles = {"wine_sake.png"}, + inventory_image = "wine_sake.png", + wield_image = "wine_sake.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.3, 0.2} + }, + groups = {food_sake = 1, vessel = 1, dig_immediate = 3, attached_node = 1}, + sounds = default.node_sound_glass_defaults(), + on_use = minetest.item_eat(2), +}) + + -- blue agave minetest.register_node("wine:blue_agave", { description = "Blue Agave", diff --git a/textures/wine_sake.png b/textures/wine_sake.png new file mode 100644 index 0000000..16fb52b Binary files /dev/null and b/textures/wine_sake.png differ