From 1d45b27c1257ced84eccc7908bb3347cc22f42c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20Mart=C3=ADnez?= Date: Tue, 7 Mar 2017 00:03:30 -0300 Subject: [PATCH] Add desert/silver sandstone-related blocks. (#1596) Add desert and silver sand-related blocks, and stairs. --- mods/default/README.txt | 10 +++ mods/default/crafting.lua | 82 ++++++++++++++++-- mods/default/license.txt | 2 + mods/default/nodes.lua | 56 +++++++++++- .../textures/default_desert_sandstone.png | Bin 0 -> 275 bytes .../default_desert_sandstone_block.png | Bin 0 -> 587 bytes .../default_desert_sandstone_brick.png | Bin 0 -> 630 bytes .../textures/default_silver_sandstone.png | Bin 0 -> 461 bytes .../default_silver_sandstone_block.png | Bin 0 -> 520 bytes .../default_silver_sandstone_brick.png | Bin 0 -> 612 bytes mods/stairs/init.lua | 60 +++++++++++++ 11 files changed, 200 insertions(+), 10 deletions(-) create mode 100644 mods/default/textures/default_desert_sandstone.png create mode 100644 mods/default/textures/default_desert_sandstone_block.png create mode 100644 mods/default/textures/default_desert_sandstone_brick.png create mode 100644 mods/default/textures/default_silver_sandstone.png create mode 100644 mods/default/textures/default_silver_sandstone_block.png create mode 100644 mods/default/textures/default_silver_sandstone_brick.png diff --git a/mods/default/README.txt b/mods/default/README.txt index 342a8c4f..1ca66e4e 100644 --- a/mods/default/README.txt +++ b/mods/default/README.txt @@ -202,6 +202,16 @@ npx (CC BY-SA 3.0) default_rainforest_litter.png default_rainforest_litter_side.png +GreenXenith (CC-BY-SA 3.0): + default_silver_sandstone.png + default_silver_sandstone_brick.png + default_silver_sandstone_block.png + +kaeza (CC-BY-SA 3.0): + default_desert_sandstone.png + default_desert_sandstone_brick.png + default_desert_sandstone_block.png + Glass breaking sounds (CC BY 3.0): 1: http://www.freesound.org/people/cmusounddesign/sounds/71947/ 2: http://www.freesound.org/people/Tomlija/sounds/97669/ diff --git a/mods/default/crafting.lua b/mods/default/crafting.lua index ce27bb42..b360ddcf 100644 --- a/mods/default/crafting.lua +++ b/mods/default/crafting.lua @@ -503,26 +503,90 @@ minetest.register_craft({ }) minetest.register_craft({ - output = 'default:sand 4', + output = "default:sand 4", recipe = { - {'default:sandstone'}, + {"default:sandstone"}, } }) minetest.register_craft({ - output = 'default:sandstonebrick 4', + output = "default:sandstonebrick 4", recipe = { - {'default:sandstone', 'default:sandstone'}, - {'default:sandstone', 'default:sandstone'}, + {"default:sandstone", "default:sandstone"}, + {"default:sandstone", "default:sandstone"}, } }) minetest.register_craft({ - output = 'default:sandstone_block 9', + output = "default:sandstone_block 9", recipe = { - {'default:sandstone', 'default:sandstone', 'default:sandstone'}, - {'default:sandstone', 'default:sandstone', 'default:sandstone'}, - {'default:sandstone', 'default:sandstone', 'default:sandstone'}, + {"default:sandstone", "default:sandstone", "default:sandstone"}, + {"default:sandstone", "default:sandstone", "default:sandstone"}, + {"default:sandstone", "default:sandstone", "default:sandstone"}, + } +}) + +minetest.register_craft({ + output = "default:desert_sandstone", + recipe = { + {"default:desert_sand", "default:desert_sand"}, + {"default:desert_sand", "default:desert_sand"}, + } +}) + +minetest.register_craft({ + output = "default:desert_sand 4", + recipe = { + {"default:desert_sandstone"}, + } +}) + +minetest.register_craft({ + output = "default:desert_sandstone_brick 4", + recipe = { + {"default:desert_sandstone", "default:desert_sandstone"}, + {"default:desert_sandstone", "default:desert_sandstone"}, + } +}) + +minetest.register_craft({ + output = "default:desert_sandstone_block 9", + recipe = { + {"default:desert_sandstone", "default:desert_sandstone", "default:desert_sandstone"}, + {"default:desert_sandstone", "default:desert_sandstone", "default:desert_sandstone"}, + {"default:desert_sandstone", "default:desert_sandstone", "default:desert_sandstone"}, + } +}) + +minetest.register_craft({ + output = "default:silver_sandstone", + recipe = { + {"default:silver_sand", "default:silver_sand"}, + {"default:silver_sand", "default:silver_sand"}, + } +}) + +minetest.register_craft({ + output = "default:silver_sand 4", + recipe = { + {"default:silver_sandstone"}, + } +}) + +minetest.register_craft({ + output = "default:silver_sandstone_brick 4", + recipe = { + {"default:silver_sandstone", "default:silver_sandstone"}, + {"default:silver_sandstone", "default:silver_sandstone"}, + } +}) + +minetest.register_craft({ + output = "default:silver_sandstone_block 9", + recipe = { + {"default:silver_sandstone", "default:silver_sandstone", "default:silver_sandstone"}, + {"default:silver_sandstone", "default:silver_sandstone", "default:silver_sandstone"}, + {"default:silver_sandstone", "default:silver_sandstone", "default:silver_sandstone"}, } }) diff --git a/mods/default/license.txt b/mods/default/license.txt index e9267366..09e4225f 100644 --- a/mods/default/license.txt +++ b/mods/default/license.txt @@ -41,6 +41,8 @@ Copyright (C) 2010-2016: asl97 KevDoy Mito551 + GreenXenith + kaeza You are free to: Share — copy and redistribute the material in any medium or format. diff --git a/mods/default/nodes.lua b/mods/default/nodes.lua index 82a97c65..34136cb3 100644 --- a/mods/default/nodes.lua +++ b/mods/default/nodes.lua @@ -30,6 +30,12 @@ default:desert_stone_block default:sandstone default:sandstonebrick default:sandstone_block +default:desert_sandstone +default:desert_sandstone_brick +default:desert_sandstone_block +default:silver_sandstone +default:silver_sandstone_brick +default:silver_sandstone_block default:obsidian default:obsidianbrick @@ -275,7 +281,6 @@ minetest.register_node("default:desert_stone_block", { sounds = default.node_sound_stone_defaults(), }) - minetest.register_node("default:sandstone", { description = "Sandstone", tiles = {"default_sandstone.png"}, @@ -301,6 +306,55 @@ minetest.register_node("default:sandstone_block", { sounds = default.node_sound_stone_defaults(), }) +minetest.register_node("default:desert_sandstone", { + description = "Desert Sandstone", + tiles = {"default_desert_sandstone.png"}, + groups = {crumbly = 1, cracky = 3}, + sounds = default.node_sound_stone_defaults(), +}) + +minetest.register_node("default:desert_sandstone_brick", { + description = "Desert Sandstone Brick", + paramtype2 = "facedir", + place_param2 = 0, + tiles = {"default_desert_sandstone_brick.png"}, + is_ground_content = false, + groups = {cracky = 2}, + sounds = default.node_sound_stone_defaults(), +}) + +minetest.register_node("default:desert_sandstone_block", { + description = "Desert Sandstone Block", + tiles = {"default_desert_sandstone_block.png"}, + is_ground_content = false, + groups = {cracky = 2}, + sounds = default.node_sound_stone_defaults(), +}) + +minetest.register_node("default:silver_sandstone", { + description = "Silver Sandstone", + tiles = {"default_silver_sandstone.png"}, + groups = {crumbly = 1, cracky = 3}, + sounds = default.node_sound_stone_defaults(), +}) + +minetest.register_node("default:silver_sandstone_brick", { + description = "Silver Sandstone Brick", + paramtype2 = "facedir", + place_param2 = 0, + tiles = {"default_silver_sandstone_brick.png"}, + is_ground_content = false, + groups = {cracky = 2}, + sounds = default.node_sound_stone_defaults(), +}) + +minetest.register_node("default:silver_sandstone_block", { + description = "Silver Sandstone Block", + tiles = {"default_silver_sandstone_block.png"}, + is_ground_content = false, + groups = {cracky = 2}, + sounds = default.node_sound_stone_defaults(), +}) minetest.register_node("default:obsidian", { description = "Obsidian", diff --git a/mods/default/textures/default_desert_sandstone.png b/mods/default/textures/default_desert_sandstone.png new file mode 100644 index 0000000000000000000000000000000000000000..52e445fa1b0c2f4ad19ab643587d3abd37273f76 GIT binary patch literal 275 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!63?wyl`GbL!N`Oy@>$digUA^IZCPwU;8h2<~ z^r0ECM`y>KoSSfbUhL_4@uwCfo?V#W|MB`opn9H?AirRS{|LZ&BtQ))KFQO?F+^gj zY=5Abiz0^;>qnWVZ|nCv2g|R#+mMyM|68{PYJOuJ@iByxrF-{(Pq#!X($3X?*93J>!o)n}qPZ;+=0_KQ}w-`0ShD zjR~$_Sf^iE%(7yN?0!+@g$ITAmKX;*Fope5{x_-h&nNNxmXCK_ Px{krq)z4*}Q$iB}e|B}q literal 0 HcmV?d00001 diff --git a/mods/default/textures/default_desert_sandstone_block.png b/mods/default/textures/default_desert_sandstone_block.png new file mode 100644 index 0000000000000000000000000000000000000000..8fc54e75bc0a0eab48724341a18f42a53829c327 GIT binary patch literal 587 zcmV-R0<`^!P)i_Vr7>zrCP4=%i$R zRQ7}9-*;aNLa|tDC8{{5=X;eg4P*P*9rucxqxvgn@>QGWMFS&to6_`$;M8)n* zV{XSSG1At8ybAhjR{KuV^AY1&Jw*g+F~WIEdI4t^U|r9??hh#Av&1RpnF z03$MJgB`Y8m<|K;#i7r4$K~}6B@{knVipu1n2whFT6kJKi9+&)-gbBwvAyQD1b$u? ZegUJ`SZq;McX|K-002ovPDHLkV1kz<5KjOA literal 0 HcmV?d00001 diff --git a/mods/default/textures/default_desert_sandstone_brick.png b/mods/default/textures/default_desert_sandstone_brick.png new file mode 100644 index 0000000000000000000000000000000000000000..ab58db52350591442c6a84101fa9fd57c84a694a GIT binary patch literal 630 zcmV-+0*U>JP)evs_wbs z^FM!=<@*b|fksN^wJ`RQU(apJkOJe_kxF8-f-jHH=yW@=ouBAi$!RMLeZdC33+Kzm zbnMZ{07MUVxgr6)3tX;_Y~3!hHljq?KeDT58Wh21l++lb$anXw$!cnEG{ev!wcvbO zaWKES6BZ+K_tky_A= z3l9$uxLa*7pDoj!sdYEU$3GkN`S}s=0@Ja_+K5krX;7pXIlWwQAK&B7-?(grX;3^r zC5WE3YpMs{1=_Bu?ivlzGcO4xHDfOkrR*6wpH_yxkYmBSfH4{kU>A=x-Hz(#aW-IG ztXQ?8RfS+PclQV8C1F>Oo{l|s^+4jXDO%wxvMr*!iqnTgjuCTz*m1T>VwYGaFo(8c z%9)5H*o@SIcmt$lI`+&RGCk{~%1g04@Lk0hLKa zK~y-)U6M(X+#nD|ABh;MDt!O5dDAy=bX2HY0zpDAWU%C13jO?3nvaj)ecQfhtzoUD z)`GPQ|Bq?~4AxozYCZV;{KK+sU+nugIq#&Dh%ut77obj1DTNp#Av{QFI~SbWD#vl$ zK*kunkEredwAOIWQA$BoQB`u@ky9FY?{UtNQlhmsWg25x7LSOas)z_V=Sd=9*!S<7 zUu*5O;eDj{(}uN{QVPyFa^BB{XKdq0_niV(uAF@y)s1*G?mF@~HoB66$AIfu1&S{#Q|Yn_$KIGn*` zt(`K5y3x#4$;e6uXfTcBbIxhZdi_FbJy2CrO7q5h z@AIe8z}1HL@voiCvTYmd`kr^cuJ4(0tp|_C>vl||%A9xB_011{FH6fPzLB{A0000< KMNUMnLSTZVKITdQ literal 0 HcmV?d00001 diff --git a/mods/default/textures/default_silver_sandstone_brick.png b/mods/default/textures/default_silver_sandstone_brick.png new file mode 100644 index 0000000000000000000000000000000000000000..711d963539f122cd99f65e4a28f3131a0ea3f45a GIT binary patch literal 612 zcmV-q0-ODbP)pF(v^r^6H zMLB1>uG<>CzrP~Rd7zR~x++ptoNKl>RmFQx&iT^Rp{huXiD^31G!5Q+LI|iT0P~zM z#^79oh)_yFM2In>TDZOaf~YD@(_ZmfYbm7w&@>&jE*REYa?W_~5n29-_l~|lQfoz3 zH{SKkbGpJZCg@Glu~fcQEO$M6SdaOkuhd-6yrqBd6|iwIH4MX%d7dwPEyfsjyEpFdzcY?KAq2el48sW#*^oqJnQn{` z5!u#MO2PX@Erf6tq*X{nkTp2#u&lLs?*XW_Ty17uF zw@#<3oAp&W=X^