mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-12-22 16:09:33 +01:00
Use dry grass blocks in the Nether
This commit is contained in:
parent
f3919cace9
commit
a1e53fa129
1 changed files with 11 additions and 2 deletions
|
@ -309,8 +309,17 @@ minetest.register_node("mcl_core:dirt_with_grass", {
|
||||||
footstep = {name="default_grass_footstep", gain=0.4},
|
footstep = {name="default_grass_footstep", gain=0.4},
|
||||||
}),
|
}),
|
||||||
on_construct = function(pos)
|
on_construct = function(pos)
|
||||||
local found_node = minetest.find_node_near(pos, 1, {"mcl_core:dirt_with_dry_grass", "mcl_core:dirt_with_dry_grass_snow"})
|
local _, dim = mcl_util.y_to_layer(pos.y)
|
||||||
if found_node then
|
local dry
|
||||||
|
if dim == "nether" then
|
||||||
|
dry = true
|
||||||
|
else
|
||||||
|
local found_node = minetest.find_node_near(pos, 1, {"mcl_core:dirt_with_dry_grass", "mcl_core:dirt_with_dry_grass_snow"})
|
||||||
|
if found_node then
|
||||||
|
dry = true
|
||||||
|
end
|
||||||
|
end
|
||||||
|
if dry then
|
||||||
minetest.set_node(pos, {name="mcl_core:dirt_with_dry_grass"})
|
minetest.set_node(pos, {name="mcl_core:dirt_with_dry_grass"})
|
||||||
end
|
end
|
||||||
return mcl_core.on_snowable_construct(pos)
|
return mcl_core.on_snowable_construct(pos)
|
||||||
|
|
Loading…
Reference in a new issue