Jump to content

[1.7.10]Preventing moving of an item that has a custom inv.


Mecblader

Recommended Posts

Hello, I have made an item that has its own custom inventory. I have everything working fine, but I would like to prevent the player from moving or removing the item from their inventory because of saving problems. All help is appreciated, Thank You!

Don't be afraid to ask question when modding, there are no stupid question! Unless you don't know java then all your questions are stupid!

Link to comment
Share on other sites

I did that but I still have a problem with the player hitting the number keys to move the item from the slot on the hot bar to the inv.

Don't be afraid to ask question when modding, there are no stupid question! Unless you don't know java then all your questions are stupid!

Link to comment
Share on other sites

Can someone help, I still have a bug. I have it working now almost perfectly, but I have a problem with the player being able to move the item while it is being used. I made the change that diesieben07 suggested and it mostly worked, but if the player hovers over a vacant slot in their inventory and presses the number keys, 1-9, then the slot can be removed from the hot bar and into the inventory, where the player is able to move it freely, which may cause issues with saving.

Don't be afraid to ask question when modding, there are no stupid question! Unless you don't know java then all your questions are stupid!

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.



×
×
  • Create New...

Important Information

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