Compatibility
Minecraft: Java Edition
Platforms
Supported environments
90% of ad revenue goes to creators
Support creators and Modrinth ad-free with Modrinth+Creators
Details
Cave-Ins Summary
The Cave-Ins datapack brings customizable, multiplayer-friendly mining physics to your game without mods!
Ceiling blocks in caves now have a tendency to fall when you mine them, resulting in a randomized, small, or even massive cave-in. Use supports to prevent cave-ins in a 12 block radius, or use silk touch on your tools to ignore the risk all together. There's even an in-game config so you can adjust cave-in chances and features for an easier or more difficult experience.
Check Out The Planet Minecraft Page For More Info And Videos On How The Datapack Works!
Cave-Ins and Massive Cave-Ins Mechanic
Every time you mine a block in the "Trigger Blocks" list (Located on the Planet Minecraft page) that has 2 blocks of air under it, you run the risk of causing a cave-in. Small cave-ins are common and usually only provoke a handful of blocks to fall, but massive cave-ins can be devastating and span a large area if you're not careful.
The chances of Cave-Ins and Massive Cave-Ins is configurable - see the "Config" section below to see how.
As of v1.1 - Random Cave-Ins can occur around you at depths lower than y=30. They get more frequent as you delve deeper, making supports necessary.
Support Structures
Building supports is crucial in preventing Cave-Ins. To build a support, simply place a Stripped Log of any type between 2 Polished Deepslate blocks in the crafting grid. Supports can be a minimum height of 2-blocks and a maximum height of 10-blocks. They will support any blocks in a 15-block range from the top of the support.
Holding a Soul Lantern in your offhand with a Pickaxe in your mainhand will reveal the support status of the block you're facing if it could potentially trigger a Cave-In.
Red particles indicate an unsupported block, while cyan particles indicate a supported block.
TNT Cave-Ins
TNT will always cause a Massive Cave-In if there is a block within 5 blocks above it. This makes TNT a more effective tool when mining, since Massive Cave-Ins often reveal pockets of ore. This also makes it perfect for sealing off small caves.
To prevent a TNT Cave-In, simply place any trapdoor on top of the TNT to "cap" it before igniting it. Cave-Ins caused by TNT will not be prevented by nearby supports!
Config
To open the config, type the following command into chat: /function cave_in:config
Here you can adjust Cave-In chances and enable/disable features.
Please use the Uninstall button before removing this datapack. This will cleanup the scoreboard and any entities this datapack was using.
Notes
This datapack is 100% multiplayer-friendly!
A note on optimization: I've spent the past several months slowly piecing this datapack together and making it as performant as possible. Watching it go from unplayable to having little to no performance impact has been amazing. However, please note that I have done pretty minimal server testing for this pack, so it may not be suitable for large volume servers depending on server resources. Expect TPS drops when Massive Cave-Ins occur - in some instances, there could be 100+ falling block entities at a time. Disabling falling block particles and sound effects in the config can help reduce lag if you're having issues.