From a523463f96c7ad42201b8f4f4de5fb03194075cc Mon Sep 17 00:00:00 2001 From: migdyn Date: Sun, 10 Mar 2019 21:14:04 +0000 Subject: [PATCH] Initial commit --- LICENSE.txt | 7 ++ init.lua | 99 ++++++++++++++++++ mod.conf | 1 + textures/chocolate_bar_dark.png | Bin 0 -> 241 bytes textures/chocolate_bar_milk.png | Bin 0 -> 234 bytes textures/chocolate_bar_white.png | Bin 0 -> 226 bytes textures/chocolate_block_dark.png | Bin 0 -> 199 bytes textures/chocolate_block_milk.png | Bin 0 -> 199 bytes textures/chocolate_block_white.png | Bin 0 -> 193 bytes textures/chocolate_vsl_bottle_glass.png | Bin 0 -> 230 bytes textures/chocolate_vsl_bottle_glass_dark.png | Bin 0 -> 254 bytes textures/chocolate_vsl_bottle_glass_milk.png | Bin 0 -> 254 bytes textures/chocolate_vsl_bottle_glass_white.png | Bin 0 -> 247 bytes textures/chocolate_vsl_bottle_steel.png | Bin 0 -> 251 bytes 14 files changed, 107 insertions(+) create mode 100644 LICENSE.txt create mode 100644 init.lua create mode 100644 mod.conf create mode 100644 textures/chocolate_bar_dark.png create mode 100644 textures/chocolate_bar_milk.png create mode 100644 textures/chocolate_bar_white.png create mode 100644 textures/chocolate_block_dark.png create mode 100644 textures/chocolate_block_milk.png create mode 100644 textures/chocolate_block_white.png create mode 100644 textures/chocolate_vsl_bottle_glass.png create mode 100644 textures/chocolate_vsl_bottle_glass_dark.png create mode 100644 textures/chocolate_vsl_bottle_glass_milk.png create mode 100644 textures/chocolate_vsl_bottle_glass_white.png create mode 100644 textures/chocolate_vsl_bottle_steel.png diff --git a/LICENSE.txt b/LICENSE.txt new file mode 100644 index 0000000..2dd02a0 --- /dev/null +++ b/LICENSE.txt @@ -0,0 +1,7 @@ +Copyright 2019 migdyn + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file diff --git a/init.lua b/init.lua new file mode 100644 index 0000000..69a337f --- /dev/null +++ b/init.lua @@ -0,0 +1,99 @@ +--[[ +Copyright 2019 migdyn + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +]] +--Bars +minetest.register_craftitem("chocolate:bar_dark", { + description = "Dark Chocolate Bar", + inventory_image = "chocolate_bar_dark.png", + on_use = minetest.item_eat(6), +}) + +minetest.register_craftitem("chocolate:bar_milk", { + description = "Milk Chocolate Bar", + inventory_image = "chocolate_bar_milk.png", + on_use = minetest.item_eat(5), +}) + +minetest.register_craftitem("chocolate:bar_white", { + description = "White Chocolate Bar", + inventory_image = "chocolate_bar_white.png", + on_use = minetest.item_eat(3), +}) + +--Blocks +minetest.register_node("chocolate:block_dark", { + description = "Dark Chocolate Block", + tiles = {"chocolate_block_dark.png"}, + on_use = minetest.item_eat(20), +}) + +minetest.register_node("chocolate:block_milk", { + description = "Milk Chocolate Block", + tiles = {"chocolate_block_milk.png"}, + on_use = minetest.item_eat(20), +}) + +minetest.register_node("chocolate:block_white", { + description = "White Chocolate Block", + tiles = {"chocolate_block_white.png"}, + on_use = minetest.item_eat(15), +}) + +--If the player doesn't have the vessels mod isntalled + +if not minetest.get_modpath("vessels") then + minetest.register_craftitem("chocolate:vsl_bottle_glass", { + description = "Empty Glass Bottle", + inventory_image = "chocolate_vsl_bottle_glass.png", + }) + + minetest.register_craftitem("chocolate:vsl_bottle_steel", { + description = "Empty Steel Bottle", + inventory_image = "chocolate_vsl_bottle_steel.png", + }) +end + +--Liquid Chocolate Glass Bottles +minetest.register_craftitem("chocolate:vsl_bottle_glass_dark", { + description = "Liquid Dark Chocolate Glass Bottle", + inventory_image = "chocolate_vsl_bottle_glass_dark.png", + on_use = minetest.item_eat(3), +}) + +minetest.register_craftitem("chocolate:vsl_bottle_glass_milk", { + description = "Liquid Milk Chocolate Glass Bottle", + inventory_image = "chocolate_vsl_bottle_glass_milk.png", + on_use = minetest.item_eat(2), +}) + +minetest.register_craftitem("chocolate:vsl_bottle_glass_white", { + description = "Liquid White Chocolate Glass Bottle", + inventory_image = "chocolate_vsl_bottle_glass_white.png", + on_use = minetest.item_eat(1), +}) + +--Liquid Chocolate Steel Bottles +minetest.register_craftitem("chocolate:vsl_bottle_steel_dark", { + description = "Liquid Dark Chocolate Steel Bottle", + inventory_image = "chocolate_vsl_bottle_steel.png", + on_use = minetest.item_eat(3), +}) + +minetest.register_craftitem("chocolate:vsl_bottle_steel_milk", { + description = "Liquid Milk Chocolate Steel Bottle", + inventory_image = "chocolate_vsl_bottle_steel.png", + on_use = minetest.item_eat(2), +}) + +minetest.register_craftitem("chocolate:vsl_bottle_steel_white", { + description = "Liquid White Chocolate Steel Bottle", + inventory_image = "chocolate_vsl_bottle_steel.png", + on_use = minetest.item_eat(1), +}) + diff --git a/mod.conf b/mod.conf new file mode 100644 index 0000000..fd101f1 --- /dev/null +++ b/mod.conf @@ -0,0 +1 @@ +optional_depends = vessels \ No newline at end of file diff --git a/textures/chocolate_bar_dark.png b/textures/chocolate_bar_dark.png new file mode 100644 index 0000000000000000000000000000000000000000..130268ba8603b577ca0bd47f200d3fd17499a47c GIT binary patch literal 241 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`Y)RhkEEu8EldYL~A~;$9rz&`o}5CSN9F_UacQYy YIMQeE*!7c69nca6Pgg&ebxsLQ0D)CTJ^%m! literal 0 HcmV?d00001 diff --git a/textures/chocolate_bar_milk.png b/textures/chocolate_bar_milk.png new file mode 100644 index 0000000000000000000000000000000000000000..23c87c6c456aea24d8b1e37555aed5b214c8c6a9 GIT binary patch literal 234 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`Y)RhkE*EDx z_41laulvW&EX>@R@PIerpg>}>@|k0=o8tEiFt&But~iunBETM~@K3=|K=2i#t)u!X UCJBaxK+_pKUHx3vIVCg!0Id)~CjbBd literal 0 HcmV?d00001 diff --git a/textures/chocolate_bar_white.png b/textures/chocolate_bar_white.png new file mode 100644 index 0000000000000000000000000000000000000000..d748f01b699798c25ab2e8093575fe87e0b93b9f GIT binary patch literal 226 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`Y)RhkE77$=1wF1%J{Nxc(%xY>ZeSHBnVkAZf=9nS!l8 zJR(hv<_)aD9nBnOapHd*xC~<6928+&+-T9kBpB^?SiGZS0|SH9abP0l+XkKD%d^{ literal 0 HcmV?d00001 diff --git a/textures/chocolate_block_dark.png b/textures/chocolate_block_dark.png new file mode 100644 index 0000000000000000000000000000000000000000..b3a398153a696c4afdc8886238f6f5a5f38ac35d GIT binary patch literal 199 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`Y)RhkE)4$}elTpm`?X>VP=vF< zBeIx*fm;}a85w5HkpK#^mw5WRvOi|#5>(JQc}7MZC?r|p8d2h$pPQSSSHj?2l$uzQ znxasiS(2gP?&%v4-pD5oRHX0e;uvCaI=ST0^Z(}^7!wi`fZ)M1HUIC|*Yo)Bh%^N< lyYWhxGFY0|{q@?$$WW-vnrnW3?@ORo22WQ%mvv4FO#o%=IL810 literal 0 HcmV?d00001 diff --git a/textures/chocolate_block_milk.png b/textures/chocolate_block_milk.png new file mode 100644 index 0000000000000000000000000000000000000000..98fc470b9006dd8cc2954ec600567de65f34079d GIT binary patch literal 199 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`Y)RhkE)4$}elTpm`?X>VP=vF< zBeIx*fm;}a85w5HkpK#^mw5WRvOi|#5>yhoGL=aQC?r|p8d2h$pPQSSSHj?2l$uzQ znxasiS(2gP?&%v4-pD5oRHX0e;uvCaI=Lh$@aK64#)QNK5J*<`|Gqw+$A?FxDUjKX kSHhIR()`~q*KLdp(oL)jqc(Q)0ktxCy85}Sb4q9e0Jyz1Z2$lO literal 0 HcmV?d00001 diff --git a/textures/chocolate_block_white.png b/textures/chocolate_block_white.png new file mode 100644 index 0000000000000000000000000000000000000000..ec0426d229e5bf7c2e8f8da59fcac44c2e6911bf GIT binary patch literal 193 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`Y)RhkEH$sQVo-& d>nG$gF#LVTda~keXC_b+gQu&X%Q~loCIBViGnW7W literal 0 HcmV?d00001 diff --git a/textures/chocolate_vsl_bottle_glass.png b/textures/chocolate_vsl_bottle_glass.png new file mode 100644 index 0000000000000000000000000000000000000000..d6566a8c154d0109dac83f042ef9d722a8afceae GIT binary patch literal 230 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`Y)RhkEEr|n){28E>dXI6o;&B? z44$rjF6*2UngGR6Ob`G7 literal 0 HcmV?d00001 diff --git a/textures/chocolate_vsl_bottle_glass_dark.png b/textures/chocolate_vsl_bottle_glass_dark.png new file mode 100644 index 0000000000000000000000000000000000000000..f5ef5c7f57a3f8aa6cef280956b7ff08efe12a12 GIT binary patch literal 254 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`Y)RhkE)4%caKYZ?lYt_f1s;*b z3=G`DAk4@xYmNj^kiEpy*OmP-Gnb&063+&02cS^5r;B5V#p&b(3D$~(DeBArPo6vH z-{auJ9ljs_JpEnZdq&5Hr~dz+Bc)I$ztaD0e0sx-5SStVk literal 0 HcmV?d00001 diff --git a/textures/chocolate_vsl_bottle_glass_milk.png b/textures/chocolate_vsl_bottle_glass_milk.png new file mode 100644 index 0000000000000000000000000000000000000000..500909ec13461c5c46231b3b2b5ed872b92b62c9 GIT binary patch literal 254 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`Y)RhkE)4%caKYZ?lYt_f1s;*b z3=G`DAk4@xYmNj^kiEpy*OmP-Gnb&0X@By%cA!wVr;B5V#p&b(3D$~(DeBArPo6vH z-{auJ9ljs_JpEnZdq&5Hr~dz+yl! literal 0 HcmV?d00001 diff --git a/textures/chocolate_vsl_bottle_glass_white.png b/textures/chocolate_vsl_bottle_glass_white.png new file mode 100644 index 0000000000000000000000000000000000000000..3cc1698ad4084cb31abcfe2c63f5307099006b6f GIT binary patch literal 247 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`Y)RhkE)4%caKYZ?lYt_f1s;*b z3=G`DAk4@xYmNj^kiEpy*OmP-Gnb&WmBrl>FfKY8w) ze~*I?cldtz^YnLt?-?B*p8EfPl7IaBtlm7elTG>Jw)y*O{@b5nJ;639g~80sDq)ey zoPxH-##g)|8@aceO7N75N_rL@Y`rbDWH&?FZy?QcWCzo7?g^%ki#ZQE9C;?RicLw` j@MS||Bjf5cHXvZ=n&e`6{d!e0&^-*Eu6{1-oD!M<%l}uc literal 0 HcmV?d00001 diff --git a/textures/chocolate_vsl_bottle_steel.png b/textures/chocolate_vsl_bottle_steel.png new file mode 100644 index 0000000000000000000000000000000000000000..2cc5b5c203bfe7eee09dce76ce6d44dc097ebdf1 GIT binary patch literal 251 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`Y)RhkE)4$}elTpm`?X>VP=vF< zBeIx*fm;}a85w5HkpK#^mw5WRvOi|#5|p*rH`(PcP)M@GHKN2hKQ}iuuY|$5C^fMp zHASI3vm`^o-P1Q9ypc~Fs3_Uf#WBR<^xH|hc@G$HxcE+)n;^>nD09yRL(!Fw84d+q zdV1^k3&o4K)`t|A%w8NlZQ%)q0_`r2Tw#U{r7K(nrrL0=nzndiGOs~##J4@{jWeH` s3qNJqT~+T8dU(V0xmO>g*B3DU+o1mX)Ahewfz~m2y85}Sb4q9e0N<`yi~s-t literal 0 HcmV?d00001