Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kir-antipov/shifty-hotbar
Hotbar can be whatever I want.
https://github.com/kir-antipov/shifty-hotbar
fabric minecraft minecraft-mod
Last synced: 4 days ago
JSON representation
Hotbar can be whatever I want.
- Host: GitHub
- URL: https://github.com/kir-antipov/shifty-hotbar
- Owner: Kir-Antipov
- License: mit
- Created: 2022-06-13T14:13:10.000Z (over 2 years ago)
- Default Branch: 1.20.x/stable
- Last Pushed: 2023-12-17T03:03:05.000Z (11 months ago)
- Last Synced: 2023-12-18T03:38:33.163Z (11 months ago)
- Topics: fabric, minecraft, minecraft-mod
- Language: Java
- Homepage:
- Size: 1000 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
![Logo](media/logo.png)
# Shifty Hotbar
[![GitHub Build Status](https://img.shields.io/github/actions/workflow/status/Kir-Antipov/shifty-hotbar/build-artifacts.yml?style=flat&logo=github&cacheSeconds=3600)](https://github.com/Kir-Antipov/shifty-hotbar/actions/workflows/build-artifacts.yml)
[![Version](https://img.shields.io/github/v/release/Kir-Antipov/shifty-hotbar?sort=date&style=flat&label=version&cacheSeconds=3600)](https://github.com/Kir-Antipov/shifty-hotbar/releases/latest)
[![Modrinth](https://img.shields.io/badge/dynamic/json?color=00AF5C&label=Modrinth&query=title&url=https://api.modrinth.com/v2/project/shifty-hotbar&style=flat&cacheSeconds=3600&logo=modrinth)](https://modrinth.com/mod/shifty-hotbar)
[![CurseForge](https://img.shields.io/badge/dynamic/json?color=F16436&label=CurseForge&query=title&url=https://api.cfwidget.com/633518&cacheSeconds=3600&logo=curseforge)](https://www.curseforge.com/minecraft/mc-mods/shifty-hotbar)
[![License](https://img.shields.io/github/license/Kir-Antipov/shifty-hotbar?style=flat&cacheSeconds=36000)](https://github.com/Kir-Antipov/shifty-hotbar/blob/HEAD/LICENSE.md)A fully client-side utility mod that implements the hotbar shifting ability, inspired by Stardew Valley.
I know that there are mods like this in the wild, but none of them did suit me whatsoever. Therefore, I made the ultimate version that consists of every feature a mod like this can possibly provide:
- You can shift inventory rows in **both** directions *(`Up Arrow` and `Down Arrow` by default)*
- You can shift inventory columns in **both** directions *(`Right Arrow` and `Left Arrow` by default)*
- You can shift slots in your hotbar in **both** directions
- You can shift slots in the selected column in **both** directions
- You can shift rows, columns and slots via **mouse scroll** while pressing a `modifier` key *(`Left Alt` by default)*
- You can quickly shift to a row, a column, or a slot via hotbar hotkeys (`1...9`) while pressing a `modifier` key *(`Left Alt` by default)*![Preview](media/preview.gif)
----
## Key Binds
Key binds can be configured just like vanilla ones:
- Go to `Options...`
- Select `Controls...`
- Then choose `Key Binds...`
- Scroll down to the `Shifty Hotbar` section| Name | Description | Default |
| ---- | ----------- | ------------- |
| `Row modifier` | When pressed, it allows you to shift rows instead of choosing a slot via mouse scroll/hotkeys (`1...9`) | `Left Alt` |
| `Previous row` | Shifts all rows in your inventory so that the topmost row in your inventory becomes the hotbar | `Down Arrow` |
| `Next row` | Shifts all rows in your inventory so that the row above your hotbar becomes the hotbar | `Up Arrow` |
| `Row-in-column modifier` | When pressed, it allows you to shift slots in the selected column instead of choosing one via mouse scroll | |
| `Previous row-in-column` | Shifts all slots in the selected column so that the topmost slot in your inventory becomes the hotbar slot | |
| `Next row-in-column` | Shifts all slots in the selected column so that the slot above your hotbar slot becomes the hotbar slot | |
| `Column modifier` | When pressed, it allows you to shift columns instead of choosing a slot via mouse scroll/hotkeys (`1...9`) | |
| `Previous column` | Shifts all columns in your inventory so that the slot before your selected slot becomes the selected slot | `Left Arrow` |
| `Next column` | Shifts all columns in your inventory so that the slot after your selected slot becomes the selected slot | `Right Arrow` |
| `Column-in-row modifier` | When pressed, it allows you to shift slots in the hotbar instead of choosing one via mouse scroll | |
| `Previous column-in-row` | Shifts all slots in your hotbar so that the slot before your selected slot becomes the selected slot | |
| `Next column-in-row` | Shifts all slots in your hotbar so that the slot after your selected slot becomes the selected slot | |----
## Config
If you have [Cloth Config](https://www.curseforge.com/minecraft/mc-mods/cloth-config) installed, you can customize the behavior of the mod. A config is usually located at `./config/shifty_hotbar.json` and by default looks like this:
```json
{
"invertRowScroll": false,
"invertColumnScroll": false
}
```| Name | Description | Default value |
| ---- | ----------- | ------------- |
| `invertRowScroll` | Inverts mouse scroll when `row` or `row-in-column` modifier is pressed | `false` |
| `invertColumnScroll` | Inverts mouse scroll when `column` or `column-in-row` modifier is pressed | `false` |You can edit any of these values directly in the config file or via [ModMenu](https://www.curseforge.com/minecraft/mc-mods/modmenu).
----
## Installation
Requirements:
- Minecraft `1.20.x`
- Fabric Loader `>=0.15.0`
- Fabric API `>=0.83.0`You can download the mod from:
- [GitHub Releases](https://github.com/Kir-Antipov/shifty-hotbar/releases/latest) (recommended)
- [Modrinth](https://modrinth.com/mod/shifty-hotbar)
- [CurseForge](https://www.curseforge.com/minecraft/mc-mods/shifty-hotbar)
- [GitHub Actions](https://github.com/Kir-Antipov/shifty-hotbar/actions/workflows/build-artifacts.yml) *(these builds may be unstable, but they represent the actual state of the development)*## Building from sources
Requirements:
- JDK `17`### Linux/MacOS
```cmd
git clone https://github.com/Kir-Antipov/shifty-hotbar.git
cd shifty-hotbarchmod +x ./gradlew
./gradlew build
cd build/libs
```
### Windows```cmd
git clone https://github.com/Kir-Antipov/shifty-hotbar.git
cd shifty-hotbargradlew build
cd build/libs
```