1.0.1
Compatibility
Changes
DimensionLock Mod
A Minecraft Forge mod that allows server administrators to lock dimensions to prevent players from breaking/placing blocks and attacking entities (except those in a whitelist) in locked dimensions.
Features
- Lock or unlock dimensions using commands
- Administrators (OPs) are not affected by the restrictions
- Manage a whitelist of entities that can still be attacked in locked dimensions
- Configuration is automatically saved and loaded
Commands
/dimension lock <dimension>: Locks the specified dimension/dimension unlock <dimension>: Unlocks the specified dimension/dimension list: Lists all locked dimensions/dimension entity add <entity_name>: Adds an entity to the attack whitelist/dimension entity remove <entity_name>: Removes an entity from the attack whitelist/dimension entity list: Lists all entities in the attack whitelist
Installation
Place the mod JAR file in the mods folder of your Minecraft Forge server or client.
Requirements
- Minecraft Forge for the appropriate Minecraft version
Permissions
By default, the commands require OP permission level 2
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle. To learn more about the Modrinth Maven API, click here.
Note: When available, you should use the creator's maven repo instead as it will have transitive dependency information that the Modrinth Maven API does not. You may also end up with duplicate dependencies if you use a mix of Modrinth and non-Modrinth Maven repositories for your dependencies, because the group identifier will be different when served through the Modrinth Maven API.
Maven coordinates:
Version ID:
build.gradle:
repositories {
exclusiveContent {
forRepository {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
}
}
// forRepositories(fg.repository) // Uncomment when using ForgeGradle
filter {
includeGroup "maven.modrinth"
}
}
}
// Standard Gradle dependency
dependencies {
implementation "maven.modrinth:s16CFiwK:GsVQYGsn"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:s16CFiwK:GsVQYGsn"
}

