Make sand and dirt world-aligned

This commit is contained in:
Mikita Wiśniewski 2024-04-30 11:07:25 +07:00
parent 1b7a969361
commit 0fbd3df497
4 changed files with 12 additions and 4 deletions

View file

@ -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},

View file

@ -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

Binary file not shown.

After

Width:  |  Height:  |  Size: 885 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 698 B