Cave-Ins

Cave-Ins

60 Downloads

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 15 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.

 


 Cave-Ins and Massive Cave-Ins

Every time you mine a block in the "Trigger Blocks" list 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" tab to see how.

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 12-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 within reach 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.

 

Trigger Blocks

Here's the current list of blocks that can trigger a Cave-In when mined:

"minecraft:deepslate",
"minecraft:cobbled_deepslate",
"minecraft:stone",
"minecraft:cobblestone",
"minecraft:andesite",
"minecraft:granite",
"minecraft:diorite",
"minecraft:tuff",
"minecraft:dripstone_block",
"minecraft:coal_ore",
"minecraft:iron_ore",
"minecraft:gold_ore",
"minecraft:emerald_ore",
"minecraft:redstone_ore",
"minecraft:lapis_ore",
"minecraft:copper_ore",
"minecraft:diamond_ore",
"minecraft:deepslate_coal_ore",
"minecraft:deepslate_iron_ore",
"minecraft:deepslate_gold_ore",
"minecraft:deepslate_emerald_ore",
"minecraft:deepslate_redstone_ore",
"minecraft:deepslate_lapis_ore",
"minecraft:deepslate_copper_ore",
"minecraft:deepslate_diamond_ore",
"minecraft:terracotta",
"minecraft:white_terracotta",
"minecraft:light_gray_terracotta",
"minecraft:gray_terracotta",
"minecraft:black_terracotta",
"minecraft:red_terracotta",
"minecraft:orange_terracotta",
"minecraft:yellow_terracotta",
"minecraft:lime_terracotta",
"minecraft:green_terracotta",
"minecraft:cyan_terracotta",
"minecraft:light_blue_terracotta",
"minecraft:blue_terracotta",
"minecraft:purple_terracotta",
"minecraft:magenta_terracotta",
"minecraft:pink_terracotta",
"minecraft:brown_terracotta",
"minecraft:sandstone",
"minecraft:red_sandstone",
"minecraft:dirt",
"minecraft:grass_block",
"minecraft:podzol",
"minecraft:dirt_path",
"minecraft:coarse_dirt",
"minecraft:clay",
"minecraft:farmland"





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.