No idea how to fix this properly

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

juggarnost

Member
Apr 30, 2019
1
0
0
29
Category: Dupe glitch

Suggested name: DSU fix

Spigot/Skript Version: skript 2.0.2

What I want:
If a deep storage unit's (DSU) inventory is opened, then the DSU is destroyed either by another player or a "block breaker" the DSU will maintain its inventory as a dropped item, but the player who has opened the inventory will remain in the inventory. That player then can take out the items from the inventory they are still in without removing them from the physical DSU.

I would like for when the DSU be broken by either a player or a block breaking item, any player nearby will have their inventory closed. That seems like it would be the easiest fix, but i could be wrong.


Ideas for commands:
i was thinking something along the lines of

on mine of deep storage unit
close the players inventory
"then something about within like 20 blocks"


When I'd like it by: no real rush, just whenever someone has some spare time