Solved Creating a custom world

Discussion in 'Plugin Development' started by NortherKnight, Nov 28, 2015.

Thread Status:
Not open for further replies.
  1. Offline

    NortherKnight

    How do I create a world with bukkit api and mess around with presets?
     
  2. Offline

    DoggyCode™

    Create a world? Doesn't Minecraft already do that for you? You mean World Generators? Or?
     
  3. Offline

    Mrs. bwfctower

  4. Offline

    NortherKnight

  5. Offline

    mcdorli

    Ask me then. You need to create a world generator. This is a terrible idea. Why?

    1.: There are no built-in populators (the things that creates lakes, ores, trees, grass, etc), you need to create everything
    2.: Presets? What presets?
    3.: It's very-very painful to watch the "Generating terrain 10%" text over and over and over...
    4.: There is a plugin (I forgot the name, sorry), which allows you to change aspect of the worlds, and such
    5.: There is not too much information about it

    But if you want to, start with this thread:
    https://bukkit.org/threads/the-alwa...ation-part-one-prerequisites-and-setup.93982/
    Everything is provided for you, that you will need for world generating, the API, noises, etc. Good luck!
     
  6. Offline

    NortherKnight

  7. Offline

    mcdorli

    Those settings just play around with multiplying/increasing/clamping some of the worlds aspects, if you don't know what simplex noise is then here is a small explaining for it:

    Simplex Noise (open)

    The simplex noise is a noise, that can generate numbers between -1 and 1 blurred out, unlike a normal computer noise. It was made by Ken Perlin after he realized the flaws of his old noise, the perlin noise around 2000. It is widely used in computer science, and game development. Different aspects of the simplex noise can be changed by changing the frequency, amplitude and octave number of it.


    Minecraft uses simplex noise to generate the terrain.
    You can say, that put in a location non-transparent block, if the noise's value at the location is bigger than 0, this way you get a world, that is 50% air, 50% non-transparent block. My extremeTerrain plugin uses 80%-20% or 75%-25%. You can also use the simplex noise to tell the height of the terrain at different places. This way you won't get caves. Minecraft actually uses two types of noise, a 2D and a 3D (the 2D noise is just the bottom layer of the world, where usually bedrock spawns), then use the 3D noise, to tell, wheter a block transparent is or not, then it uses the 2D noise, to get the maximum height of the terrain at that place.

    You can even play with the aspects of the simplex noise mentioned above. octave number represents details of the noise, frequency is the thickness, amplitude is the slopes angle (sort of)

    You can find all these in those presets, if you want to, but you currently can't use them with bukkit.
     
    DoggyCode™ likes this.
  8. Offline

    NortherKnight

    @mcdorli so you're saying that there is no other way but to create your own custom world generator?
     
  9. Offline

    Scimiguy

    Correct
     
  10. Offline

    mcdorli

  11. Offline

    NortherKnight

  12. Offline

    mcdorli

    That only allows you, to change the type (amplified, normal, etc.), and the other things, that are available in the main world generating window. If you want to get the ones from the custom world generator, then you need to create your own world generator

    like xAmplitude, yAmplitude, frequency, octave number, etc.
     
    Last edited: Nov 29, 2015
Thread Status:
Not open for further replies.

Share This Page