Skip to content

Commit

Permalink
add planetoidgen registrations
Browse files Browse the repository at this point in the history
  • Loading branch information
NatureFreshMilk committed Feb 3, 2020
1 parent b73f24d commit 7c6094e
Show file tree
Hide file tree
Showing 4 changed files with 88 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .luacheckrc
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ read_globals = {
-- Deps
"default", "advtrains",
"letters", "player_monoids",
"pipeworks",
"pipeworks", "planetoidgen",

-- optional mods
"xban"
Expand Down
5 changes: 5 additions & 0 deletions init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,11 @@ if minetest.get_modpath("gravity_manager") then
dofile(MP.."/gravity_manager.lua")
end

if minetest.get_modpath("planetoidgen") then
-- register planets
dofile(MP.."/planets.lua")
end

if minetest.get_modpath("skybox") then
-- planetary skyboxes
dofile(MP.."/skybox.lua")
Expand Down
1 change: 1 addition & 0 deletions mod.conf
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,5 @@ mypaths,
moreblocks,
bakedclay,
bonemeal,
planetoidgen,
"""
81 changes: 81 additions & 0 deletions planets.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@

-- miranda
planetoidgen.register_planet({
pos = { x = -25670, y = 7500, z = 5280 },
radius = 250, type = "class-m", name = "miranda", airshell = true
})

planetoidgen.register_planet({
pos = { x = -25670, y = 7500, z = 6800 },
radius = 250, type = "class-m", name = "kiedtl's planet", airshell = true
})

planetoidgen.register_planet({
pos = { x = 30000, y = 9000, z = 30000 },
radius = 80, type = "class-m", name = "int's restaurant", airshell = true
})

planetoidgen.register_planet({
pos = { x = -22400, y = 8210, z = 13500 },
radius = 250, type = "class-m", name = "Eula's planet", airshell = true
})

-- amun system
planetoidgen.register_planet({
pos = { x = 10000, y = 9700, z = 15000 },
radius = 250, type = "sun", name = "system-1 sun"
})
planetoidgen.register_planet({
pos = { x = 10000, y = 9700, z = 15600 },
radius = 100, type = "class-m", name = "system-1 top", airshell = true
})
planetoidgen.register_planet({
pos = { x = 10520, y = 9700, z = 15300 },
radius = 100, type = "class-n", name = "system-1 top-right stone"
})
planetoidgen.register_planet({
pos = { x = 10520, y = 9700, z = 14700 },
radius = 100, type = "class-m", name = "system-1 bottom-right", airshell = true
})
planetoidgen.register_planet({
pos = { x = 10000, y = 9700, z = 14400 },
radius = 100, type = "class-p", name = "system-1 bottom ice", airshell = true
})
planetoidgen.register_planet({
pos = { x = 9480, y = 9700, z = 14700 },
radius = 100, type = "class-m", name = "system-1 bottom-left", airshell = true
})
planetoidgen.register_planet({
pos = { x = 9480, y = 9700, z = 15300 },
radius = 100, type = "class-h", name = "system-1 top-left desert", airshell = true
})

-- unnamed system
planetoidgen.register_planet({
pos = { x = 9000, y = 9500, z = 5000 },
radius = 400, type = "sun", name = "system-2 sun"
})
planetoidgen.register_planet({
pos = { x = 9000, y = 9500, z = 6000 },
radius = 300, type = "class-p", name = "system-2 top", airshell = true
})
planetoidgen.register_planet({
pos = { x = 9866, y = 9500, z = 5500 },
radius = 300, type = "class-m", name = "system-2 top-right", airshell = true
})
planetoidgen.register_planet({
pos = { x = 9866, y = 9500, z = 4500 },
radius = 300, type = "class-m", name = "system-2 bottom-right", airshell = true
})
planetoidgen.register_planet({
pos = { x = 9000, y = 9500, z = 4000 },
radius = 300, type = "class-h", name = "system-2 bottom desert", airshell = true
})
planetoidgen.register_planet({
pos = { x = 8134, y = 9500, z = 4500 },
radius = 300, type = "class-m", name = "system-2 bottom-left", airshell = true
})
planetoidgen.register_planet({
pos = { x = 8134, y = 9500, z = 5500 },
radius = 300, type = "class-m", name = "system-2 top-left", airshell = true
})

0 comments on commit 7c6094e

Please sign in to comment.