ModsFinder

Reflection

by Loedje

Reflection adds a jr command that lets server operators call Java reflection from Minecraft commands, for players who want to script changes to the game's own classes.

FabricServer-side onlyGNU Lesser General Public License v3.0 onlyOpen source1.20.1

What it does

The jr command exposes subcommands for entity manipulation, method invocation, dynamic object creation, type casting, field extraction, and command execution with dynamic key replacement. Values can be stored as int, long, string, boolean, float or double under user-defined keys, and a set of preset keys holds rounded numbers.

Reflection is a Fabric mod for Minecraft 1.20.1, so the Fabric loader is required. It is server-side only, so players join without installing it, and the server is the only side that runs the commands. Files are released under the GNU Lesser General Public License v3.0 only, and the source code and issue tracker are public.

The author notes that incorrect use can destabilize a world, so saves should be backed up before experiments. The mod is the work of Loedje and was first published on 2023-08-12, with the latest Fabric file, 1.0.2, dated 2023-09-05.

Key features

  1. Entity manipulation

    Entities can be selected by dimension and scoreboard objective, and positioned with 3D vectors taken from a source.

  2. Method invocation

    The method subcommand calls methods from the game's classes and stores the outcome in a key.

  3. Dynamic object creation

    The new subcommand creates objects with custom attributes, and the cast command changes an object's type at runtime.

  4. Field extraction

    The field command reads a specific field of an object, and set, change and get subcommands update or read its value.

  5. Primitive data storage

    Values of type int, long, string, boolean, float and double are stored under keys, with preset boolean keys set to true or false.

Compatibility

Latest build for each game version and loader.

1.20.11.0.2
ReleaseBetaAlphaNot available

Only full game releases are shown. This mod publishes no snapshot builds.

Use cases

Server experiments

Server owners can test how commands interact with game mechanics before using them in a shared world.

Custom command chains

Run subcommands with key replacement can chain regular commands whose arguments depend on stored values.

Who it’s for: Server owners and command builders who are comfortable with Java concepts and want low-level access to game classes through commands.

Questions

Does Reflection need to be installed on players' clients?

No. Players join without it, since only the server has to run the mod.

Which loader does Reflection require?

Reflection is published for Fabric only, and the latest Fabric file is 1.0.2 for 1.20.1. The Fabric loader must be installed on the server.

Can incorrect commands damage a world?

Yes. The author warns that incorrect use can cause unintended consequences and instability, so saves should be backed up before any test runs.

In the catalog

Reflection is one of 29,952 Game mechanics mods on ModsFinder, and one of 19,630 Game mechanics mods for Fabric. 34,764 mods support Minecraft 1.20.1.

More from Loedje

All projects

Similar mods

What the author says

Dive into a new dimension of Minecraft gameplay with the Minecraft Reflection mod. This mod introduces a powerful toolset that enables you to manipulate the game's mechanics using custom commands, all powered by Java reflection. Features: - /jr Command: Access the mod's functionality through the /jr command, opening…
Loedje, on the Modrinth page

Official listing

Owner
Loedje
Published
2023-08-12
Updated on Modrinth
2023-09-05
Facts verified
2026-10-15

Tags