From 2768ac8b84d527ace85aecfc04955c11bd8d4bee Mon Sep 17 00:00:00 2001 From: "A.C.M" Date: Wed, 27 Feb 2019 03:28:23 +0100 Subject: [PATCH] Rum added. --- init.lua | 54 +++++++++++++++++++++++++++++++++++ textures/wine_rum_bottle.png | Bin 0 -> 379 bytes textures/wine_rum_glass.png | Bin 0 -> 389 bytes 3 files changed, 54 insertions(+) create mode 100644 textures/wine_rum_bottle.png create mode 100644 textures/wine_rum_glass.png 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 0000000000000000000000000000000000000000..a26ee940c2387ac64802a447fe5d1d259cf31b0d GIT binary patch literal 379 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE3?yBabR7dy9sxcfu0WdM|NsBB45w$gPP36{ zVqj>JVGs}yIDPu`bC3)W$uKNqVA!^e;rw}q=g%Ym|1SOiyX*h|Hdl*Tk-n>PV|O)` zo}Sfp)M`c=&?t$LAirRcf!M&yJ1%BGHK#mX978Nl&z;=K*Q~(Pc2IV15Le!dd;fi} zXKnJx*_~qV?(-|~jUxy9+P8bz{7+|R>Rp)jth(Y_M9gl6Cyd6-+qx^otVOw3{;pKg z3fw>ct@VV^N4Go~jp_31)2319?R_8WHePsB{EG**nx?C!e@qU z-HAUw3R@UiNhSf0zvp0z-C>`stNx8l%GW%%mi8WjWFTeQP-?7e2 zyu)WSd)n?vw}bMd_(C|QrB09G4BT`4_)5FId-#JM@MQOWydVq;MNd~hmvv4FO#t|x Bs2%_S literal 0 HcmV?d00001 diff --git a/textures/wine_rum_glass.png b/textures/wine_rum_glass.png new file mode 100644 index 0000000000000000000000000000000000000000..b2a746ba249c575fa7d6d27c728cab97729dbcfd GIT binary patch literal 389 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE3?yBabR7dyfdM`tu0WdMKM?)@FC+8c#N>Zq z;Q!p*|6N`GH|736zv%pNhUbrgl0YQ$|9kHL-)#)fpGW@xUHbob*Z=?X{{P7KAvE4$sy67ft%-j3(&tCej#ms1=LoM8 zD_3=#CwYyl`*+U$t(SgTtm*uD&vSwL8YKoE##x#g7hEPR=vwfrHr`cWK|Noc#NXv| z+85=U3#6~@s>-iB*q{&**bpgE;9|hg|3OuW*`Ft};q-wD|NX8Oe2ENo?L0dC8>R`E zX>ZtnfVChz!N1z4;vvJC>NDAC_17$y{pjjszfgMD#P{rC^NoeP+Y^qLodAWWr>mdK II;Vst0JU(sSO5S3 literal 0 HcmV?d00001