diff --git a/init.lua b/init.lua index c68faf2..abc64be 100644 --- a/init.lua +++ b/init.lua @@ -28,6 +28,7 @@ local ferment = { {"farming:barley", "wine:glass_beer"}, {"mobs:honey", "wine:glass_mead"}, {"default:apple", "wine:glass_cider"}, + {"default:papyrus", "wine:glass_rum"}, {"wine:blue_agave", "wine:glass_tequila"}, {"farming:wheat", "wine:glass_wheat_beer"}, {"farming:rice", "wine:glass_sake"}, @@ -205,6 +206,44 @@ minetest.register_node("wine:glass_tequila", { on_use = minetest.item_eat(2), }) +-- glass of rum +minetest.register_node("wine:glass_rum", { + description = "Rum", + drawtype = "plantlike", + visual_scale = 0.8, + tiles = {"wine_rum_glass.png"}, + inventory_image = "wine_rum_glass.png", + wield_image = "wine_rum_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.3, 0.2} + }, + groups = {food_rum = 1, vessel = 1, dig_immediate = 3, attached_node = 1}, + sounds = default.node_sound_glass_defaults(), + on_use = minetest.item_eat(2), +}) + + +-- bottle of rum +minetest.register_node("wine:bottle_rum", { + description = "Bottle of Rum", + drawtype = "plantlike", + tiles = {"wine_rum_bottle.png"}, + inventory_image = "wine_rum_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(), +}) -- bottle of tequila minetest.register_node("wine:bottle_tequila", { @@ -223,6 +262,21 @@ minetest.register_node("wine:bottle_tequila", { sounds = default.node_sound_defaults(), }) +minetest.register_craft({ + output = "wine:bottle_rum", + recipe = { + {"wine:glass_rum", "wine:glass_rum", "wine:glass_rum"}, + {"wine:glass_rum", "wine:glass_rum", "wine:glass_rum"}, + {"wine:glass_rum", "wine:glass_rum", "wine:glass_rum"}, + }, +}) + +minetest.register_craft({ + type = "shapeless", + output = "wine:glass_rum 9", + recipe = {"wine:bottle_rum"}, +}) + minetest.register_craft({ output = "wine:bottle_tequila", recipe = { diff --git a/textures/wine_rum_bottle.png b/textures/wine_rum_bottle.png new file mode 100644 index 0000000..a26ee94 Binary files /dev/null and b/textures/wine_rum_bottle.png differ diff --git a/textures/wine_rum_glass.png b/textures/wine_rum_glass.png new file mode 100644 index 0000000..b2a746b Binary files /dev/null and b/textures/wine_rum_glass.png differ