From 794c68b32b81c8b7bd31ac0fb8cf584a13ad457d Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Mon, 3 Sep 2012 00:16:43 +0300 Subject: [PATCH] Vessels --- mods/vessels/README.txt | 45 +++++++++ mods/vessels/depends.txt | 1 + mods/vessels/init.lua | 86 ++++++++++++++++++ .../alternates/vessels_drinking_glass.png | Bin 0 -> 253 bytes .../alternates/vessels_glass_bottle.png | Bin 0 -> 242 bytes .../alternates/vessels_steel_bottle.png | Bin 0 -> 345 bytes .../textures/vessels_drinking_glass.png | Bin 0 -> 338 bytes .../vessels/textures/vessels_glass_bottle.png | Bin 0 -> 405 bytes .../textures/vessels_glass_fragments.png | Bin 0 -> 425 bytes .../vessels/textures/vessels_steel_bottle.png | Bin 0 -> 342 bytes 10 files changed, 132 insertions(+) create mode 100644 mods/vessels/README.txt create mode 100644 mods/vessels/depends.txt create mode 100644 mods/vessels/init.lua create mode 100644 mods/vessels/textures/alternates/vessels_drinking_glass.png create mode 100644 mods/vessels/textures/alternates/vessels_glass_bottle.png create mode 100644 mods/vessels/textures/alternates/vessels_steel_bottle.png create mode 100644 mods/vessels/textures/vessels_drinking_glass.png create mode 100644 mods/vessels/textures/vessels_glass_bottle.png create mode 100644 mods/vessels/textures/vessels_glass_fragments.png create mode 100644 mods/vessels/textures/vessels_steel_bottle.png diff --git a/mods/vessels/README.txt b/mods/vessels/README.txt new file mode 100644 index 00000000..150b501d --- /dev/null +++ b/mods/vessels/README.txt @@ -0,0 +1,45 @@ +Minetest 0.4 mod: vessels +========================== + +Crafts +------- +Glass bottle (yields 10) + + G - G + G - G + - G - + +Drinking Glass (yields 14) + + G - G + G - G + G G G + +Heavy Steel Bottle (yields 5) + + S - S + S - S + - S - + +License of source code: +----------------------- +Copyright (C) 2012 Vanessa Ezekowitz +Version 2012-09-02 +Modifications by Perttu Ahola + +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU Lesser General Public License as published by +the Free Software Foundation; either version 2.1 of the License, or +(at your option) any later version. + +http://www.gnu.org/licenses/lgpl-2.1.html + +License of media (textures and sounds) +-------------------------------------- +WTFPL + +Authors of media files +----------------------- +Unless specifically noted, +Copyright (C) 2012 Vanessa Ezekowitz + diff --git a/mods/vessels/depends.txt b/mods/vessels/depends.txt new file mode 100644 index 00000000..4ad96d51 --- /dev/null +++ b/mods/vessels/depends.txt @@ -0,0 +1 @@ +default diff --git a/mods/vessels/init.lua b/mods/vessels/init.lua new file mode 100644 index 00000000..81cbad3f --- /dev/null +++ b/mods/vessels/init.lua @@ -0,0 +1,86 @@ +-- Minetest 0.4 mod: vessels +-- See README.txt for licensing and other information. + +minetest.register_craftitem("vessels:glass_bottle", { + description = "Glass Bottle (empty)", + inventory_image = "vessels_glass_bottle.png", + groups = {vessel=1}, +}) + +minetest.register_craft( { + output = "vessels:glass_bottle 10", + recipe = { + { "default:glass", "", "default:glass" }, + { "default:glass", "", "default:glass" }, + { "", "default:glass", "" } + } +}) + +minetest.register_craftitem("vessels:drinking_glass", { + description = "Drinking Glass (empty)", + inventory_image = "vessels_drinking_glass.png", + groups = {vessel=1}, +}) + +minetest.register_craft( { + output = "vessels:drinking_glass 14", + recipe = { + { "default:glass", "", "default:glass" }, + { "default:glass", "", "default:glass" }, + { "default:glass", "default:glass", "default:glass" } + } +}) + +minetest.register_craftitem("vessels:steel_bottle", { + description = "Heavy Steel Bottle (empty)", + inventory_image = "vessels_steel_bottle.png", + groups = {vessel=1}, +}) + +minetest.register_craft( { + output = "vessels:steel_bottle 5", + recipe = { + { "default:steel_ingot", "", "default:steel_ingot" }, + { "default:steel_ingot", "", "default:steel_ingot" }, + { "", "default:steel_ingot", "" } + } +}) + + +-- Make sure we can recycle them + +minetest.register_craftitem("vessels:glass_fragments", { + description = "Pile of Glass Fragments", + inventory_image = "vessels_glass_fragments.png", +}) + +minetest.register_craft( { + type = "shapeless", + output = "vessels:glass_fragments", + recipe = { + "vessels:glass_bottle", + "vessels:glass_bottle", + }, +}) + +minetest.register_craft( { + type = "shapeless", + output = "vessels:glass_fragments", + recipe = { + "vessels:drinking_glass", + "vessels:drinking_glass", + }, +}) + +minetest.register_craft({ + type = "cooking", + output = "default:glass", + recipe = "vessels:glass_fragments", +}) + +minetest.register_craft( { + type = "cooking", + output = "default:steel_ingot", + recipe = "vessels:steel_bottle", +}) + diff --git a/mods/vessels/textures/alternates/vessels_drinking_glass.png b/mods/vessels/textures/alternates/vessels_drinking_glass.png new file mode 100644 index 0000000000000000000000000000000000000000..8ad033e82f90e8cfb903d83f6a7974aec5829267 GIT binary patch literal 253 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`oCO|{#S9GG!XV7ZFl&wkP>{XE z)7O>#4!f+lxV*+pNdutJ98VX=5R21KgLiWsHV~NX%-gyAH*>wyzyHQY)t??HPPV<- zW*l?<*jnjd4SZM2gg7`$4y<2Tb*Nf@smPN#{Cf=9PH#F8wYn|u_dahgPq!*BPbUuc z+FiC$+4|u#s+u}PjJ^5O#FTb**H=DSwKXhX{l|_&`=yUa6q+rOcwFrMd`?fFVdQ&MBb@0EggO>i_@% literal 0 HcmV?d00001 diff --git a/mods/vessels/textures/alternates/vessels_glass_bottle.png b/mods/vessels/textures/alternates/vessels_glass_bottle.png new file mode 100644 index 0000000000000000000000000000000000000000..d922579329a8e05c396247ad568a551f405c67fb GIT binary patch literal 242 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`oCO|{#S9GG!XV7ZFl&wkP>{XE z)7O>#4!f+lxWu-+KF8|r&MMFiEoRpk2Rd4-r%Z}E3ekSi(ly=?`G+Ud!PC{xWt~$(695SsSdjn# literal 0 HcmV?d00001 diff --git a/mods/vessels/textures/alternates/vessels_steel_bottle.png b/mods/vessels/textures/alternates/vessels_steel_bottle.png new file mode 100644 index 0000000000000000000000000000000000000000..629c857d793cf88815b2d7e205cfa3e9d83ddb75 GIT binary patch literal 345 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`oCO|{#S9GG!XV7ZFl&wkP>{XE z)7O>#4!f+l6n{fQxg=2Nho_5Uh{fr{XE z)7O>#4!f+ln8B=IQ4OHbM^6{W5R21CgRQ$-9Rzgbwe5}`@cFwWWDSfmB?1pFFc*{%L?$9}1V8y^NB}l;OfaP)NImJ3H4MDH0 zChU9vQ*X=OXJ1ubF4ng#+mL@Rd*3^=X{j%5%ZjERyjJtt!RusbXr;T~k}22uwp{aZ zsZp5{WF)xp+OIo}Tg4m&7HDu;Jh$jeW;kHcr=Y}hm?8V^U)`2Oj{Dy~*6n9xIK3$$ hHvG)znp*DqgXYgy&n(y35DN-522WQ%mvv4FO#n%jhHL-; literal 0 HcmV?d00001 diff --git a/mods/vessels/textures/vessels_glass_bottle.png b/mods/vessels/textures/vessels_glass_bottle.png new file mode 100644 index 0000000000000000000000000000000000000000..c325fd1666b487d7783657a87f5eeed76f4bcdf5 GIT binary patch literal 405 zcmV;G0c!q-DOXgJkNMKpO|GCwbt}~zvS#25BQdlE`xSI00000NkvXXu0mjfekP_k literal 0 HcmV?d00001 diff --git a/mods/vessels/textures/vessels_glass_fragments.png b/mods/vessels/textures/vessels_glass_fragments.png new file mode 100644 index 0000000000000000000000000000000000000000..7772a2393e584a06f8d8d6294b484d8c963c453c GIT binary patch literal 425 zcmV;a0apHrP)g`v1PdF9Rw+dSo-KBhr|&(s+ip*F?=W-boHOtr{}$`@ zTKoN8f9vtS79`0zC+D01=JPqv=d=5Ng|&|~O%((IP17(O4grXw2ua*-HvoL!rzi>l z;y5;dk5{%NNm><@W%+x98FgI~MG*kg>6Fvygd~}neUp@BnX0PND_RSZl;`<(D`}c4 z&vQBF^poE#%etB*RaK?840gMnk|g1Nzq8qFn9XM0a2ST2mDZk_aXz2fZnvKyUM?4n z$72Al*DG~h18_VZJF=EIj$?Z~9y%Njp9HV6!!YEhd|Kl60sxk#sYas_lgZ?5xIN!s zFreS>zsZ+G(=;rXOS~WmSS%LZmep#7nORwu_`XlC*P|#3ilV^tJTo)<(*wXS24T!j T9^59K00000NkvXXu0mjf2k@{B literal 0 HcmV?d00001 diff --git a/mods/vessels/textures/vessels_steel_bottle.png b/mods/vessels/textures/vessels_steel_bottle.png new file mode 100644 index 0000000000000000000000000000000000000000..d2b846da0becbd073fd3a1d96bc83e8fedae342c GIT binary patch literal 342 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`oCO|{#S9GG!XV7ZFl&wkP>{XE z)7O>#4!f+l5(j5>oFh=^tEY=&h{fr7UEkt)fEVKi9qx0M49hZ;W~ogHT7PS)@atXoCaXAdeBAWG l=Dfx83sJ$LS9|yOs0S&hTu(UEwH+7$44$rjF6*2UngFLQgf##F literal 0 HcmV?d00001