
Shulker box duplication
A-T-D opened this issue ยท 0 comments
Information
Minecraft version: 1.21.6
Modloader: Fabric
Fabric loader version: 0.16.14
Environment: Multiplayer
Mod name: Quick-Right-Click
Mod version: 1.7
Description
There is a shulker chest duplication glitch.
Steps:
- You open up a shulker box using quick right click.
- Your friend breaks it
- You get your original filled shulker back and one empty same coloured shulker box
Alternative steps (Could work in singleplayer too, but untested):
- You open up a shulker box using quick right click.
- You have a observer detect the shulker above you which triggers a piston (Destroying the shulker)
- You get your original filled shulker back and one empty same coloured shulker box
Reason:
Looking at the code i might have figured out the reason, it is because the player will still have a shulker box (al be it empty) in their inventory. Where as with ender chests it directly opens the ender chest without placing an entity in the world. Since the world entity is broken you get back an extra item considering that the empty shulker box is still in your inventory.
Potential fixes:
- Remove the shulker box from inventory (But might cause issues when you DC having a shulker box open)
- Remove the entity spawning of the shulker box that you are opening
Crash report
- Not available
If available.