commit 2c7962d09dd7c075b018217836e0c9d5b7d506f3 Author: Jordan Snelling Date: Sun Aug 26 14:34:56 2012 +0100 First commit; done the node defs, just need to finish crafting and textures 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 0000000..9b908b9 Binary files /dev/null and b/carpet/textures/carpet_orange_cen.png differ diff --git a/carpet/textures/carpet_orange_cor.png b/carpet/textures/carpet_orange_cor.png new file mode 100644 index 0000000..7a36988 Binary files /dev/null and b/carpet/textures/carpet_orange_cor.png differ diff --git a/carpet/textures/carpet_orange_one.png b/carpet/textures/carpet_orange_one.png new file mode 100644 index 0000000..4dcd8aa Binary files /dev/null and b/carpet/textures/carpet_orange_one.png differ diff --git a/carpet/textures/carpet_orange_out.png b/carpet/textures/carpet_orange_out.png new file mode 100644 index 0000000..4f9bbef Binary files /dev/null and b/carpet/textures/carpet_orange_out.png differ diff --git a/carpet/textures/carpet_red_cen.png b/carpet/textures/carpet_red_cen.png new file mode 100644 index 0000000..9425ab0 Binary files /dev/null and b/carpet/textures/carpet_red_cen.png differ diff --git a/carpet/textures/carpet_red_cor.png b/carpet/textures/carpet_red_cor.png new file mode 100644 index 0000000..cdfae33 Binary files /dev/null and b/carpet/textures/carpet_red_cor.png differ diff --git a/carpet/textures/carpet_red_one.png b/carpet/textures/carpet_red_one.png new file mode 100644 index 0000000..9362bce Binary files /dev/null and b/carpet/textures/carpet_red_one.png differ diff --git a/carpet/textures/carpet_red_out.png b/carpet/textures/carpet_red_out.png new file mode 100644 index 0000000..106c1e8 Binary files /dev/null and b/carpet/textures/carpet_red_out.png differ