silversquirl / redlog

Redstone logger for Minecraft 1.16
MIT License
7 stars 1 forks source link

Redlog

Discord

Redstone event logger for Minecraft 1.16.

What does it do?

Redlog is a Fabric mod that logs events in the world to your chat. It is used through the /rlog command.

Currently supported events:

Usage

Redlog filters events based on a per-player list of rules. Whenever an event occurs, each rule in the list is checked, and the last matching rule is used. If the last match is a pass rule, the event is displayed in the player's chat. If the last match is a block rule, or no rule matches the event, it is silently discarded. Rules are managed using the /rlog command:

Rules

A rule is a boolean expression, similar to those found in most programming languages. Variables are available depending on the type of event:

In addition, a variable with a truthy value is available, named after the type of the event. If a filter uses a variable that does not exist for the event type, the filter will not match that event.

Some example filters:

/rlog pass bev
/rlog block (x > 10 || z > 7 || x <= 0 || z < -10) && y != 3
/rlog pass tic && (x = 3 || y = 7)

How do I get it?

Currently, Redlog is in the early stages of development, but if you want to test it out you can check the releases tab to download the latest build.

Alternatively, to get the very latest bugs features, you can compile it yourself. To do so, install a JDK, then clone or download the repository and run ./gradlew remapJar. The resulting JAR can be found in build/libs.