Skip to content

Switch your currently held item for an effective item when clicking on a block.

License

Notifications You must be signed in to change notification settings

NatoBoram/switcheroo

Repository files navigation

Java CI GitHub Pages Modrinth Downloads minepkg CurseForge Downloads Planet Minecraft

Switch your currently held item for an effective item when clicking on a block.

Usage

  • Click on a block or entity to switch to the appropriate item
    • Press Sneak to prevent the switch from happening
    • Press Sprint to use the most effective item

Switcheroo will use the least effective tool that's still effective to break blocks and the most damaging item per seconds to attack entities.

Trailer GIF

Demo | Trailer | Meme

Features

  • Switcheroo when clicking blocks
  • Switcheroo when clicking mobs
    • Uses max damage per seconds for mobs
    • Uses max attack damage for players
  • Blacklist
    • Accessible via /switcheroo blacklist blocks and /switcheroo blacklist mobs
    • Compatible with ModMenu
  • Doesn't consider items when they have 5 durability or less
  • Prefer Silk Touch on certain blocks
    • /switcheroo prefer silk_touch
      • /switcheroo prefer silk_touch add dirt_path
      • /switcheroo prefer silk_touch remove dirt_path
    • The Silk Touch selection is really shaky, though. Use at your own risk.
  • Enable or disable it with /switcheroo enable and /switcheroo disable

Installation

cloth-config2 fabric modmenu

Downloads are available in Releases. You can also test development builds by downloading them form the Actions.

Contributing

Requires Java 21.

Developing

./gradlew downloadAssets genSources

On VSCode, an additional step is required.

./gradlew eclipse vscode

Building

./gradlew build