Comments (8)
Please elaborate a bit more. What do you mean by clicking a button? Like right-click equipping them?
from curios.
Please elaborate a bit more. What do you mean by clicking a button? Like right-click equipping them?
Example: I click on the 'F' button on the keyboard, it sets the item in the ring slot
from curios.
Are you speaking as a developer or as a user? As a developer, yes. As a user, no.
from curios.
I did not understand
from curios.
Are you developing a Minecraft mod using Curios as an API, or are you using Curios as a player in a Minecraft instance?
If you're a developer, then yes, there are ways to add keybinding functionality to set an item to a slot.
If you're a user/player, then no, there's no way for you to customize that sort of function.
from curios.
I'm a developer.
(I'm on another account)
from curios.
Okay, so, if you need more information:
You need to obtain an instance of the Curios handler on the player. This is accomplished using CuriosAPI.getCuriosHandler(player)
. Then you need to get the right stack handler for the slot type you're looking for, which seems to be "ring". So, you call getStackHandler("ring")
on the handler you got earlier. And then you can use setStackInSlot
like you do with any other stack handler to set the stack in the indexed slot.
The only part left after that is to wrap this logic and connect it to your keybinding, but that's basic Forge stuff that you can look up in tutorials elsewhere.
If you need more help, you can try to contact me on Discord or visit my Discord server: https://discord.gg/JWgrdwt
from curios.
Okay
from curios.
Related Issues (20)
- [Bug]: Some item disappear after using inventory sorter HOT 2
- [Bug]: Visibility toggle not appearing on all slots HOT 1
- [Bug]: Problem with a Plugin HOT 1
- [Bug]: CuriosApi.getSlotHelper() is null on client during multiplayer HOT 5
- [Bug]: Crash when rendering tooltip of some unknown item (possibly The Aether's "Gloves") as of v5.7.1 HOT 5
- [Bug]: 1.20.1 Crash in a modded environment. HOT 3
- [Bug]: Dupe items in Curious or removing inventory HOT 6
- [Bug]: Accesories disapear HOT 3
- [Bug]: Duplicate Capability Key HOT 6
- [Bug]: Pressing G closes any active GUI HOT 5
- [Bug]: Cannot Add Mod Items to Datapack for Additional Slots in 1.19.2 HOT 3
- Z-AI
- [Bug]: NeoForge PayloadRegistrar's client() method does not prevent loading of client classes on server side HOT 2
- [Bug]: Game crash with Simple hats on newest version HOT 4
- [Bug]: Game crashes when I attempt to open curios on personal modpack HOT 2
- [Bug]: Build error on fresh clone
- [Bug]: "curio" slots aren't validated as expected HOT 3
- [Bug]: Ifinity backpack (Industrial Foregoing) Not working on added slot HOT 3
- [Bug]: Copy eqipped items after respawning HOT 2
- [Bug]: "/clear"command cannot clear irons-spells-n-spellbooks mod's magic book HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from curios.