From f9d6ecd0bb72f463a3d060b7dfe5d5ff04f82459 Mon Sep 17 00:00:00 2001 From: ClobberXD Date: Sat, 10 Nov 2018 15:23:50 +0530 Subject: [PATCH] Add wool mod --- mods/wool/README.txt | 16 +++++++ mods/wool/depends.txt | 1 + mods/wool/init.lua | 41 +++++++++++++++++ mods/wool/license.txt | 60 +++++++++++++++++++++++++ mods/wool/textures/wool_black.png | Bin 0 -> 209 bytes mods/wool/textures/wool_blue.png | Bin 0 -> 264 bytes mods/wool/textures/wool_brown.png | Bin 0 -> 267 bytes mods/wool/textures/wool_cyan.png | Bin 0 -> 302 bytes mods/wool/textures/wool_dark_green.png | Bin 0 -> 254 bytes mods/wool/textures/wool_dark_grey.png | Bin 0 -> 260 bytes mods/wool/textures/wool_green.png | Bin 0 -> 304 bytes mods/wool/textures/wool_grey.png | Bin 0 -> 248 bytes mods/wool/textures/wool_magenta.png | Bin 0 -> 296 bytes mods/wool/textures/wool_orange.png | Bin 0 -> 284 bytes mods/wool/textures/wool_pink.png | Bin 0 -> 218 bytes mods/wool/textures/wool_red.png | Bin 0 -> 288 bytes mods/wool/textures/wool_violet.png | Bin 0 -> 244 bytes mods/wool/textures/wool_white.png | Bin 0 -> 243 bytes mods/wool/textures/wool_yellow.png | Bin 0 -> 255 bytes 19 files changed, 118 insertions(+) create mode 100644 mods/wool/README.txt create mode 100644 mods/wool/depends.txt create mode 100644 mods/wool/init.lua create mode 100644 mods/wool/license.txt create mode 100644 mods/wool/textures/wool_black.png create mode 100644 mods/wool/textures/wool_blue.png create mode 100644 mods/wool/textures/wool_brown.png create mode 100644 mods/wool/textures/wool_cyan.png create mode 100644 mods/wool/textures/wool_dark_green.png create mode 100644 mods/wool/textures/wool_dark_grey.png create mode 100644 mods/wool/textures/wool_green.png create mode 100644 mods/wool/textures/wool_grey.png create mode 100644 mods/wool/textures/wool_magenta.png create mode 100644 mods/wool/textures/wool_orange.png create mode 100644 mods/wool/textures/wool_pink.png create mode 100644 mods/wool/textures/wool_red.png create mode 100644 mods/wool/textures/wool_violet.png create mode 100644 mods/wool/textures/wool_white.png create mode 100644 mods/wool/textures/wool_yellow.png diff --git a/mods/wool/README.txt b/mods/wool/README.txt new file mode 100644 index 0000000..a66677d --- /dev/null +++ b/mods/wool/README.txt @@ -0,0 +1,16 @@ +Minetest Game mod: wool +======================= +See license.txt for license information. + +Authors of source code +---------------------- +Originally by Perttu Ahola (celeron55) (MIT) +Various Minetest developers and contributors (MIT) + +Authors of media (textures) +--------------------------- +Cisoun (CC BY-SA 3.0): + wool_black.png wool_brown.png wool_dark_green.png wool_green.png + wool_magenta.png wool_pink.png wool_violet.png wool_yellow.png + wool_blue.png wool_cyan.png wool_dark_grey.png wool_grey.png + wool_orange.png wool_red.png wool_white.png diff --git a/mods/wool/depends.txt b/mods/wool/depends.txt new file mode 100644 index 0000000..4ad96d5 --- /dev/null +++ b/mods/wool/depends.txt @@ -0,0 +1 @@ +default diff --git a/mods/wool/init.lua b/mods/wool/init.lua new file mode 100644 index 0000000..fa6b569 --- /dev/null +++ b/mods/wool/init.lua @@ -0,0 +1,41 @@ +-- This uses a trick: you can first define the recipes using all of the base +-- colors, and then some recipes using more specific colors for a few non-base +-- colors available. When crafting, the last recipes will be checked first. + +local dyes = { + {"white", "White"}, + {"grey", "Grey"}, + {"black", "Black"}, + {"red", "Red"}, + {"yellow", "Yellow"}, + {"green", "Green"}, + {"cyan", "Cyan"}, + {"blue", "Blue"}, + {"magenta", "Magenta"}, + {"orange", "Orange"}, + {"violet", "Violet"}, + {"brown", "Brown"}, + {"pink", "Pink"}, + {"dark_grey", "Dark Grey"}, + {"dark_green", "Dark Green"}, +} + +for i = 1, #dyes do + local name, desc = unpack(dyes[i]) + + minetest.register_node("wool:" .. name, { + description = desc .. " Wool", + tiles = {"wool_" .. name .. ".png"}, + is_ground_content = false, + groups = {snappy = 2, choppy = 2, oddly_breakable_by_hand = 3, + flammable = 3, wool = 1}, + sounds = default.node_sound_defaults(), + }) +end + + +-- legacy + +-- Backwards compatibility with jordach's 16-color wool mod +minetest.register_alias("wool:dark_blue", "wool:blue") +minetest.register_alias("wool:gold", "wool:yellow") diff --git a/mods/wool/license.txt b/mods/wool/license.txt new file mode 100644 index 0000000..9310163 --- /dev/null +++ b/mods/wool/license.txt @@ -0,0 +1,60 @@ +License of source code +---------------------- + +The MIT License (MIT) +Copyright (C) 2012-2016 Perttu Ahola (celeron55) +Copyright (C) 2012-2016 Various Minetest developers and contributors + +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. + +For more details: +https://opensource.org/licenses/MIT + + +Licenses of media (textures) +---------------------------- + +Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0) +Copyright (C) 2012-2016 Cisoun + +You are free to: +Share — copy and redistribute the material in any medium or format. +Adapt — remix, transform, and build upon the material for any purpose, even commercially. +The licensor cannot revoke these freedoms as long as you follow the license terms. + +Under the following terms: + +Attribution — You must give appropriate credit, provide a link to the license, and +indicate if changes were made. You may do so in any reasonable manner, but not in any way +that suggests the licensor endorses you or your use. + +ShareAlike — If you remix, transform, or build upon the material, you must distribute +your contributions under the same license as the original. + +No additional restrictions — You may not apply legal terms or technological measures that +legally restrict others from doing anything the license permits. + +Notices: + +You do not have to comply with the license for elements of the material in the public +domain or where your use is permitted by an applicable exception or limitation. +No warranties are given. The license may not give you all of the permissions necessary +for your intended use. For example, other rights such as publicity, privacy, or moral +rights may limit how you use the material. + +For more details: +http://creativecommons.org/licenses/by-sa/3.0/ diff --git a/mods/wool/textures/wool_black.png b/mods/wool/textures/wool_black.png new file mode 100644 index 0000000000000000000000000000000000000000..700d439dca261455e623c41db9b409d1f6afc46c GIT binary patch literal 209 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!73?$#)eFPGa2=EDUm6es%*47pg5s{admynPU z5D-vTS65V2^j~5q1yobw>Eal|AN<$1EjD}1Z}m+A=U z*f=d)v*PHFEmK$7Z|O_lej@wV8pe-XJAK$czBv8b;{Q?>k$)8q(#wJNGkCiCxvX}xi1bA-H_l0C0T#wF)SFaKem{`}qRd;3jzKUKZkk$LwCuY{`Qv1>sIes0GwG)6>Nq=dwg z^5q{y3@wZzW_;x;;}G>vEa0A-mMHOS#ms}9(G#pYqxo03Wi%=^t6q0*+wD48)K|St z%W#U>@>VM;Zdaov^UUmmPrTjK^|0Y|o+Fzen<$(2@@MMDI%TUE*3_scJulYT3v?ud Mr>mdKI;Vst0I=6r;Q#;t literal 0 HcmV?d00001 diff --git a/mods/wool/textures/wool_cyan.png b/mods/wool/textures/wool_cyan.png new file mode 100644 index 0000000000000000000000000000000000000000..395b6ac77404f2c244ee34a9dfe5d89f452acddf GIT binary patch literal 302 zcmV+}0nz@6P)@!$1%NF#GTsl63!7D`D_n#%qN>ziNR| z_Z|rd8;Sy0cyvJoU;s(Xs=RN|C+qbRs3Sb;oGjrg_Cm&je1Hm;2mmyR-i2*P0VwcW z<@{97(Gva;lsT)|&-KhK*T8}j^jzUPk+CWf2+<12}RljVgLXD07*qoM6N<$f?h*% A9RL6T literal 0 HcmV?d00001 diff --git a/mods/wool/textures/wool_dark_green.png b/mods/wool/textures/wool_dark_green.png new file mode 100644 index 0000000000000000000000000000000000000000..0e73999eae3a20fae94b07c477625f09178da6ea GIT binary patch literal 254 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!63?wyl`GbL!dVo)et5ODoPCbKEG=o+ZgGvsA zLK=f?0)s>tgGwHQSO9~tHv^v|gIX!WO14}}pq5FVE{-7;jJl`2`&OF7;xjbpc3s^@fHJbBs<*0dSflQZ3B^2!{nZIz03-5C5*W?PEAk=T`{ zKaR(3PTPK5|4k_};`_nBiU)Tsex-hH<__MC8HugGdo16r;k~1>+4J7&iEXWO<}LiC zwRyJe#angve(gK;b;ifsKlRTTg$hkqbbn9!$Dm!nqWtf^>{+1e7(8A5T-G@yGywq1 CM_$JO literal 0 HcmV?d00001 diff --git a/mods/wool/textures/wool_dark_grey.png b/mods/wool/textures/wool_dark_grey.png new file mode 100644 index 0000000000000000000000000000000000000000..7253696edc72e9024268b46c95b2e445f0400cf2 GIT binary patch literal 260 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!63?wyl`GbL!R)9~4tF^VYt*x!Sy}h2Eo{x`@ zxw*NQmzR-|k(!#Cv9YncyStyCpPZbWqoZS5uU$P**Hljz$B+s}*)yD6E`~fz0jA!U zp5FhzYcgNRltbJ{@{XBq)S1S*<=eD72TKxvJvmf(CS^zW2BzP~7}n{rs+nH1@V&um zqQG|G{DB(%Z*0Zw_smym|6;n!ubVVy?FPMBwOP!j9Cix9_urf;5A#_6^f~i8-nByP zeA7Nyq!lsUoVE9I*87J1Pcm;*KFePScF|q+Iyv&ewteym@+^})<_4b!I*`HB)z4*} HQ$iB}LS0<` literal 0 HcmV?d00001 diff --git a/mods/wool/textures/wool_green.png b/mods/wool/textures/wool_green.png new file mode 100644 index 0000000000000000000000000000000000000000..dcb663bee440af80bc0677c6024182bf79bd2ba5 GIT binary patch literal 304 zcmV-00nh%4P)KVc;B7#2j$_9Buj>XY(9lz>%rb$FWR2Ufr!G!?>K@7k!hmPr~`;S@)(Q``rLW)0k zjfB)OWI`?tF#wi<8EAs3>}qOGe>l7MFX z)cgIJy{}60RZx3&z2oP)_a!G#p=YDtLZ26nh6#u@e8H9ZzBHFljlFEgoTPX?TSUnb zCQ-3x^zboOrmF&@Y3W^+W`!mNuSH(J)Z@0_Pp&_l*9RUjlT&K|0000bVBp&4TR{ z7IFWSy3jOlit`j_cYRhFuGP~e{BQI$95w6?Ka^|JfAD((i;v0cGns4W99(G566Q5u zSJUq4=_@Qe+eObmdHtugdw;k34x2B1pG|kJI~d*hZD;t(C1++`T@x0O-MzK@>RaFM wa$@`ieL3uR8n25V;=IV0_SflljONGh?B@!b8{hAr@(tuAPgg&ebxsLQ05|hwNdN!< literal 0 HcmV?d00001 diff --git a/mods/wool/textures/wool_magenta.png b/mods/wool/textures/wool_magenta.png new file mode 100644 index 0000000000000000000000000000000000000000..5c2c4a7aff3462660939b3d68562ae2fe9402ae1 GIT binary patch literal 296 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!63?wyl`GbL!eSlAh>r>VVXPJvGGMArV&N;=L z|A3`?Cv)U}=EU>NrMsD9wlRfnW(r!zNTgQ%gG(3JYH>?{}-e>=_hop%oHegN$Ps^JILtBtrcdwIP&5b-m>0ms=e3g_cyWX<%dpM sZk$_U-Yosl$t5*XvFF>HIiG$rSL(6NkC?!;0q9-^Pgg&ebxsLQ00w<=#Q*>R literal 0 HcmV?d00001 diff --git a/mods/wool/textures/wool_orange.png b/mods/wool/textures/wool_orange.png new file mode 100644 index 0000000000000000000000000000000000000000..a059f3646f4043897ef1315584cf8e3e9cdb540f GIT binary patch literal 284 zcmV+%0ptFOP)TVy=OcUZ_8^=Bm!8QxEBnI7F z8F!tAn*aa+o=HSOR2Ufr!G{3@ArJ#F+t=vu*?-tb0OrL0x*^7Hy?}NOj7&I9Bo><% zGf8aHfDyv{3Ng@TSRqic+ZeD4>3&EoYLiN?6bZV@J>h2?2_a_W`=s||6$K#2XxV4z z4YSz+qf7KOy8Y;I3X3LZ6qgC#S5{%_uW4K}?E50~UZ{8BHsn3tEal|ADwBME zY4PN=HyYc2KH#+6^gQrHYE;Ufnul?A23v3Be(znGXKM7w$yF~RW6q-f`p|mexC06- RGl5QE@O1TaS?83{1OWA}T;Koz literal 0 HcmV?d00001 diff --git a/mods/wool/textures/wool_red.png b/mods/wool/textures/wool_red.png new file mode 100644 index 0000000000000000000000000000000000000000..da12ecffd13a8896de8fed61dd2e929e3a556322 GIT binary patch literal 288 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!63?wyl`GbL!Wq?nJ>uE{JwZg(1MMRbh3a%Cs zIw~PCg_n1Wh{zm%{%O3t3;FqbxVX+qN!7EnPvqg*Cnna$$yvtAn#Ihlm)P42G-Q#d zi(`m{Bx42C=$0?NugD;}vHH#VoczgMN-I8pwTQn_t$Cl3 zbsd{L)A^ReiJKJIToRW)`o4ONhxPimXMK8hI+yyrvQ*o=@bj~`_Hc5!D2g0Ty1(q-@B8Ji z8dSAZ0=`d*cP{xg!+66q3+}Z~v!y<1{naU3@ou`P?;VAYhu-OJz9L^$7d7GK#=fFs zCq3_d7v5^0`F|-(^}BDqx1{re*G#k#X192qdNFche@*($KuSZ4p;8h13HVr)78&qol`;+0CON=GXMYp literal 0 HcmV?d00001 diff --git a/mods/wool/textures/wool_white.png b/mods/wool/textures/wool_white.png new file mode 100644 index 0000000000000000000000000000000000000000..88f1e2f55f521a97de29454eefa196df88f68efd GIT binary patch literal 243 zcmVSNKwqS;qV@o47IOAv?nNCywVEljk`K5~6QI>a99?+v`KN3%M_ zQA+K4o4;koqvF8?m_2sRA5(H84g;H3c_!q#+N?HR--@Dh%BQb&s1B$ivWJ5-n|9oH{Qm1F+#XMBX}bUb002ovPDHLkV1j#RYIOhr literal 0 HcmV?d00001 diff --git a/mods/wool/textures/wool_yellow.png b/mods/wool/textures/wool_yellow.png new file mode 100644 index 0000000000000000000000000000000000000000..2b0f04897e264960f4d4e59aa04d0c786afd4c00 GIT binary patch literal 255 zcmV_X?85mcu< z2}SL#tmqFMA+92jB{$bf@{+V5BIkv36lscN)9tskw|yFUEC^ZOe