BentoBoxWorld / InvSwitcher

World inventory switcher. Handles health, exp, advancements, inventory, etc.
Eclipse Public License 2.0
2 stars 5 forks source link

A common inventory world. #15

Open BONNe opened 3 years ago

BONNe commented 3 years ago

Description

Is your feature request related to a problem?

On Discord I was approached by a BentoBox user who wanted a very specific feature from invswitcher.

Functionality that allows taking (or bring to) items from one world to all gamemode worlds.

Describe the solution you'd like us to implement.

I would suggest implementing: A config option:

common-inventory-world:
   world-name: ""
   take-items: true
   bring-items: false

This option would allow specifying a single common world that allows taking (or bring, or both) items through it.

For troubleshooting: 1) player items should be transferred only if there is empty space in his inventory. Otherwise, items must stay in world from which travels. 2) if both options are enabled it should allow to tunnel items through gamemode A to gamemode B by visiting the common world, but not directly from A to B.

This option should not include exp, food, health, advancements, and ender-chests.

Additional context

This is a graphical image that shows the requested functionality. bentoboxshop-01

sarhatabaot commented 2 years ago

A while back I tried figuring out a solution for this. What I came up with was modifying InvSwitcher to allow for another world per gamemode. Not an ideal solution since you need to duplicate your additional world a couple of times.