Jump to content

Event to insert item to custom capability of another item with mouse


xand3s

Recommended Posts

Hello, basically I have an item that stores custom capability and I want to make it such that if I pick up an ItemStack with my mouse (in inventory screen) I can drop it off on another item and it will go to it's inventory (like Quark's functionality of inserting items into shulker boxes).

I wonder if there is a smart way of approaching this, maybe making a custom event or maybe there is such an event already (I've looked through events but coulnd't find one with the context of player's inventory)?

I'm quite new to modding and I was looking into Quark's source code to see how it's been done but couldn't find it.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.