-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Limit items owned #8
Comments
What should happen if someone places the item in a chest? How could we handle this? |
This is something I have thought about without getting a clear idea on how to proceed. |
Why is this hopper thing such a problem? The method I want to use persists the information directly on the item and can be transfered in any way. So based on you answer I think I will provide the following options for item transfers:
One more thing that came to mind: what should happen if those items can be ingredients in recipes and crafted "away". Should this be prevented? |
On the hoppers issue, I keep thinking of it because it could be used as a workaround for players to get more items even with the plugin installed. Elytras wouldn't be the problem but, let's say the server admin wants to limit wither skeleton skulls or beacons. About the options, the second one is very interesting because that would force players to be careful about who they trust around their items. The first one I think would prevent any type of trade between players. And the last one would mean the players don't have to worry about someone else searhing through their stuff. If possible, the plugin would have configuration option to choose between option 2 and 3, but to keep it simple, I would go with option 2. On the ingredients for recipes thing, I hadn't thought of that aspect. Is there a way to check when the item is "consumed" for crafting? This would be my first option, when if the item is consumed, reduce by one the amount of owned items (and let admins think of what crafting ingredients/results they'll limit). Another way would be to prevent obtaining items through crafting if they are limited. Going back to the beacons example, let's say players have these limits: |
Main idea: To be able to limit or even disable the pickup of some items, increasing their rarity and value (example: Elytras, Ench. Apples, Beacons). This would allow server admins to reward players with rare items and make them more special.
Some idea of how it would work:
limited items:
The plugin checks if the player has previously picked up those items, and prevents them from being picked up if the limit has been reached. These checks would also need to consider inventory transfers (chests, hoppers, etc.) so players can't withdraw items past the set limit.
The amount of "owned" items goes up everytime the player picks up that item, and goes down when the item is consumed in any way (gets eaten, is dropped on death, etc.)
The limits which I haven't yet decided on how to prevent:
• Placing hoppers and storing items would let players somehow get the items even when they themselves can't pick them up.
• Legal item transfers, like trading plugins.
Possible preventions for the limits:
• Limited items won't pass through hoppers.
The text was updated successfully, but these errors were encountered: