#WARNING: there are no guarantees that this mod will not grief your world beyond your liking. Make a backup.
This is a Minecraft 1.19.2 Forge mod that adds cave ins underground.
At certain intervals a cave in may randomly start for one player in the overworld. Whitelisted blocks will fall and hurt players during a cave in. Cave ins will only start under a certain height.
Certain aspects of the mod can be reconfigured in the .minecraft/config/cavein-common.toml config file.
The default configuration potentially starts a cave in every 5 minutes at a 1 in 30 chance. The cave ins occupy a 30 block radius by default, and will only occur under a block height of 50. See the referenced config file for other options.
git clone https://github.com/jmdevy/cavein.git
- Open
cavein/build.gradle
as a project in IntelliJ IDEA (Community Edition) IDE - In terminal run
./gradlew genIntellijRuns
- In IDE on side panel where it says "Gradle" expand the panel and double click Tasks/build/build to build the ready to serve .jar. The .jar can be found in
cavein/build/libs/cave-x.x.jar
During development, use the runClient
and runServer
configurations from the top-right dropdown to quickly run the game with the mod installed.
- Visit https://docs.minecraftforge.net/en/1.20.x/gettingstarted/
- Download MDk from https://files.minecraftforge.net/net/minecraftforge/forge/
- Delete and replace the following from the downloaded MDK
- Delete the following from this repository and copy replacements from MDK:
gradle
directorybuild.gradle
gradlew
gradlew.bat
- Set the following in
build.gradle
(tends to change from Forge version to Forge version though):version = '1.20.2-1.1.1'
(the ending version scheme is major.minor.patch)group = 'jmdevy'
-
base { archivesName = 'cavein' }
java.toolchain.languageVersion = JavaLanguageVersion.of(17)
- In
mincraft{
setmappings channel: 'offcial', version: '1.20.2'
- In
client{
setmod_id
to'${mod_id}'
- In
server{
setmod_id
to'${mod_id}'
- In
gameTestServer{
setmod_id
to'${mod_id}'
- In
data{
andargs
setmod_id
to'${mod_id}'
- In
dependencies
andminecraft
set${minecraft_version}
to1.20.2
- In
dependencies
andminecraft
set${forge_version}
to48.0.30
(whatever Forge version updating to) - In
attributes([
set the following'Specification-Title' : "cavein"
"Specification-Vendor" : "jmdevy"
"Implementation-Vendor" : "jmdevy"
- Remove
tasks.named('processResources', ProcessResources).configure
block of code
- Set the following in
src/main/resources/META-INF/mods.toml
- Set
loaderVersion="[48,)"
(or whatever the latest major version of Forge is) - Set
versionRange="[48,)"
in[[dependencies.cavein]]
- Set
versionRange="[1.20.2,)"
in[[dependencies.cavein]]
- Set
- Delete the following from this repository and copy replacements from MDK: