From 2c7962d09dd7c075b018217836e0c9d5b7d506f3 Mon Sep 17 00:00:00 2001 From: Jordan Snelling Date: Sun, 26 Aug 2012 14:34:56 +0100 Subject: [PATCH] First commit; done the node defs, just need to finish crafting and textures --- .gitattributes | 22 +++ .gitignore | 163 ++++++++++++++++++++++ carpet/init.lua | 186 ++++++++++++++++++++++++++ carpet/textures/carpet_orange_cen.png | Bin 0 -> 248 bytes carpet/textures/carpet_orange_cor.png | Bin 0 -> 254 bytes carpet/textures/carpet_orange_one.png | Bin 0 -> 259 bytes carpet/textures/carpet_orange_out.png | Bin 0 -> 236 bytes carpet/textures/carpet_red_cen.png | Bin 0 -> 180 bytes carpet/textures/carpet_red_cor.png | Bin 0 -> 211 bytes carpet/textures/carpet_red_one.png | Bin 0 -> 198 bytes carpet/textures/carpet_red_out.png | Bin 0 -> 198 bytes 11 files changed, 371 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 carpet/init.lua create mode 100644 carpet/textures/carpet_orange_cen.png create mode 100644 carpet/textures/carpet_orange_cor.png create mode 100644 carpet/textures/carpet_orange_one.png create mode 100644 carpet/textures/carpet_orange_out.png create mode 100644 carpet/textures/carpet_red_cen.png create mode 100644 carpet/textures/carpet_red_cor.png create mode 100644 carpet/textures/carpet_red_one.png create mode 100644 carpet/textures/carpet_red_out.png diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..412eeda --- /dev/null +++ b/.gitattributes @@ -0,0 +1,22 @@ +# Auto detect text files and perform LF normalization +* text=auto + +# Custom for Visual Studio +*.cs diff=csharp +*.sln merge=union +*.csproj merge=union +*.vbproj merge=union +*.fsproj merge=union +*.dbproj merge=union + +# Standard to msysgit +*.doc diff=astextplain +*.DOC diff=astextplain +*.docx diff=astextplain +*.DOCX diff=astextplain +*.dot diff=astextplain +*.DOT diff=astextplain +*.pdf diff=astextplain +*.PDF diff=astextplain +*.rtf diff=astextplain +*.RTF diff=astextplain diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5ebd21a --- /dev/null +++ b/.gitignore @@ -0,0 +1,163 @@ +################# +## Eclipse +################# + +*.pydevproject +.project +.metadata +bin/ +tmp/ +*.tmp +*.bak +*.swp +*~.nib +local.properties +.classpath +.settings/ +.loadpath + +# External tool builders +.externalToolBuilders/ + +# Locally stored "Eclipse launch configurations" +*.launch + +# CDT-specific +.cproject + +# PDT-specific +.buildpath + + +################# +## Visual Studio +################# + +## Ignore Visual Studio temporary files, build results, and +## files generated by popular Visual Studio add-ons. + +# User-specific files +*.suo +*.user +*.sln.docstates + +# Build results +[Dd]ebug/ +[Rr]elease/ +*_i.c +*_p.c +*.ilk +*.meta +*.obj +*.pch +*.pdb +*.pgc +*.pgd +*.rsp +*.sbr +*.tlb +*.tli +*.tlh +*.tmp +*.vspscc +.builds +*.dotCover + +## TODO: If you have NuGet Package Restore enabled, uncomment this +#packages/ + +# Visual C++ cache files +ipch/ +*.aps +*.ncb +*.opensdf +*.sdf + +# Visual Studio profiler +*.psess +*.vsp + +# ReSharper is a .NET coding add-in +_ReSharper* + +# Installshield output folder +[Ee]xpress + +# DocProject is a documentation generator add-in +DocProject/buildhelp/ +DocProject/Help/*.HxT +DocProject/Help/*.HxC +DocProject/Help/*.hhc +DocProject/Help/*.hhk +DocProject/Help/*.hhp +DocProject/Help/Html2 +DocProject/Help/html + +# Click-Once directory +publish + +# Others +[Bb]in +[Oo]bj +sql +TestResults +*.Cache +ClientBin +stylecop.* +~$* +*.dbmdl +Generated_Code #added for RIA/Silverlight projects + +# Backup & report files from converting an old project file to a newer +# Visual Studio version. Backup files are not needed, because we have git ;-) +_UpgradeReport_Files/ +Backup*/ +UpgradeLog*.XML + + + +############ +## Windows +############ + +# Windows image file caches +Thumbs.db + +# Folder config file +Desktop.ini + + +############# +## Python +############# + +*.py[co] + +# Packages +*.egg +*.egg-info +dist +build +eggs +parts +bin +var +sdist +develop-eggs +.installed.cfg + +# Installer logs +pip-log.txt + +# Unit test / coverage reports +.coverage +.tox + +#Translations +*.mo + +#Mr Developer +.mr.developer.cfg + +# Mac crap +.DS_Store diff --git a/carpet/init.lua b/carpet/init.lua new file mode 100644 index 0000000..fe06f88 --- /dev/null +++ b/carpet/init.lua @@ -0,0 +1,186 @@ +-- Carpet Mod! +-- By Jordan Snelling 2012 +-- License LGPL +-- This mod adds carpets into Minetest. + +minetest.register_node("carpet:red", { + description = "Red Carpet", + drawtype = "raillike", + tiles = {"carpet_red_out.png", "carpet_red_cor.png", "carpet_red_one.png", "carpet_red_cen.png"}, + inventory_image = "carpet_red_out.png", + wield_image = "carpet_red_out.png", + paramtype = "light", + is_ground_content = true, + walkable = false, + buildable_to = true, + selection_box = { + type = "fixed", + + fixed = {-1/2, -1/2, -1/2, 1/2, -1/2+1/16, 1/2}, + }, + groups = {dig_immediate=2}, +}) + +minetest.register_node("carpet:orange", { + description = "Orange Carpet", + drawtype = "raillike", + tiles = {"carpet_orange_out.png", "carpet_orange_cor.png", "carpet_orange_one.png", "carpet_orange_cen.png"}, + inventory_image = "carpet_orange_out.png", + wield_image = "carpet_orange_out.png", + paramtype = "light", + is_ground_content = true, + walkable = false, + buildable_to = true, + selection_box = { + type = "fixed", + + fixed = {-1/2, -1/2, -1/2, 1/2, -1/2+1/16, 1/2}, + }, + groups = {dig_immediate=2}, +}) + +minetest.register_node("carpet:yellow", { + description = "Yellow Carpet", + drawtype = "raillike", + tiles = {"carpet_yellow_out.png", "carpet_yellow_cor.png", "carpet_yellow_one.png", "carpet_yellow_cen.png"}, + inventory_image = "carpet_yellow_out.png", + wield_image = "carpet_yellow_out.png", + paramtype = "light", + is_ground_content = true, + walkable = false, + buildable_to = true, + selection_box = { + type = "fixed", + + fixed = {-1/2, -1/2, -1/2, 1/2, -1/2+1/16, 1/2}, + }, + groups = {dig_immediate=2}, +}) + +minetest.register_node("carpet:green", { + description = "Green Carpet", + drawtype = "raillike", + tiles = {"carpet_green_out.png", "carpet_green_cor.png", "carpet_green_one.png", "carpet_green_cen.png"}, + inventory_image = "carpet_green_out.png", + wield_image = "carpet_green_out.png", + paramtype = "light", + is_ground_content = true, + walkable = false, + buildable_to = true, + selection_box = { + type = "fixed", + + fixed = {-1/2, -1/2, -1/2, 1/2, -1/2+1/16, 1/2}, + }, + groups = {dig_immediate=2}, +}) + +minetest.register_node("carpet:cyan", { + description = "Cyan Carpet", + drawtype = "raillike", + tiles = {"carpet_cyan_out.png", "carpet_cyan_cor.png", "carpet_cyan_one.png", "carpet_cyan_cen.png"}, + inventory_image = "carpet_cyan_out.png", + wield_image = "carpet_cyan_out.png", + paramtype = "light", + is_ground_content = true, + walkable = false, + buildable_to = true, + selection_box = { + type = "fixed", + + fixed = {-1/2, -1/2, -1/2, 1/2, -1/2+1/16, 1/2}, + }, + groups = {dig_immediate=2}, +}) + +minetest.register_node("carpet:blue", { + description = "Blue Carpet", + drawtype = "raillike", + tiles = {"carpet_blue_out.png", "carpet_blue_cor.png", "carpet_blue_one.png", "carpet_blue_cen.png"}, + inventory_image = "carpet_blue_out.png", + wield_image = "carpet_blue_out.png", + paramtype = "light", + is_ground_content = true, + walkable = false, + buildable_to = true, + selection_box = { + type = "fixed", + + fixed = {-1/2, -1/2, -1/2, 1/2, -1/2+1/16, 1/2}, + }, + groups = {dig_immediate=2}, +}) + +minetest.register_node("carpet:pink", { + description = "Pink Carpet", + drawtype = "raillike", + tiles = {"carpet_pink_out.png", "carpet_pink_cor.png", "carpet_pink_one.png", "carpet_pink_cen.png"}, + inventory_image = "carpet_pink_out.png", + wield_image = "carpet_pink_out.png", + paramtype = "light", + is_ground_content = true, + walkable = false, + buildable_to = true, + selection_box = { + type = "fixed", + + fixed = {-1/2, -1/2, -1/2, 1/2, -1/2+1/16, 1/2}, + }, + groups = {dig_immediate=2}, +}) + +minetest.register_node("carpet:white", { + description = "White Carpet", + drawtype = "raillike", + tiles = {"carpet_white_out.png", "carpet_white_cor.png", "carpet_white_one.png", "carpet_white_cen.png"}, + inventory_image = "carpet_white_out.png", + wield_image = "carpet_white_out.png", + paramtype = "light", + is_ground_content = true, + walkable = false, + buildable_to = true, + selection_box = { + type = "fixed", + + fixed = {-1/2, -1/2, -1/2, 1/2, -1/2+1/16, 1/2}, + }, + groups = {dig_immediate=2}, +}) + +minetest.register_node("carpet:black", { + description = "Black Carpet", + drawtype = "raillike", + tiles = {"carpet_black_out.png", "carpet_black_cor.png", "carpet_black_one.png", "carpet_black_cen.png"}, + inventory_image = "carpet_black_out.png", + wield_image = "carpet_black_out.png", + paramtype = "light", + is_ground_content = true, + walkable = false, + buildable_to = true, + selection_box = { + type = "fixed", + + fixed = {-1/2, -1/2, -1/2, 1/2, -1/2+1/16, 1/2}, + }, + groups = {dig_immediate=2}, +}) + +minetest.register_node("carpet:magenta", { + description = "Magenta Carpet", + drawtype = "raillike", + tiles = {"carpet_magenta_out.png", "carpet_magenta_cor.png", "carpet_magenta_one.png", "carpet_magenta_cen.png"}, + inventory_image = "carpet_magenta_out.png", + wield_image = "carpet_magenta_out.png", + paramtype = "light", + is_ground_content = true, + walkable = false, + buildable_to = true, + selection_box = { + type = "fixed", + + fixed = {-1/2, -1/2, -1/2, 1/2, -1/2+1/16, 1/2}, + }, + groups = {dig_immediate=2}, +}) + +-- Crafing \ No newline at end of file diff --git a/carpet/textures/carpet_orange_cen.png b/carpet/textures/carpet_orange_cen.png new file mode 100644 index 0000000000000000000000000000000000000000..9b908b90ae58a734aa77b0b0b887b258c5a4746d GIT binary patch literal 248 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`jKx9jP7LeL$-D$|I14-?iy0WW zg+Z8+Vb&Z8pdfpRr>`sf9S$j8DFNnvpOt_@vY8S|xv6<2KrRD=b5UwyNotBh zd1gt5g1e`0K#E=}J5W5))5S5w;&k$!*JnP=Z)7^)(zB?1&W@)MA2fx2_1zUnDHO|T z`e8ERDeI!c40om9TLc=Knd`sf9S$j8DHSCy_US+&+02lL66gHf+|;}hAeVu`xhOTUBsE2$ zJhLQ2!QIn0AVn{g9Vnje>EaloaXxv^>oX2Q35f{_6~{aEw7$%JD68Ilp`5Klr={^i z!VS@fvkGje+QOG1Jw`Kovl9@T(39WPq>uh(4YCp pw!xLzF@M8^6dMz{jxTyF3=E1E5}r?fSUm%|#naW#Wt~$(69BM9Ok)55 literal 0 HcmV?d00001 diff --git a/carpet/textures/carpet_orange_one.png b/carpet/textures/carpet_orange_one.png new file mode 100644 index 0000000000000000000000000000000000000000..4dcd8aaee45f2162952ff527f3b2a31675abe389 GIT binary patch literal 259 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`jKx9jP7LeL$-D$|I14-?iy0WW zg+Z8+Vb&Z8pdfpRr>`sf9S$j8DFcfOmtO&eWHUn|N}Tg^b5rw5fLsO!=c3falGGH1 z^30M91$R&1fE2w{cA$8Ur;B5V#p&cdug`p#-^g^}h=XE6qv5?mq2-P*tew_gC|6-_ z*(ZFhXN};ow1dkSX0K)0>(J%>LCPT~BEhsF9?ZY`sf9S$j8Ddu*DO@DwwvY8S|xv6<2KrRD=b5UwyNotBh zd1gt5g1e`0K#E=}J5W5-)5S5w;&k$!*JnP=Z)7@f=)i#kANnSj^g7+2$kR~R!Foc> zC{b92)xa=-Bch{JOK<%q0qF>n&xZ^Q8d|TkG+$?k;re)#g?r;g*9#0mla0L679C+_ XxELuI)$%CjC&*?`S3j3^P6`sf9S$iT9jk!b2e$!*WHUn|N}Tg^b5rw5fLsO!=c3falGGH1 z^30M91$R&1fE2w{c923(7sn8b)5&)Z9QZK5k?Ft@2So|fgewh!%xv9^4B~qk&+oC> Q-UBkh)78&qol`;+0A$`T-2eap literal 0 HcmV?d00001 diff --git a/carpet/textures/carpet_red_cor.png b/carpet/textures/carpet_red_cor.png new file mode 100644 index 0000000000000000000000000000000000000000..cdfae338366430a2d49bd9b64d51321e36d5f312 GIT binary patch literal 211 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61SBU+%rFB|jKx9jP7LeL$-D$|I14-?iy0WW zg+Z8+Vb&Z8pdfpRr>`sf9S$iTUAfZ3B5FV(+02lL66gHf+|;}hAeVu`xhOTUBsE2$ zJhLQ2!QIn0AVn{g9Vl+&>EaloaX$IZ0SBps#(*&Pg@2O2vE1+}xO)7JWJjWLUP8hK xD-KarHiLzhof^DHr28MSUz%g`s(s-zc82aoxtf!auVX+Kc)I$ztaD0e0st})JJSFF literal 0 HcmV?d00001 diff --git a/carpet/textures/carpet_red_one.png b/carpet/textures/carpet_red_one.png new file mode 100644 index 0000000000000000000000000000000000000000..9362bce2e62bd78f4d0cb6613704841db49222b6 GIT binary patch literal 198 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`jKx9jP7LeL$-D$|I14-?iy0WW zg+Z8+Vb&Z8pdfpRr>`sf9S$iT9c7aZnPosB+02lL66gHf+|;}hAeVu`xhOTUBsE2$ zJhLQ2!QIn0AVn{g9Vo8v>Eak-aXR_Vfde1zzfxd6Y*@{(Z jEv`s3;c+{h(9+JxprtN!>Ul#B56DbUS3j3^P6`sf9S$iT9l<~87TS|xv6<2KrRD=b5UwyNotBh zd1gt5g1e`0K#E=}J5XHT)5S5w;&k$z0|!3bf2F{D*sz*y6N7M1V(A1X<`Y|G^B8t+ jTU?Q7!sB*0p{1RXK}%ie)boZM9*~)yu6{1-oD!M