Skip to content

A lightweight utility for replacing one block with another, both during worldgen and afterward.

License

Notifications You must be signed in to change notification settings

evanbones/Reliable-Replacer

Repository files navigation

Reliable Replacer

forge fabric neoforge

A lightweight utility for replacing one block with another, both during worldgen and afterward. This mod allows modpack creators to effortlessly ban items or restrict their usage using standard JSON files, without the need for complex scripts.

What About Block Swap?

I'm glad you asked! I made Reliable Replacer because of some of my personal frustrations with Block Swap. Here are some reasons to consider switching!

Why Reliable Replacer?
  • Reliable Replacer is frequently updated and supports the latest versions, while as of the time of writing this, Block Swap is stuck on 1.20.1.
  • Live config reloading! Run /reload and see your changes instantly take place.
  • Reliable Replacer is fully server-side, so it's compatible with Vanilla clients!
  • Advanced filtering:
    • Filter swaps by biome, dimensions, coordinates, or structure!
    • Toggle retrogen on or off per rule.
    • Toggle player placement replacing per rule.
    • Filter swaps by specific Block State Properties (e.g., lit=true, half=upper).
    • Only replace a block if its neighbors (up, down, etc.) match a specific ID.
    • Define a percentage chance for a rule to trigger.
  • Much more flexible configuration, supporting simple JSON configuration in user-defined folders and integrating with Cloth Config.
  • Per-rule toggleable persistence:
    • Decide if replacement blocks should inherit the properties of the old block.
  • Doesn't require any external libraries.

Migrating From Block Swap

Making the switch is easy! Reliable Replacer supports a legacy format designed to work exactly like Block Swap's configuration.

When you first launch the game with Reliable Replacer installed, a swapper.json file will be automatically generated in your config/reliable_replacer folder. This file uses a simple key-value pair format identical to Block Swap.

To migrate, simply copy the "swapper" block from your old configuration into this file:

{
  "swapper": {
    "oreganized:lead_door": "supplementaries:netherite_door",
    "farmersdelight:rope": "supplementaries:rope",
    "minecraft:dirt": "minecraft:stone",
    ...
  }
}

Note: Rules defined in swapper.json automatically inherit default settings, which are in full parity with Block Swap (retrogen enabled, replace on player placement, etc.). For more advanced control, use the standard rule format.

Features

A full feature list is available on the Modded Minecraft Wiki.

For information and examples on how to use the mod, please also refer to the wiki.

Quick-Start Example

Create a file called my_replacement.json, or whatever else you'd like, in config\reliable_replacer:

[
  {
    "inputs": [
      "minecraft:dirt"
    ],
    "output": "minecraft:diamond_block",
    "biomes": [
      "minecraft:plains"
    ],
    "min_y": "-30",
    "max_y": "64",
    "player_blocks": true,
    "keep_nbt": true
  },
  {
    "inputs": [
      "minecraft:stone"
    ],
    "output": "minecraft:gold_ore"
  }
]

License

Code license (MIT)


discord-plural github-plural

About

A lightweight utility for replacing one block with another, both during worldgen and afterward.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages