Add dry grass
This commit is contained in:
parent
cfdcbeb007
commit
57e6481865
@ -112,6 +112,19 @@ minetest.register_node("default:grass", {
|
||||
stack_max = 40
|
||||
})
|
||||
|
||||
minetest.register_node("default:dry_grass", {
|
||||
description = "Dry Grass",
|
||||
tiles = {"default_dry_grass.png",
|
||||
"default_dirt.png",
|
||||
{name = "default_dirt.png^default_dry_grass_side.png",
|
||||
tileable_vertical = false}},
|
||||
groups = {crumbly = default.dig.dirt, soil = 1},
|
||||
drop = "default:dry_dirt",
|
||||
sounds = default.node_sound_dirt_defaults({
|
||||
footstep = {name = "default_grass_footstep", gain = 0.4},
|
||||
})
|
||||
})
|
||||
|
||||
minetest.register_node("default:dirt_with_snow", {
|
||||
description = "Dirt with Snow",
|
||||
tiles = {"default_snow.png", "default_dry_dirt.png", "default_dry_dirt.png^default_snow_side.png"},
|
||||
|
BIN
mods/default/textures/default_dry_grass.png
Normal file
BIN
mods/default/textures/default_dry_grass.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 417 B |
BIN
mods/default/textures/default_dry_grass_side.png
Normal file
BIN
mods/default/textures/default_dry_grass_side.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 541 B |
Binary file not shown.
Before Width: | Height: | Size: 810 B After Width: | Height: | Size: 537 B |
@ -144,14 +144,16 @@ minetest.register_abm({
|
||||
return
|
||||
end
|
||||
if not minetest.find_node_near(pos, 6, {"group:water", "default:junglegrass"}) then
|
||||
minetest.set_node(pos, {name = "default:dry_dirt"})
|
||||
--minetest.set_node(pos, {name = "default:dry_dirt"})
|
||||
minetest.set_node(pos, {name = "default:dry_grass"})
|
||||
else
|
||||
pos.y = pos.y + 1
|
||||
local nn = minetest.get_node(pos).name
|
||||
pos.y = pos.y - 1
|
||||
if minetest.registered_nodes[nn] and minetest.registered_nodes[nn].walkable
|
||||
and not minetest.registered_nodes[nn].sunlight_propagates then
|
||||
minetest.set_node(pos, {name="default:dry_dirt"})
|
||||
--minetest.set_node(pos, {name = "default:dry_dirt"})
|
||||
minetest.set_node(pos, {name = "default:dry_grass"})
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user