From a4eba91c1e453abb5e9cba2209ddbdbe21e3f450 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Sat, 1 Apr 2017 06:44:02 +0200 Subject: [PATCH] Add snowy variants of 3 dirt blocks --- mods/ITEMS/mcl_core/nodes.lua | 47 +++++++++++++++++- .../textures/mcl_core_grass_side_snowed.png | Bin 0 -> 1159 bytes mods/MAPGEN/mcl_mapgen_core/init.lua | 2 +- 3 files changed, 47 insertions(+), 2 deletions(-) create mode 100644 mods/ITEMS/mcl_core/textures/mcl_core_grass_side_snowed.png diff --git a/mods/ITEMS/mcl_core/nodes.lua b/mods/ITEMS/mcl_core/nodes.lua index 69fe14b9c..6c37f72fd 100644 --- a/mods/ITEMS/mcl_core/nodes.lua +++ b/mods/ITEMS/mcl_core/nodes.lua @@ -363,7 +363,7 @@ minetest.register_node("mcl_core:dirt_with_grass", { description = "Grass Block", _doc_items_longdesc = "A grass block is dirt with a grass cover. Grass blocks are resourceful blocks which allow the growth of all sorts of plants. They can be turned into farmland with a hoe and turned into grass paths with a shovel.", _doc_items_hidden = false, - tiles = {"default_grass.png", "default_dirt.png", "default_dirt.png^default_grass_side.png"}, + tiles = {"default_grass.png", "default_dirt.png", "default_grass_side.png"}, is_ground_content = true, stack_max = 64, groups = {handy=1,shovely=1, soil=1, soil_sapling=2, soil_sugarcane=1, cultivatable=2, building_block=1}, @@ -375,6 +375,20 @@ minetest.register_node("mcl_core:dirt_with_grass", { _mcl_hardness = 0.6, }) + +minetest.register_node("mcl_core:dirt_with_grass_snow", { + description = "Snowy Grass Block", + _doc_items_create_entry = false, + tiles = {"default_snow.png", "default_dirt.png", "mcl_core_grass_side_snowed.png"}, + is_ground_content = true, + stack_max = 64, + groups = {handy=1,shovely=1, soil=1, soil_sapling=2, soil_sugarcane=1, cultivatable=2, building_block=1, not_in_creative_inventory=1}, + drop = 'mcl_core:dirt', + sounds = mcl_sounds.node_sound_snow_defaults(), + _mcl_blast_resistance = 3, + _mcl_hardness = 0.6, +}) + minetest.register_node("mcl_core:grass_path", { tiles = {"mcl_core_grass_path_top.png", "mcl_core_grass_path_side.png"}, description = "Grass Path", @@ -414,6 +428,20 @@ minetest.register_node("mcl_core:mycelium", { _mcl_hardness = 0.6, }) +minetest.register_node("mcl_core:mycelium_snow", { + description = "Snowy Mycelium", + _doc_items_create_entry = false, + -- CHECKME: Are the sides of snowy mycelium supposed to look like this? + tiles = {"default_snow.png", "default_dirt.png", "mcl_core_grass_side_snowed.png"}, + is_ground_content = true, + stack_max = 64, + groups = {handy=1,shovely=1, building_block=1, not_in_creative_inventory=1}, + drop = 'mcl_core:dirt', + sounds = mcl_sounds.node_sound_snow_defaults(), + _mcl_blast_resistance = 2.5, + _mcl_hardness = 0.6, +}) + minetest.register_node("mcl_core:podzol", { description = "Podzol", _doc_items_longdesc = "Podzol is a type of dirt found in taiga forests. Only a few plants are able to survive on it.", @@ -427,6 +455,20 @@ minetest.register_node("mcl_core:podzol", { _mcl_hardness = 0.6, }) +minetest.register_node("mcl_core:podzol_snow", { + description = "Snowy Podzol", + _doc_items_create_entry = false, + tiles = {"default_snow.png", "default_dirt.png", "mcl_core_grass_side_snowed.png"}, + is_ground_content = true, + stack_max = 64, + groups = {handy=1,shovely=3, soil=1, soil_sapling=2, soil_sugarcane=1, building_block=1, not_in_creative_inventory=1}, + drop = 'mcl_core:dirt', + sounds = mcl_sounds.node_sound_dirt_defaults(), + _mcl_blast_resistance = 2.5, + _mcl_hardness = 0.6, +}) + + minetest.register_node("mcl_core:dirt", { description = "Dirt", _doc_items_longdesc = "Dirt acts as a soil for a few plants. When in light, it will turn into a grass block eventually.", @@ -1935,4 +1977,7 @@ if minetest.get_modpath("doc") then doc.add_entry_alias("nodes", "mcl_core:stone_with_redstone", "nodes", "mcl_core:stone_with_redstone_lit") doc.add_entry_alias("nodes", "mcl_core:water_source", "nodes", "mcl_core:water_flowing") doc.add_entry_alias("nodes", "mcl_core:lava_source", "nodes", "mcl_core:lava_flowing") + doc.add_entry_alias("nodes", "mcl_core:dirt_with_grass", "nodes", "mcl_core:dirt_with_grass_snow") + doc.add_entry_alias("nodes", "mcl_core:podzol", "nodes", "mcl_core:podzol_snow") + doc.add_entry_alias("nodes", "mcl_core:mycelium", "nodes", "mcl_core:mycelium_snow") end diff --git a/mods/ITEMS/mcl_core/textures/mcl_core_grass_side_snowed.png b/mods/ITEMS/mcl_core/textures/mcl_core_grass_side_snowed.png new file mode 100644 index 0000000000000000000000000000000000000000..b853ce799ab9b533dbccfedfe73ff0e21cb13f65 GIT binary patch literal 1159 zcmeAS@N?(olHy`uVBq!ia0y~yU{C;I4rT@h2A3sW#~2tGSkfJR9T^xl_H+M9WCckk zdj$D1FjT2AFf_C1 zhG@G2KeHueftfLZ{b_F5-o`U>y%W7G(-Wezyo}S`4d)m6%DC zTvf8ZE__*e(A=WH?uLrqbdN=KNt22rYmkD0|R@Br>`sfLl#Chd2Xh! z9Bm8?Op85T978Nl=T54x7dGcPR$9Ju$(Fo~i=x6pH)VJE-8*$~Msb|`u8+ymCDs4+ zGx`s+|5KWOWMfX`FR!YOj#-bV&svt-xi2}n{Em67_wmK+%Zj&1HwAw8-EMKOcJs%> zPPMyZgs%R5#d2Dx|5ny__x3!`{$H0j_q}2+zh{2;m-m!y^*z?F^ukIi3qPe?{a$-} zL$q$V^X-y^m*>}oy-wY}qsHss&9u)od#$pkN5A(gcRGD^QNGyj2W?-KHcfc`TEYHJ z*|iPTW8WMq(51UbMuT3{;wxroFN+@v+UyEJv&oH{Wf?WnRzs0_Y@r# zx%fWe&sX2JeY}|$e|JL0r-OTrJn%hso#T|=|!-UdGgotgkwl?2yM7OnjY!i*o}uU6+1oDlrLL8n9Q zyP#j1mG7E@E6z_(+W7S~ecZxYV6Zv!knj_}73t@0#(eRqdiU^zqiL_E#_P%lMlzGV zdbvD4`W1&Af4z5se=BC*d-GmN*uBwTrtOTg+3jU3ALRZKR+;$y%}MLW)#vU# zuT0xoetmlyyR&JVVDFkIhR#>ARk=2F$K*G;`xGSlKIX7hX>qykFm-eC9nB9L7$fEx zX=ZF{R^$0QbF)^)&8z3qpO|iu+UxrD*T2K;!Ih_7gE@A-N^Gk&nAB50<=;pBtt&$L zGj)vr|Lqs+4(0zEa=Pc{a+Zm;P2PI1R$ELEt7=I3SRdP{kVo554k%6JPu7QcJfnkV&nU%4jm7$@wfsvJgf#1eA`%yIH=BH$) XRpQoQ|0V=fz%Y2a`njxgN@xNACZP9Z literal 0 HcmV?d00001 diff --git a/mods/MAPGEN/mcl_mapgen_core/init.lua b/mods/MAPGEN/mcl_mapgen_core/init.lua index 1c4ddd30e..27a742ee6 100644 --- a/mods/MAPGEN/mcl_mapgen_core/init.lua +++ b/mods/MAPGEN/mcl_mapgen_core/init.lua @@ -17,7 +17,7 @@ minetest.register_alias("mapgen_apple", "mcl_core:leaves") minetest.register_alias("mapgen_water_source", "mcl_core:water_source") minetest.register_alias("mapgen_dirt", "mcl_core:dirt") minetest.register_alias("mapgen_dirt_with_grass", "mcl_core:dirt_with_grass") -minetest.register_alias("mapgen_dirt_with_snow", "mcl_core:dirt_with_snow") +minetest.register_alias("mapgen_dirt_with_snow", "mcl_core:dirt_with_grass_snow") minetest.register_alias("mapgen_sand", "mcl_core:sand") minetest.register_alias("mapgen_gravel", "mcl_core:gravel") minetest.register_alias("mapgen_clay", "mcl_core:clay")