#worldgeneration

1 messages ยท Page 1 of 1 (latest)

maiden valve
#

you want a world that is generated custom right ?

empty elk
#

yeah

#

do u have some time in like 30 mins?

#

because i have to go rn but ill be back in 30 mins

maiden valve
#

yeah just write here then

empty elk
#

yeah cya later ๐Ÿ˜„

empty elk
#

ok im back

maiden valve
#

ok hi

#

at this moment you just create a world with the same block from y=0 to y=100 right ?

empty elk
#

one moment

#

rn my code doesnt even do anything

maiden valve
#

but your goal is to place blocks ?

empty elk
#

my goal is to place grassblock from 1 to 64 and then some quarz slabs onto it but the grass would be nice for now

#

-> Superflat map at heightlevel 64

maiden valve
#

do you have those methods in your chunkgenerator as override ?
generateNoise(WorldInfo, Random, int, int, ChunkData)
generateSurface(WorldInfo, Random, int, int, ChunkData)
generateBedrock(WorldInfo, Random, int, int, ChunkData)
generateCaves(WorldInfo, Random, int, int, ChunkData)

empty elk
#

WorldCreator creator = new WorldCreator(name);
World world = creator.createWorld();
world.getGenerator().generate________();

#

those?

maiden valve
#

didn't you create a class that extends the ChunkGenerator ?

empty elk
#

ohhh i see

#

yeah

#

yeah i can use them

maiden valve
#

then you should use generateSurface to place a lot of stone+grass and generateNoise for the quartz slabs

empty elk
#

would you mind giving me a piece of code? ^^

maiden valve
#

give me some seconds

empty elk
#

sure ๐Ÿ˜„

maiden valve
#

should generate stone from 0 to 64

empty elk
#

thx, ill look what i can do with it

#

and how can i call this generation?

#

i dont really understand it sry

maiden valve
#

how much do you know about how the API works ?

empty elk
#

i dont know how to describe it, im relatively new to java but i understand the basics

maiden valve
#

ah ok i see... do you know how to create a class and extend another with it ?

empty elk
#

yeah

maiden valve
#

create your a class with a name like "CustomGenerator" and extend ChunkGenerator from bukkit

empty elk
#

wait, ill save my old code with blockpopulators xD