Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

[1.7.2]Hooking event moving item from inventory to inventory

Recommended Posts

For example,

Players can't move apples(or other items) from their inventory to any kind of inventory except wooden chest.

For this, I think hooking the event is needed. However the event is hard to find...


Link to post
Share on other sites

since im fan of asm, I would hook the on click method and do some checks, however I bet its not the most optimal / easy way. maybe a tickhandler with side client and type player would also work(also I bet its the best way)

Link to post
Share on other sites

As just about every IInventory handles its own drop event, that may be hard to hook. you'd have to hook every other inventory slot handler in the game. Maybe you can accomplish what you want another way.

Link to post
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.

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.

  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.