#worldgeneration
1 messages ยท Page 1 of 1 (latest)
yeah
do u have some time in like 30 mins?
because i have to go rn but ill be back in 30 mins
yeah just write here then
yeah cya later ๐
ok im back
ok hi
at this moment you just create a world with the same block from y=0 to y=100 right ?
but your goal is to place blocks ?
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
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)
WorldCreator creator = new WorldCreator(name);
World world = creator.createWorld();
world.getGenerator().generate________();
those?
didn't you create a class that extends the ChunkGenerator ?
then you should use generateSurface to place a lot of stone+grass and generateNoise for the quartz slabs
would you mind giving me a piece of code? ^^
give me some seconds
sure ๐
should generate stone from 0 to 64
you can read here about what will generate by default and what you can disable https://hub.spigotmc.org/javadocs/spigot/org/bukkit/generator/ChunkGenerator.html
declaration: package: org.bukkit.generator, class: ChunkGenerator
thx, ill look what i can do with it
and how can i call this generation?
i dont really understand it sry
how much do you know about how the API works ?
i dont know how to describe it, im relatively new to java but i understand the basics
ah ok i see... do you know how to create a class and extend another with it ?
yeah
create your a class with a name like "CustomGenerator" and extend ChunkGenerator from bukkit
wait, ill save my old code with blockpopulators xD