From 0fbd3df49791223ad79bd92a82c73dd479076c36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mikita=20Wi=C5=9Bniewski?= Date: Tue, 30 Apr 2024 11:07:25 +0700 Subject: [PATCH] Make sand and dirt world-aligned --- mods/ITEMS/mcl_core/nodes_base.lua | 6 +++--- mods/ITEMS/mcl_ocean/kelp.lua | 10 +++++++++- textures/default_sand_world.png | Bin 0 -> 885 bytes textures/mcl_core_red_sand_world.png | Bin 0 -> 698 bytes 4 files changed, 12 insertions(+), 4 deletions(-) create mode 100644 textures/default_sand_world.png create mode 100644 textures/mcl_core_red_sand_world.png diff --git a/mods/ITEMS/mcl_core/nodes_base.lua b/mods/ITEMS/mcl_core/nodes_base.lua index 16aac5964..76755eb70 100644 --- a/mods/ITEMS/mcl_core/nodes_base.lua +++ b/mods/ITEMS/mcl_core/nodes_base.lua @@ -517,7 +517,7 @@ minetest.register_node("mcl_core:dirt", { description = S("Dirt"), _doc_items_longdesc = S("Dirt acts as a soil for a few plants. When in light, this block may grow a grass or mycelium cover if such blocks are nearby."), _doc_items_hidden = false, - tiles = {"default_dirt.png"}, + tiles = {get_texture("default_dirt")}, is_ground_content = true, stack_max = 64, groups = {handy=1,shovely=1, dirt=1,soil=1, soil_sapling=2, soil_sugarcane=1, cultivatable=2, enderman_takable=1, building_block=1, path_creation_possible=1}, @@ -580,7 +580,7 @@ minetest.register_node("mcl_core:sand", { description = S("Sand"), _doc_items_longdesc = S("Sand is found in large quantities at beaches and deserts."), _doc_items_hidden = false, - tiles = {"default_sand.png"}, + tiles = {get_texture("default_sand")}, is_ground_content = true, stack_max = 64, groups = {handy=1,shovely=1, falling_node=1, sand=1, soil_sugarcane=1, enderman_takable=1, building_block=1, material_sand=1}, @@ -644,7 +644,7 @@ minetest.register_node("mcl_core:sandstonesmooth2", { minetest.register_node("mcl_core:redsand", { description = S("Red Sand"), _doc_items_longdesc = S("Red sand is found in large quantities in mesa biomes."), - tiles = {"mcl_core_red_sand.png"}, + tiles = {get_texture("mcl_core_red_sand")}, is_ground_content = true, stack_max = 64, groups = {handy=1,shovely=1, falling_node=1, sand=1, soil_sugarcane=1, enderman_takable=1, building_block=1, material_sand=1}, diff --git a/mods/ITEMS/mcl_ocean/kelp.lua b/mods/ITEMS/mcl_ocean/kelp.lua index 530d96093..79d03d380 100644 --- a/mods/ITEMS/mcl_ocean/kelp.lua +++ b/mods/ITEMS/mcl_ocean/kelp.lua @@ -603,7 +603,15 @@ function kelp.register_kelp_surface(surface, surface_deftemplate, surface_docs) sounds.place = kelp.leaf_sounds.place surface_deftemplate.tiles = surface_deftemplate.tiles or def_tiles - surface_deftemplate.inventory_image = surface_deftemplate.inventory_image or "("..def_tiles[1]..")^mcl_ocean_kelp_item.png" + + local texturename + if type(def_tiles[1]) == "string" then + texturename = def_tiles[1] + else + texturename = def_tiles[1].name + end + + surface_deftemplate.inventory_image = surface_deftemplate.inventory_image or "("..texturename..")^mcl_ocean_kelp_item.png" surface_deftemplate.sounds = surface_deftemplate.sound or sounds local falling_node = mt_get_item_group(nodename, "falling_node") surface_deftemplate.node_dig_prediction = surface_deftemplate.node_dig_prediction or nodename diff --git a/textures/default_sand_world.png b/textures/default_sand_world.png new file mode 100644 index 0000000000000000000000000000000000000000..71944e55a66b0c52ad37758b53612b1956756bb4 GIT binary patch literal 885 zcmV-*1B(2KP)D#xFG(V%?Pr#0KJgy71t;=hpM&86zWV(!_l@6Vm@=fVSoh&xv^2QXCVX$0M*h}nu45W0C(U&2j8sD{}&i-fpT&oD3- zP-ZsbUJ%`S2P>7lAfCP zYX#Wb7Bkggf9vvW&hfTO?lsn6tx;NS?P<6!-c9LmdUuHxqJge;KS*Qy{`UCzW$n}7 z^xn0tQjO`M-4)rUwI`qE?I)jh&hZ`hs&)w#YGn-C%6%im)~6X<()(W5E)lX?H=X;k zOzY6s%x-}i{R9W5Ic6+5t ze^c%#s}d~Q;vpJ~8|(fZjU8`F|BkkFe{>6nn`5R-Yki*2Y1TB|G1o3(=n8lDy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