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 69fe14b9c4..6c37f72fd4 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!ia0vp^3LwnE3?yBabR7dyEa{HEjtmSN`?>!lvVtU&J%W50 z7^>757#dm_7=8hT8eT9klo~KFyh>nTu$sZZAYL$MSD+10;$eVKi0l9V|KI)p|M>Ig zy=Ts3co-f!b7t4clSwXmWx+NSzbnsG4}ZhA(f$4 z)3Uv?y^L!kY~~mFSBKl=r^WZ@1e69@^rpH_%kk<=bZ$>@sxQiznBkt_q}vc}SKw#1 zq%1HqCa^!vE!*38My_|Fmt}fFbe5NKy1U{0BEQ@q`-L^J-8sRTe%A8}{hF&v*4KqE zD-W7m6xiKR(VOnEs4i(zab#_hZ?2C?s+&Q1PI7LbZELbuQLJBWtXoNtMOKhwZG>$_ znC+xYj}?`{OG*Rp7`6QedX_QC+uensgH_f8$YC$>^mS!_$im1b&&~9eqm6-qX|bn^ zV~EA++)4HI!sa~3O3QaH*^-xWQB+vyrtB`id#4W0D2{XA^)Xqxr24;pM*m^roivM+b!r8ru^e1a^Zl3YM|MldHGi2jqmRPy=_k?lBF+FD4&ONT( zXP)V3%UE|OK3(D_QXD%XbYnEWPppMpf+#~ijQEiTs`rfyEYqxoS2W5hfo&5TXWYCL~u zZq~}UdG%cS6VokHdtJZ&`gfQ;xbn1XFvreUiEXt8lX~i>{QIcCbwwzDrjGIdzx`s} zq5NM%PWRkg&N8vK$y@K$YKsYCRShXWi`f?5Ui9Be?aC*~;+lec8;|cOWVTJ1GK2Ab z=>Naxf6Cmnm3U(kc9T8DI%MgMyLZKHHSWvja#a12|NkKK$c-=!P~KH7ag8WRNi0dV zN-jzTQVd20hUU5kCb|ZOAqHkv#)ejghS~;3Rt5%s8{h0l(U6;;l9^VCTZ8?Z5KsZb N;OXk;vd$@?2>>Rb_hbM7 literal 0 HcmV?d00001 diff --git a/mods/MAPGEN/mcl_mapgen_core/init.lua b/mods/MAPGEN/mcl_mapgen_core/init.lua index 1c4ddd30ea..27a742ee60 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")