Git Product home page Git Product logo

favorita's Introduction

Favorita

A simple Minecraft mod which allows you to favorite your slots.


Crowdin Badge

Discord Badge Ko-Fi Badge


For players

How do I use it?

The mod adds a new keybinding called "Favorite Slot" which is set to F by default.
When you press it while hovering over an item in your inventory, it will mark that slot as a favorite.
Or, if you're not in an inventory screen, it will mark the hotbar slot you currently have selected as favorited.

What does the mod block?

If the (hotbar) slot is favorited, you can't:

  • Move the item within it
  • Drop the item
  • Wipe that slot using the bin slot
  • Quick move items into or out of that slot
  • Swap an item into or out of that slot

Where will the mod block these actions?

  • In the player inventory
  • In the hotbar in any container
  • In your offhand slot
  • In your armor slots

For developers

How do I add compatibility for it with my mod?

An API is exposed via dev.deftu.favorita.api.FavoritedSlots which allows you to check if a slot is favorited.
Functions are provided to check if a slot is favorited, mark a slot as favorited, and unmark a slot as favorited. Both for the current identifier, if one is present, and for a specific identifier.

What is an "identifier"?

Identifiers are strings used to determine the current environment the player is in. The value of an identifier is a constant Singleplayer when the player is in singleplayer, and the address of their current server entry when they're playing in multiplayer.


BisectHosting


This project is licensed under LGPL-3.0
© 2024 Deftu

favorita's People

Contributors

deftu avatar

Watchers

 avatar

favorita's Issues

Broken Mixin in versions prior to 1,21

The mixin for drawing the hotbar overlay causes the game to crash on startup on versions prior to 1.21, as RenderTickCounter was only introduced in 1.21. In prior versions, it takes a float tickDelta.
On a code analysis, it seems you attempted to account for this, but accidentally typed if MC >= 1.20.1 instead of if MC >= 1.21 in the mixin, causing this issue.
https://github.com/Deftu/Favorita/blob/d19d370c4b564fb97a9c7d1932fc0ceef2e55f65/src/main/java/dev/deftu/favorita/mixins/client/Mixin_DrawHotbarOverlay.java#L67C13-L68C41

Favorita Version 0.3.0 Forge MC 1.12.2 Save not the Items then you play in Creative

Hi,
I have testet the Mod and this mod work not. I can set the lock on my Inventory Places then I have a Item on this Place but then I on the Crash can will click to clear all other thinks the Lock items was clear and ignore lock function.

What have I make:

  1. Download the mod and put in the Mod folder
  2. Start a new MC World in Creative
  3. Open the Tabs and Place items in your inventory Tab
  4. Lock now the Items
  5. Go to the Trace Can in the Creative Tab and make Shift + left click (This clear normal all Items then no Mod this blocks)
  6. See now the Clear Inventory who all Items was clear
  7. The Mod have no Items save and have in this time not Work

Please fix this Bug.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.