mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2025-01-12 11:00:25 +01:00
Use default:dirt_with_dry_grass
This commit is contained in:
parent
27f780e572
commit
8b5d0fe0fa
@ -209,7 +209,7 @@ function default.grow_cactus(pos, node)
|
|||||||
end
|
end
|
||||||
pos.y = pos.y - 1
|
pos.y = pos.y - 1
|
||||||
local name = minetest.get_node(pos).name --MFF
|
local name = minetest.get_node(pos).name --MFF
|
||||||
if minetest.get_item_group(name, "sand") == 0 and name ~= "watershed:drygrass" then --MFF
|
if minetest.get_item_group(name, "sand") == 0 and name ~= "default:dirt_with_dry_grass" then --MFF
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
pos.y = pos.y + 1
|
pos.y = pos.y + 1
|
||||||
@ -251,7 +251,7 @@ end
|
|||||||
|
|
||||||
minetest.register_abm({
|
minetest.register_abm({
|
||||||
nodenames = {"default:cactus"},
|
nodenames = {"default:cactus"},
|
||||||
neighbors = {"group:sand", "watershed:drygrass"}, --MFF
|
neighbors = {"group:sand", "default:dirt_with_dry_grass"}, --MFF
|
||||||
interval = 60,
|
interval = 60,
|
||||||
chance = 25,
|
chance = 25,
|
||||||
action = function(...)
|
action = function(...)
|
||||||
|
@ -51,6 +51,6 @@ mobs:register_mob("mobs:dirt_monster", {
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
-- spawn on dirt_with_grass and drygrass between -1 and 5 light, 1 in 10000 change, 1 dirt monster in area up to 31000 in height
|
-- spawn on dirt_with_grass and drygrass between -1 and 5 light, 1 in 10000 change, 1 dirt monster in area up to 31000 in height
|
||||||
mobs:spawn_specific("mobs:dirt_monster", {"default:dirt_with_grass", "watershed:drygrass"}, {"air"}, -1, 5, 30, 10000, 1, -31000, 31000, false)
|
mobs:spawn_specific("mobs:dirt_monster", {"default:dirt_with_grass", "default:dirt_with_dry_grass"}, {"air"}, -1, 5, 30, 10000, 1, -31000, 31000, false)
|
||||||
-- register spawn egg
|
-- register spawn egg
|
||||||
mobs:register_egg("mobs:dirt_monster", "Dirt Monster", "mobs_dirt_monster_inv.png", 1)
|
mobs:register_egg("mobs:dirt_monster", "Dirt Monster", "mobs_dirt_monster_inv.png", 1)
|
||||||
|
@ -60,7 +60,7 @@ mobs:register_mob("mobs:minotaur", {
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
-- spawns on desert sand between -1 and 20 light, 1 in 20000 chance, 1 Minotaur in area up to 31000 in height
|
-- spawns on desert sand between -1 and 20 light, 1 in 20000 chance, 1 Minotaur in area up to 31000 in height
|
||||||
mobs:spawn_specific("mobs:minotaur", {"watershed:drygrass"}, {"air"}, -1, 20, 30, 100000, 1, -31000, 31000, false)
|
mobs:spawn_specific("mobs:minotaur", {"default:dirt_with_dry_grass"}, {"air"}, -1, 20, 30, 100000, 1, -31000, 31000, false)
|
||||||
-- register spawn egg
|
-- register spawn egg
|
||||||
mobs:register_egg("mobs:minotaur", "Minotaur", "mobs_minotaur_inv.png", 1)
|
mobs:register_egg("mobs:minotaur", "Minotaur", "mobs_minotaur_inv.png", 1)
|
||||||
|
|
||||||
|
@ -200,7 +200,7 @@ biome_lib:register_generate_plant({
|
|||||||
"stoneage:grass_with_silex",
|
"stoneage:grass_with_silex",
|
||||||
"sumpf:peat",
|
"sumpf:peat",
|
||||||
"sumpf:sumpf",
|
"sumpf:sumpf",
|
||||||
"watershed:drygrass"
|
"default:dirt_with_dry_grass"
|
||||||
},
|
},
|
||||||
max_count = 15, --10,15
|
max_count = 15, --10,15
|
||||||
rarity = 101 - 4, --3,4
|
rarity = 101 - 4, --3,4
|
||||||
@ -246,7 +246,7 @@ biome_lib:register_generate_plant({
|
|||||||
"stoneage:grass_with_silex",
|
"stoneage:grass_with_silex",
|
||||||
"sumpf:peat",
|
"sumpf:peat",
|
||||||
"sumpf:sumpf",
|
"sumpf:sumpf",
|
||||||
"watershed:drygrass"
|
"default:dirt_with_dry_grass"
|
||||||
},
|
},
|
||||||
max_count = 55, --10,15
|
max_count = 55, --10,15
|
||||||
rarity = 101 - 4, --3,4
|
rarity = 101 - 4, --3,4
|
||||||
|
@ -74,7 +74,7 @@ biome_lib:register_generate_plant({
|
|||||||
)
|
)
|
||||||
|
|
||||||
biome_lib:register_generate_plant({
|
biome_lib:register_generate_plant({
|
||||||
surface = {"watershed:drygrass"},
|
surface = {"default:dirt_with_dry_grass"},
|
||||||
max_count = Molehills_Max_Count,
|
max_count = Molehills_Max_Count,
|
||||||
rarity = 97,
|
rarity = 97,
|
||||||
min_elevation = 1,
|
min_elevation = 1,
|
||||||
|
@ -34,16 +34,7 @@ minetest.register_alias("watershed:cactus", "default:cactus")
|
|||||||
|
|
||||||
minetest.register_alias("watershed:goldengrass", "default:dry_shrub")
|
minetest.register_alias("watershed:goldengrass", "default:dry_shrub")
|
||||||
|
|
||||||
minetest.register_node("watershed:drygrass", {
|
minetest.register_alias("watershed:drygrass", "default:dirt_with_dry_grass")
|
||||||
description = "Dry Dirt",
|
|
||||||
tiles = {"watershed_drygrass.png"},
|
|
||||||
is_ground_content = false,
|
|
||||||
groups = {crumbly=1, soil=1},
|
|
||||||
drop = "default:dirt",
|
|
||||||
sounds = default.node_sound_dirt_defaults({
|
|
||||||
footstep = {name="default_grass_footstep", gain=0.4},
|
|
||||||
}),
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_alias("watershed:permafrost", "default:dirt")
|
minetest.register_alias("watershed:permafrost", "default:dirt")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user