Nosba Posted April 12, 2017 Share Posted April 12, 2017 Hi all, I want to make an Item that cannot be moved out of the inventory, e.g. It should be impossible to put it in a chest or to drop it. Is there some events that is fired when the player tries to move an item out of the inventory? Quote Link to comment Share on other sites More sharing options...
Draco18s Posted April 12, 2017 Share Posted April 12, 2017 No. Quote Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given. Link to comment Share on other sites More sharing options...
Nosba Posted April 12, 2017 Author Share Posted April 12, 2017 is there another way to do what I need? Quote Link to comment Share on other sites More sharing options...
Draco18s Posted April 12, 2017 Share Posted April 12, 2017 No. The are at least five ways items can leave the player's inventory and I know for a fact that at least one of them is undetectable. And the other four have no event to prevent. Quote Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given. Link to comment Share on other sites More sharing options...
Nosba Posted April 13, 2017 Author Share Posted April 13, 2017 all right thanks. Quote Link to comment Share on other sites More sharing options...
Draco18s Posted April 13, 2017 Share Posted April 13, 2017 Ways to remove an item from your inventory: Dying Click-and-move in a GUI Shift-click in a GUI Q Click-and drop in a GUI Item Frame (There is no event or any other notification to any system anywhere that this occurs! The item stack is literally cloned and inserted into the frame and the original deleted (if stack-size of 1, otherwise the stack size is decremented)). Quote Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given. Link to comment Share on other sites More sharing options...
Draco18s Posted April 13, 2017 Share Posted April 13, 2017 (edited) I think you have to go up to the previous event to that one. The...PlayerInteractEvent Edit: Ah, no, you'd have to cancel the PlayerInteractEvent.EntityInteract Edited April 13, 2017 by Draco18s Quote Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given. Link to comment Share on other sites More sharing options...
Nosba Posted April 13, 2017 Author Share Posted April 13, 2017 3 hours ago, Draco18s said: I think you have to go up to the previous event to that one. The...PlayerInteractEvent Edit: Ah, no, you'd have to cancel the PlayerInteractEvent.EntityInteract and is it possible? Quote Link to comment Share on other sites More sharing options...
Draco18s Posted April 13, 2017 Share Posted April 13, 2017 Let me put it this way: Everything is possible, but it might be very very complicated or hackish. Quote Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given. Link to comment Share on other sites More sharing options...
Recommended Posts
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.