Create Caves in prerendered world [CaveBlock]
See original GitHub issueDescription
Plugin can’t create caves in area where chunks was rendered by plugin or player. Cave creator doesn’t ignore stone, doesn’t treat it as free space.
New world, new database, new server. Set BentoBox/addons/CaveBlock/config.yml to:
distance-between-caves: 50 protection-range: 30 start-z: 0 offset-x: 0 offset-z: 0 cave-height: 60 use-own-generator: false max-caves: 0 default-game-mode: SURVIVAL default-biome: MOUNTAINS ban-limit: -1 world-depth: 256 generation-tries: 5 normal: roof: false floor: true main-block: STONE blocks: []
When player create first cave, he is teleported to his cave home. He will render some chunks [as set in server.properties] around him. Mostly stone, and bedrock as floor. When next person will try to create 2nd cave, creator will start to find free location. 1st should be 0,0 [x/z] 2nd 0,100. Unfortunately, chunks at 0,0 are already rendered as spawn of the world, stone is rendered, plugin think that this space is taken, and looks for other free space. 1st cave was created at 200,200, 1st player render area around him. Next cave can’t be placed near him because plugin thinks stone is occupied place so it will find non rendered area ar 200,-200.
8 caves locations (there were only 8 caves) [x/z]: 1: 200/200 2: 200/-200 3: 200/0 4: -200/300 5: -200/100 6: 0/100 7: 0/300 8: 200/400
If I prerender whole map I cant create any cave:
[17:48:51 INFO]: Cry_Sis issued server command: /tb create [17:48:53 ERROR]: [BentoBox] Could not find a free spot for islands! Is this world empty?
[17:48:53 ERROR]: [BentoBox] Blocks around center locations: 20 max 20 [17:48:53 ERROR]: [BentoBox] Known islands: 126 max unlimited. [17:48:53 ERROR]: [BentoBox] Failed to make island - no unoccupied spot found. [17:48:53 ERROR]: [BentoBox] If the world was imported, try multiple times until all unowned islands are known. [17:48:53 ERROR]: [BentoBox] Could not create island for player. commands.island.create.cannot-create-island
If I set
main-block: AIR
everything works great, 1st cave loc is 0,0, 2nd 0,100, 3rd 100,100, 4th 100,0 5th 100,-100
Environment: Spigot 1.16.5 Spigot 1.15.2 Tuinity 1.16.5 - fork of spigot
Output of /bbox version
(Mandatory)
` SERVER: TUNITY BBOX: 1.15.5 DATABASE: SQLITE
BIOMES 1.14.0 ENABLED caveblock 1.14.2 ENABLED Challenges 0.8.3 ENABLED ControlPanel 1.7.0 ENABLED DimensionalTrees 1.6.0 ENABLED Level 2.5.1 ENABLED WARPS 1.10.2 ENABLED `
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (5 by maintainers)
Top GitHub Comments
BB 1999 and CB 374. It works good.
@tastybento The issue is happening when worldRoof or worldFloor is set to bedrock (option in config).
I have set that CaveBlocks uses custom generator, but it still fails to properly detect empty space and takes bedrock as existing island starting block.