[mod] asteroids and planets [0.2][asteroids]

Post Reply
juli
Member
Posts: 217
Joined: Sat Jun 11, 2016 10:31
GitHub: cpdef
In-game: juli

[mod] asteroids and planets [0.2][asteroids]

by juli » Post

version 0.2:
Image
Image
version 0.1 (old)
Image
Image
A mod to add planets and asteroids to the world,
There are Ores into them and at Moment 4 planet types:
dirt, ice, sandstone, stone
stars cooming soon.

You can simply add new planettypes by a register function,
also new ores.
At moment are these ores included:
(gravel)
iron, cooper, tin, silver, gold, diamond, mese, mithril
Technic-mod ores would be also added.

The planets are not so much as at the image, i have only added them for the Image :)

The Planets appear 2000m over sealevel,
for the spacelook i used the marssurvive mod ...

If someone wann create a planet, it is now possible, i would take it into my mod.

License: GNU AFFERO GENERAL PUBLIC LICENSE Version 3
Depends: default, (moreores-optional)

Download:https://github.com/cpdef/minetest-aster ... master.zip
Source:https://github.com/cpdef/minetest-asteroids
Last edited by juli on Wed Nov 23, 2016 21:10, edited 6 times in total.

User avatar
cx384
Member
Posts: 774
Joined: Wed Apr 23, 2014 09:38
GitHub: cx384
IRC: cx384

Re: [mod] asteroids and planets [0.1][asteroids]

by cx384 » Post

Nice idea,
but I think it would be nice to have a function to register a asteroid type (with rarity, max height, min height, layers (with substance, size, ores, ...), size (maybe shape), ...).
Last edited by cx384 on Tue Nov 22, 2016 17:41, edited 1 time in total.
Can your read this?

juli
Member
Posts: 217
Joined: Sat Jun 11, 2016 10:31
GitHub: cpdef
In-game: juli

Re: [mod] asteroids and planets [0.1][asteroids]

by juli » Post

Star added! Warning! the star is hot :), if u are 40 blocks away u get damaged in survival mode!

There is sometimes a error, so that the big Planets would not be generated well,
if u use the flat mapgen it is like normal. To fly the ufo-mod is useable.
cx384 wrote:Nice idea,
but I think it would be nice to have a function to register a asteroid type (with rarity, max height, min height, layers (with substance, size, ores, ...), size (maybe shape), ...).
There is already a simple which i used for all planets, which allowes to change the material on surface.
I wanna improve it.
Maybe i add later an athmosphere or a ring lika at saturn.
Also Gas planets planned.

User avatar
Christian9
Member
Posts: 338
Joined: Fri Sep 19, 2014 20:29
In-game: Christian9
Location: Hell Creek

Re: [mod] asteroids and planets [0.1][asteroids]

by Christian9 » Post

Coolio, my Cat gives it 5/5 weweygbriebiferyhbf"s

User avatar
cx384
Member
Posts: 774
Joined: Wed Apr 23, 2014 09:38
GitHub: cx384
IRC: cx384

Re: [mod] asteroids and planets [0.1][asteroids]

by cx384 » Post

juli wrote: There is already a simple which i used for all planets, which allowes to change the material on surface.
I wanna improve it.
Maybe i add later an athmosphere or a ring lika at saturn.
Also Gas planets planned.
Great!
Can your read this?

juli
Member
Posts: 217
Joined: Sat Jun 11, 2016 10:31
GitHub: cpdef
In-game: juli

Re: [mod] asteroids and planets [0.1][asteroids]

by juli » Post

i think i fixed the map generation error, by replacing the default:stone node with one other,
which looks like default:stone and drops also cobblestone. I think the mapgen runned some other landscape
before sometimes if i ther is default stone...

If you notice some mapgeneration error please tell me!

User avatar
paramat
Developer
Posts: 3700
Joined: Sun Oct 28, 2012 00:05
GitHub: paramat
IRC: paramat
Location: UK

Re: [mod] asteroids and planets [0.1][asteroids]

by paramat » Post

Yes all your nodes should be mod nodes with 'is_ground_content = false' otherwise large cave overgeneration will remove 'natural' nodes such as 'default:stone' 'default:dirt' etc.

juli
Member
Posts: 217
Joined: Sat Jun 11, 2016 10:31
GitHub: cpdef
In-game: juli

Re: [mod] asteroids and planets [0.1][asteroids]

by juli » Post

I have now improved the register function, now u can
register planets with specified:
-radius
-name :)
-ores/layers (maybe 2 spheres where one is the core and one the surface etc.)
-> every planet has now its own ores and not all the same.

Because of this ther is now only one planet, i go to add the planets i had before
now with the new system.
(now version 0.2 :) )

@paramat thank you, i go to change it at every node...

User avatar
D00Med
Member
Posts: 949
Joined: Sat Feb 07, 2015 22:49
GitHub: D00Med
Location: Australia...somewhere

Re: [mod] asteroids and planets [0.1][asteroids]

by D00Med » Post

This looks cool!
Look! I have a signature :]
My subgame: viewtopic.php?f=15&t=14051#p207242

juli
Member
Posts: 217
Joined: Sat Jun 11, 2016 10:31
GitHub: cpdef
In-game: juli

Re: [mod] asteroids and planets [0.1][asteroids]

by juli » Post

Now i have a planet group registration implemented,
that registers many planets at one time, with:
- radius offset
- some nodes changed
Here is some simple planet registration:

Code: Select all

asteroids.register_planet_group("dirty", --name
  20,  --chance
       {  --spheres:
        --SPHERE1
                {10, --radius
                       {
                       {"default:dirt", 1}, --node, chance of node is sphere
                       {"default:stone", 2}
                       }
                },
        --SPHERE2
                {11, --second sphere (radius)
                      {
                       {"default:dirt", 1}, 
                       {"default:sand", 2}
                       }
	        }, --the spheres are in that order u define here generated, so the second would
                   --override the first here, normaly you should change the order, so that it don't 
                   --the first would not be overridden
	},
	--Group: (the lines before are same at non-group registration)
	{10, 20}, --radius_offsets

	{{["default:dirt"]="default:dirt"}, {["default:dirt"]="default:stone"}} 
        --nodes that would be changed (here changes "dirt" to "dirt";] and "stone")
	)

User avatar
linushsao
Member
Posts: 418
Joined: Mon Jan 27, 2014 12:56
IRC: linushsao
In-game: linus
Location: Taipei,Taiwan(R.O.C)
Contact:

Re: [mod] asteroids and planets [0.2][asteroids]

by linushsao » Post

Wow...i remember Mars has two natural satellites, maybe in our marssurvive-server,...it's time to think about that alien's planets are coming to us!!!. players in mars gather enought items/tools/...,they will be able to fly to satellites of mars,and something are waitting for them....
1)Server:Mars World
2).address:139.59.238.211:30016
3).manual(in processing):http://tinyurl.com/jyjkrgl
4).for my(admin's) role in all my servers,i'll be as the earth/water/fire/wind. i maintain that system,but not manage/touch players directly in game,not own the crafts on planet. i just keep watching the worlds.
5).TODO-List

juli
Member
Posts: 217
Joined: Sat Jun 11, 2016 10:31
GitHub: cpdef
In-game: juli

Re: [mod] asteroids and planets [0.2][asteroids]

by juli » Post

now u can also register a on_construct function, which has params:
-position of planet,
-planet_def

And i have added a earth like planet, (only a simple one ...) look at first post.

User avatar
Andrey01
Member
Posts: 2596
Joined: Wed Oct 19, 2016 15:18
GitHub: Andrey2470T
In-game: Andrey01
Location: Russia, Moscow

Re: [mod] asteroids and planets [0.2][asteroids]

by Andrey01 » Post

It is very beautiful looks like!

juli
Member
Posts: 217
Joined: Sat Jun 11, 2016 10:31
GitHub: cpdef
In-game: juli

Re: [mod] asteroids and planets [0.2][asteroids]

by juli » Post

Have someone tested it already?

juli
Member
Posts: 217
Joined: Sat Jun 11, 2016 10:31
GitHub: cpdef
In-game: juli

Re: [mod] asteroids and planets [0.2][asteroids]

by juli » Post

I wanna add at next caves into the asteroids. Should I use Perlinnoise for this?
I have never used Perlinnoise ...

IKRadulov
Member
Posts: 19
Joined: Thu Nov 10, 2016 11:02

Re: [mod] asteroids and planets [0.2][asteroids]

by IKRadulov » Post

Looks cool and +1 for the i3wm colors !

juli
Member
Posts: 217
Joined: Sat Jun 11, 2016 10:31
GitHub: cpdef
In-game: juli

Re: [mod] asteroids and planets [0.2][asteroids]

by juli » Post

IKRadulov wrote:Looks cool and +1 for the i3wm colors !
yes i3 is cool, but i wanted to know how to programm caves ....

IKRadulov
Member
Posts: 19
Joined: Thu Nov 10, 2016 11:02

Re: [mod] asteroids and planets [0.2][asteroids]

by IKRadulov » Post

As I know there is a flag in mapgen v6 that enables caves to be generated . They can be e enabled in minetest config
see this topic viewtopic.php?id=7588 (Here is disabling them). Also why don't you generate air in the planet. That should leave space betwene. Or see how the Nether mod implements the nether system : viewtopic.php?f=11&t=5790

juli
Member
Posts: 217
Joined: Sat Jun 11, 2016 10:31
GitHub: cpdef
In-game: juli

Re: [mod] asteroids and planets [0.2][asteroids]

by juli » Post

IKRadulov wrote:As I know there is a flag in mapgen v6 that enables caves to be generated . They can be e enabled in minetest config
I don't want that the mapgen generates caves himself in my planet. I want not so big caves inside there.
Also the mapgen only generates caves in normal llocks like dirt and stone, but not if i use other material.
IKRadulov wrote:Also why don't you generate air in the planet. That should leave space betwene. Or see how the Nether mod implements the nether system : viewtopic.php?f=11&t=5790
Sorry i don't understand your question.
Also trees can not grow inside of other air-like blocks, so there would be only one block like if you place a sapling into stone 100m in underground.
Or do you mean why i don't generate the air there for caves?

IKRadulov
Member
Posts: 19
Joined: Thu Nov 10, 2016 11:02

Re: [mod] asteroids and planets [0.2][asteroids]

by IKRadulov » Post

I should made my self clear . Yes generate air blocks in caves . You can find more info in the wiki http://wiki.minetest.net/Air . I do not know mutch of map generation thought so I am not a very relieble resource :D

User avatar
Andrey01
Member
Posts: 2596
Joined: Wed Oct 19, 2016 15:18
GitHub: Andrey2470T
In-game: Andrey01
Location: Russia, Moscow

Re: [mod] asteroids and planets [0.2][asteroids]

by Andrey01 » Post

That all is nice, real second space mod!Can had you do Black Holes in that space, what will to suck all objects around and also players?

juli
Member
Posts: 217
Joined: Sat Jun 11, 2016 10:31
GitHub: cpdef
In-game: juli

Re: [mod] asteroids and planets [0.2][asteroids]

by juli » Post

i think i have a idea for cave generation now (with perlin noise)
if i have time i add it ...
Isn't there already a black holes mod?

User avatar
Andrey01
Member
Posts: 2596
Joined: Wed Oct 19, 2016 15:18
GitHub: Andrey2470T
In-game: Andrey01
Location: Russia, Moscow

Re: [mod] asteroids and planets [0.2][asteroids]

by Andrey01 » Post

juli wrote:i think i have a idea for cave generation now (with perlin noise)
if i have time i add it ...
Isn't there already a black holes mod?
This mod has here, but there blackholes are unreal, they have to suck players and different objects around

User avatar
tm3
Member
Posts: 139
Joined: Thu Dec 15, 2016 11:56
IRC: tm3
In-game: tm3

Re: [mod] asteroids and planets [0.2][asteroids]

by tm3 » Post

superb idea juli ver nice i love it :)
- Yours truly TM3

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest