Skip to content

Repository files navigation

Dimension and Elytra Control

A lightweight, server-side NeoForge mod that lets administrators control access to the End, access to the Nether, and Minecraft's standard fall-flying mechanic with persistent game rules.

Русская версия

Downloads

GitHub Releases contain source-code archives only. Compiled JAR files are distributed through Modrinth and CurseForge.

All restrictions are disabled by default. Installing the mod does not block anything until an administrator explicitly enables a game rule.

Requirements

  • Minecraft Java Edition 1.21.1
  • NeoForge 21.1.x
  • Java 21

The mod is installed on the dedicated server only. Clients do not need this mod, and the project contains no client classes, screens, rendering resources, or custom network payloads.

Features

  • Blocks travel by any entity to minecraft:the_end.
  • Blocks travel by any entity to minecraft:the_nether.
  • Blocks the standard Minecraft fall-flying state without deleting, unequipping, damaging, or identifying specific elytra items.
  • Changes take effect immediately and persist with the world.
  • Server operators are subject to the same restrictions as other players.
  • Portals and dimensions remain intact and are usable again as soon as their game rule is disabled.

Game rules

Game ruleDefaultDescription
disableEndfalseBlocks travel to the End
disableElytraFlightfalseBlocks vanilla fall-flying mechanics
disableNetherfalseBlocks travel to the Nether

All three rules default to false, including when the mod is first added to an existing world, so the mod initially restricts nothing.

Commands

Enable the End restriction:

/gamerule disableEnd true

Allow travel to the End:

/gamerule disableEnd false

Disable fall flying:

/gamerule disableElytraFlight true

Allow fall flying:

/gamerule disableElytraFlight false

Disable travel to the Nether:

/gamerule disableNether true

Allow travel to the Nether:

/gamerule disableNether false

The vanilla /gamerule command requires the usual command permission level.

Installation

  1. Install a Minecraft 1.21.1 dedicated server with NeoForge 21.1.x.
  2. Stop the server.
  3. Copy dimensionelytracontrol-1.0.0.jar into the server's mods directory.
  4. Start the server and enable only the game rules you want.

Do not install the JAR on clients. There are no required dependencies other than Minecraft and NeoForge.

Building

The repository includes the Gradle Wrapper. Build with Java 21:

./gradlew build

On Windows:

.\gradlew.bat build

The installable JAR is generated at:

build/libs/dimensionelytracontrol-1.0.0.jar

Compatibility

Dimension restrictions use NeoForge's cancellable EntityTravelToDimensionEvent, so vanilla portals, commands, and modded dimension-transfer mechanisms are blocked when they use NeoForge's standard travel path. Portal blocks, frames, dimensions, and entities already inside a restricted dimension are not modified.

The elytra restriction targets the shared Minecraft fall flying state rather than an item ID. It therefore also covers modded elytras and effects, such as a cardboard elytra or Angel Wings, when they use the standard fall-flying mechanic. It does not remove items or effects.

Creative flight, mayfly, abilities.flying, jetpacks, levitation, vehicle flight, Create: Aeronautics, and other movement systems that do not use Minecraft's fall-flying state are not affected.

Keep this setting in server.properties:

allow-nether=true

This allows disableNether to control Nether access immediately without a server restart. If allow-nether=false, the vanilla server may disable the Nether independently, and the mod cannot restore access with a game-rule command alone.

License

Dimension and Elytra Control is available under the MIT License.

About

Server-side NeoForge mod for controlling End and Nether access and elytra flight through game rules.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Contributors

Languages