mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-03-21 23:22:19 +00:00
Fireflies: Add dedicated mgv6 register_decoration
This commit is contained in:
parent
63ebdfd139
commit
c2001b3b52
1 changed files with 71 additions and 42 deletions
|
@ -127,7 +127,34 @@ minetest.register_craft( {
|
||||||
|
|
||||||
|
|
||||||
-- register fireflies as decorations
|
-- register fireflies as decorations
|
||||||
minetest.register_decoration({
|
|
||||||
|
if minetest.get_mapgen_setting("mg_name") == "v6" then
|
||||||
|
|
||||||
|
minetest.register_decoration({
|
||||||
|
deco_type = "simple",
|
||||||
|
place_on = "default:dirt_with_grass",
|
||||||
|
place_offset_y = 2,
|
||||||
|
sidelen = 80,
|
||||||
|
fill_ratio = 0.0002,
|
||||||
|
y_max = 31000,
|
||||||
|
y_min = 1,
|
||||||
|
decoration = "fireflies:firefly",
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_decoration({
|
||||||
|
deco_type = "simple",
|
||||||
|
place_on = "default:dirt_with_grass",
|
||||||
|
place_offset_y = 3,
|
||||||
|
sidelen = 80,
|
||||||
|
fill_ratio = 0.0002,
|
||||||
|
y_max = 31000,
|
||||||
|
y_min = 1,
|
||||||
|
decoration = "fireflies:firefly",
|
||||||
|
})
|
||||||
|
|
||||||
|
else
|
||||||
|
|
||||||
|
minetest.register_decoration({
|
||||||
deco_type = "simple",
|
deco_type = "simple",
|
||||||
place_on = {
|
place_on = {
|
||||||
"default:dirt_with_grass",
|
"default:dirt_with_grass",
|
||||||
|
@ -147,9 +174,9 @@ minetest.register_decoration({
|
||||||
y_max = 31000,
|
y_max = 31000,
|
||||||
y_min = -1,
|
y_min = -1,
|
||||||
decoration = "fireflies:firefly",
|
decoration = "fireflies:firefly",
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_decoration({
|
minetest.register_decoration({
|
||||||
deco_type = "simple",
|
deco_type = "simple",
|
||||||
place_on = {
|
place_on = {
|
||||||
"default:dirt_with_grass",
|
"default:dirt_with_grass",
|
||||||
|
@ -169,4 +196,6 @@ minetest.register_decoration({
|
||||||
y_max = 31000,
|
y_max = 31000,
|
||||||
y_min = -1,
|
y_min = -1,
|
||||||
decoration = "fireflies:firefly",
|
decoration = "fireflies:firefly",
|
||||||
})
|
})
|
||||||
|
|
||||||
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue