Go to file
2024-10-20 20:33:24 +02:00
gradle/wrapper Init 2024-05-05 11:12:48 +02:00
src/main feat: add readme and add 3 commands for pen test regex 2024-10-20 20:33:24 +02:00
.gitignore feat: add match & list command to test in game regex result + fix: now the hopper will not stop at the first mismatch, it will test all items inside a container 2024-10-16 00:12:49 +02:00
build.gradle Init 2024-05-05 11:12:48 +02:00
gradle.properties Update 2024-08-14 18:37:34 +02:00
gradlew Init 2024-05-05 11:12:48 +02:00
gradlew.bat Init 2024-05-05 11:12:48 +02:00
LICENSE Init 2024-05-05 11:12:48 +02:00
README.md feat: add readme and add 3 commands for pen test regex 2024-10-20 20:33:24 +02:00
settings.gradle Init 2024-05-05 11:12:48 +02:00

RegexingHoppers

RegexingHoppers is a Minecraft mod that enhances the functionality of hoppers by allowing the use of regular expressions (regex) to filter items passing through them. This mod adds a new layer of customization and control to item sorting and transportation systems in Minecraft.

Features

  • Use custom names for hoppers as regex patterns to filter items
  • Three new commands for testing and managing regex patterns
  • Configurable permission levels for commands

Installation

  1. Make sure you have Fabric Loader installed
  2. Download the latest version of RegexingHoppers from the releases page
  3. Place the downloaded .jar file in your Minecraft mods folder
  4. Launch Minecraft with the Fabric profile

Usage

Regex Filtering

To use regex filtering on a hopper:

  1. Rename the hopper using an anvil with your desired regex pattern
  2. Place the renamed hopper in your item system
  3. Items matching the regex pattern will be allowed through, while others will be filtered out

Commands

RegexingHoppers adds the following commands:

  1. /regexhoppers test <regex>: Test a regex pattern against all item names
  2. /regexhoppers list <regex>: List all items matching the given regex pattern
  3. /regexhoppers hand: Display the name of the item in your main hand

By default, all players can use these commands. You can adjust the permission levels in the configuration file.

Configuration

The mod includes a configuration file (regexhoppers.json) located in the config folder. You can adjust the permission levels required for each command:

{
  "permissions": [
    {
      "name": "regexhoppers.command.test",
      "level": 0
    },
    {
      "name": "regexhoppers.command.list",
      "level": 0
    },
    {
      "name": "regexhoppers.command.hand",
      "level": 0
    }
  ]
}

Adjust the level value for each command to set the required permission level. A level of 0 allows all players to use the command.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Support

If you encounter any issues or have any questions, please open an issue on our GitHub repository.

Happy filtering!