Jump to content

REgenerating the underground


hydroflame

Recommended Posts

Hey guys,

 

If you play on a server long enough you end up having a billion tunnels underground and minning all the ore out of your main area (the problem is a million time worst in big multiplayer server). So i was thinking, would there be a way to regenerate the underground ? like everything under 30 would pass another generate step every month or so (probably with another RNG so that ores are not EXACTLY in the same spot every time).

 

btw im not expecting you guys to do the mod. I'm pretty sure i can handle this, except that world gen/chunks are the only thing i did not touch in forge (yet).

 

so what do you guys think ? were would you start searching? does anybody have a mod i could take example from ? something like the hard mode world gen in terraria? (if you know what im talking about)  Which class should I look into?

 

Thanks ^^

how to debug 101:http://www.minecraftforge.net/wiki/Debug_101

-hydroflame, author of the forge revolution-

Link to comment
Share on other sites

I think diesieben07's Questology did something like this when their reactor something or other was used... From memory it regenerated the world with extra features in it... You would have to look into it. I am guessing you would know how to find their github? (It is under diesieben07's name on github)

I am Mew. The Legendary Psychic. I behave oddly and am always playing practical jokes.

 

I have also found that I really love making extremely long and extremely but sometimes not so descriptive variables. Sort of like what I just did there xD

Link to comment
Share on other sites

github is my 2nd home

questology

is what ill be looking for

 

i also tought about how IC2 was using terraformer but i think itll be too much stress on the server doing it this way

how to debug 101:http://www.minecraftforge.net/wiki/Debug_101

-hydroflame, author of the forge revolution-

Link to comment
Share on other sites

I just tested this in my own mod successfully, and generating new blocks is possible through WorldGenerator. You can use the method WorldGenMinable.generate or create your own. Here's some tutorials about that: http://www.minecraftforum.net/topic/1524180-152-popgalops-beginner-advanced-modloader-modding-tutorials-taking-requests/

Specifically the Making Ore Generate and Structure Generation sections. I'm not sure how to have the generate method called after a certain period of time, I'm sure that wouldn't be too hard, but I have tested it successfully through using a custom item.

Link to comment
Share on other sites

Unless you were to build into the source a bit (I know this is not good, but I am suggesting an idea) and create some function that detects what blocks have been "set" by the player, and then when it comes to regeneration, don't disturb those blocks marked with the special flag. Also you would have to check for single or blocks that aren't light source blocks and regenerate those too. Because that would leave random singularly placed blocks that probably hold no meaning to the player...

 

And I know I have said probably, there is still a risk that the player wants all blocks he (or she) has placed in the world. So I guess there is really no way at all aside from what I said earlier, without the "check for single blocks" bit.

 

And also since I am pretty sure a base edit would be required, it is probably not worth it...

I am Mew. The Legendary Psychic. I behave oddly and am always playing practical jokes.

 

I have also found that I really love making extremely long and extremely but sometimes not so descriptive variables. Sort of like what I just did there xD

Link to comment
Share on other sites

underground would have been some chosen value like 16 and down. of course itll break player construction but if its only 16 and down, you could tell your players that every x amount of time youll regen 16 and down. so they wont really build there. as for keep track of every block created by the player? you would just eventually end up with the same problem. some people plce torch and cobblestone while digging

how to debug 101:http://www.minecraftforge.net/wiki/Debug_101

-hydroflame, author of the forge revolution-

Link to comment
Share on other sites

to my mind theyr is command to generate ore in underground

 

step 1 : put stone ( no cave anymore :\ )

step 2 : do the command with % of each ore i already see someone doing that BUT : this will not be like the odd one

 

cause : if you regenerate like : layer 6-40 you can found diamond on layer 39 if you dont pay attention to that

 

that's why lot of server make a map for mining then they put a new one to avoid this issue

 

maybe a modding using minecraft generation cave/ore then replace all by stone then launch script

Link to comment
Share on other sites

@Tsundare: which command is that? i looked into all commands and i couldnt find it (maybe im just derp)

Did you see my comment before? You can do it with WorldGenMinable.generate, or mimic that with your own WorldGen class. You can also put something like this in the class to make sure it only replaces stone blocks:

if (world.getBlockId(i, j, k) == Block.stone.blockID)

Link to comment
Share on other sites

woups sorry you misunderstood (or i did)

i was thinking that Tsundare was saying there is a vanilla command line thing to do thsi (like tp player1 player2 or give player123 65 64, stop, say hello world, etc)

 

but yeah thanks seabass ill deffinitelly check into that ;)

 

how to debug 101:http://www.minecraftforge.net/wiki/Debug_101

-hydroflame, author of the forge revolution-

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.