BentoBoxWorld / CaveBlock

CaveBlock addon for BentoBox. An interesting variation from Skyblock, where your goal is to survive in a cube of stone!
Eclipse Public License 2.0
16 stars 6 forks source link

Generates ores in ChunkGenerator #7

Closed tastybento closed 5 years ago

tastybento commented 5 years ago

Blocks cannot be set in populators so no ores were being generated. So I moved ore generstion into the chunk generator.

WIP: Also, all entities (except Shulkers) are dying instantly because blocks are not being set to air in the entity populator. This needs fixing still.

tastybento commented 5 years ago

Let me try and fix the entity population before merging.

tastybento commented 5 years ago

Hey @BONNe what do you want to do here? One approach could be for the Chunk Generator to make cave air spaces in the stone at random and then have the entity populator fill them with random entities.

tastybento commented 5 years ago

Okay, this is weird. On further investigation, block populators should be able to set the block type. This is not happening for some reason.

tastybento commented 5 years ago

So, I'm not sure why your block populators were not actually setting blocks (or maybe they were?) but anyway, this latest commit works. The problem is that the server will despawn living entities not close to the player, so the result is that there are quite a few empty spaces with nothing in them (or water). So, I'm not so sure how useful having living entity population.

tastybento commented 5 years ago

Okay, final comment - I'm not sure if this is exactly what you wanted, but I hope it's useful. It's been quite a trip trying to work all this out!

BONNe commented 5 years ago

Its weird...for me all populators worked.

Other mobs were not done, as it is usesless. Most of them will despawn.

BONNe commented 5 years ago

Blocks cannot be set in populators so no ores were being generated. So I moved ore generstion into the chunk generator.

So, in first try I also done it in generator, but it is not a proper way how to do it. Correct way is using BlockPopulators.

tastybento commented 5 years ago

Okay, that's embarrassing. Yes, ores are being generated. I think the issue was that I was changing the config file setting to increase the ore generation rate while the server was running without doing /cbadmin reload. Ugh.