Gear Swapper has been archived. Gear Swapper will not receive any further updates unless the author decides to unarchive the project.
90% of ad revenue goes to creators. Go ad-free while supporting creators with Modrinth Plus. Subscribe today!

Gear Swapper

With Gear Swapper you can easily define up to four different sets of hotbar + armor and switch with them easily. It works in-game with a block.

By default it works as follows:

  • Sneak-left-click on one of the four slots to remember your current hotbar+armor selection in that slot. Your armor and hotbar remains on you. The block will also remember how many you had of the given item and it will attempt to restore that amount later.
  • Right-click on one of the four slots to restore the hotbar+armor as it was remembered then. All items currently in your hotbar or armor that are in the way for the remembered items will be stored in your inventory. All slots that were empty when you remembered your setup will be unchanged (i.e. it will by default not empty them).
  • When restoring a selection the block will first look in the player inventory, then in the local inventory (a 4x4 internal buffer) and finally in any possible adjacent inventories until it finds the items it needs.
  • The Bauble inventory (when present) is also supported.

However, this block can be configured for more control. If you right-click the block on the 'Settings...' label or on the sides of the block then it will show a GUI:

Gear Swapper UI

The example above shows a gui with four different configurations:

  • The top-left configuration (top row in the gui) is configured with your prefered mining gear. i.e. sword, pickaxe, torches, some sand and good armor. The slots that are crossed out (two of them in this selection) will be cleared. The other two slots are left alone (i.e. whatever is there will remain there).
  • The top-right configuration (second row in the gui) is configured for gardening. No armor is desired here.
  • The bottom-left configuration (third row in the gui) is configured for tech work.
  • The bottom-right configuration (last row in the gui) is configured to clear the hotbar and armor slots completely.

The three icons on the top-left of the gui show the preference for storing items from your hotbar and armor when you restore a different selection. The default settings are to first store items back in the players inventory. If that is full it will go to the internal inventory and if that also fails it will store it in an adjacent inventory. If that final fallback would also fail it will simply throw the items in the world. Nothing will be lost.

By clicking those three icons you can change the priority. For example. If you prefer that armor and tools that are stored away should go to the internal inventory then you can change the top icon until it resembles the wooden icon with the four boxes on it.

There are five different gear swappers (stone, wood, lapis lazuli, iron, and glass) and you can also configure another one with a modded texture through the config.

Modpacks

Feel free to use this in any modpack.

Demonstration video


Project members

McJty

Owner

Details

Licensed MIT
Published 2 years ago
Updated 2 years ago