-
Notifications
You must be signed in to change notification settings - Fork 8
/
space_asteroids.lua
26 lines (22 loc) · 1.17 KB
/
space_asteroids.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
if otherworlds.settings.space_asteroids.enable then
-- Approximate realm limits
local YMIN = otherworlds.settings.space_asteroids.YMIN or 5000
local YMAX = otherworlds.settings.space_asteroids.YMAX or 6000
-- Register on_generated function for this layer
minetest.register_on_generated(otherworlds.asteroids.create_on_generated(YMIN, YMAX, {
c_air = minetest.get_content_id("air"),
c_obsidian = minetest.get_content_id("default:obsidian"),
c_stone = minetest.get_content_id("asteroid:stone"),
c_cobble = minetest.get_content_id("asteroid:cobble"),
c_gravel = minetest.get_content_id("asteroid:gravel"),
c_dust = minetest.get_content_id("asteroid:dust"),
c_ironore = minetest.get_content_id("default:stone_with_iron"),
c_copperore = minetest.get_content_id("default:stone_with_copper"),
c_goldore = minetest.get_content_id("default:stone_with_gold"),
c_diamondore = minetest.get_content_id("default:stone_with_diamond"),
c_meseore = minetest.get_content_id("default:stone_with_messe"),
c_waterice = minetest.get_content_id("default:ice"),
c_atmos = minetest.get_content_id("asteroid:atmos"),
c_snowblock = minetest.get_content_id("default:snowblock"),
}))
end