HomeJavaModsDimension Locker
Dimension Locker
ModsJava

Dimension Locker

by AmogusAzul · on Modrinth

lets you disable any dimension (Compatible with other mods, Nether & End by default). Exceptions can be granted through custom items.

Which build do you need?

This mod ships a separate file for every mod loader and every version of the game. Pick both, then download — the wrong build installs fine and then does nothing in the game.

Mod loader

Minecraft version

⬇ Download for 1.21.3–1.21.4 · Forge⬇ Download for 1.21.3–1.21.4 · NeoForge⬇ Download for 1.21.3 · Quilt⬇ Download for 1.19.2 · Quilt⬇ Download for 1.21.3 · Fabric
I don't know my version or loader
Open the Minecraft launcher and look at the profile you play on — it names both, like fabric-loader-1.21.4. The version also shows in the bottom-right corner of the game's main menu.
No loader in the profile name? Then it's plain Minecraft, and these mods won't run — you need Fabric or NeoForge installed first.
Dimension Locker — screenshot 1Dimension Locker — screenshot 2

Dimension Locker


Description

This mod lets you disable any dimension (Compatible with other mods). Exceptions can be granted through custom items to let players enter locked dimension. It introduces new commands, a gamerule, and custom data components to enhance the player interactions with the permits.

Features

  1. Locked portals

    Whenever any entity is about to be teleported (by a portal) to a locked dimension, it would being pushed instead, also get a feedback message with the dimension's name.

    player-getting-rejected-nether

    player-getting-rejected-end-pov


  2. Compatibility

    This mod is available in

    • Forge
    • NeoForge
    • Fabric
    • Quilt

    Works out of the box with any other mod that adds dimensions, however you still need some language compatibility. you will need a resource pack to add a language key, dimension.<mod_id>.<dimension_name>

    in the case of the nether dimension the mod has "dimension.minecraft.the_nether": "The Nether",


  3. Data Components

    Here are a couple of Data Components added by the mod that are recommended to use all together, but can be used separately if desired.

    • dimension:
      whenever an entity has a item with the dimension data component, no matter if the dimension is trying to enter is locked, it will enter as long as the component's dimension matches the one trying to enter.

      Example:
      /give @s minecraft:ender_eye[dimension_locker:dimension="minecraft:the_end"]

    • cant_enter_ender_chest:

      Doesn't let the item inside the ender chest, nor any item containing it (shulker boxes, bundles, etc). cant-enter-ender-chest-feedback

      Example: /give @s minecraft:ender_eye[dimension_locker:cant_enter_ender_chest={}]

    • un_despawnable:

      Quite simple, prevents the item from despawning after the standard 5 minutes, can be paired with the damage_resistant data component to make undestructible items.

      Example: /give @s minecraft:ender_eye[dimension_locker:un_despawnable={}]


  4. Commands

    You don't have to reboot your server to lock a dimension, an admin can use one of these commands, and it the dimension would be locked/unlocked right away.

    • Lock Command: /dimension lock <dimension>
    • Unlock Command: /dimension unlock <dimension>
    • Check Command: /dimension isLocked <dimension>
      Operators can check the locked status of a dimension.

  5. New Gamerule

    operatorCanEnterLockedDimension: A gamerule that determines whether operators can bypass locked dimensions. Set to true by default.


Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more