Skip to content

MoRanpcy/quickshulker

Repository files navigation

Quick Shulker

English | 中文

Quickly open a held shulker box with the press of a key!

This project updates kyrptonaught's QuickShulker mod to higher Minecraft versions,and fixes something.


Latest Release

Fabric:

Click the links below to download.

1.21.x
26.x

If you need 1.20.2 ~ 1.20.6, click here (password: 1ipd). They are no longer maintained and have several issues.

NeoForge:

26.x

Beta

Fabric:

1.21.6-1.21.8

Features

Quick Open Item

Use a hotkey (default: k) or right-click to quickly open the screen of an item held in your hand or stored in your inventory.

Supported Items
Crafting Table
Stonecutter
Shulker Box
Ender Chest
Anvil
Bundle

On Fabric, you can disable the bundle on the server side to allow clients without mod to join.

Quick Container Actions

  • Drag a container item and right‑click another item to store that item into the container; you can also right‑click the container with an item.
  • Drag a container item and right‑click an empty slot in your inventory to extract items from the container.
  • Drag a container item and hold the right mouse button to batch‑store or batch‑extract items.

Config Menu

A config menu is provided so you can easily enable or disable certain features. You can open it via Mod Menu, but it is not required – you can also use a configurable hotkey (default: numpad+).

API

The original author provides an API that allows items from your own mod to also support Quick Open Item and Quick Container Actions.

You need to implement RegisterQuickShulker and register your mod in registerProviders(). Here is an example for version 26.2:

  • Register Quick Open Item for your mod.

    Click to expand
    import net.kyrptonaught.quickshulker.api.RegisterQuickShulker;
    
    public class YourClass implements RegisterQuickShulker {
        @Override
        public void registerProviders() {
            if (...) // You can add conditions to enable/disable here
                new QuickOpenableRegistry.Builder()
                    .setItem(YourBlockOrItem.class) // Required
                    .ignoreSingleStackCheck(true)  // Optional. Set whether the item can be opened even when stacked (like Crafting Table or Anvil). Default is false.
                    .setOpenAction((player, stack) -> player.openMenu(new SimpleMenuProvider((i, playerInventory, player) -> 
                            new YourItemMenu(...), YourMenuTitle))) // Required
                    .register();
        }
    }
  • Register Quick Container Actions for your mod.

    Click to expand
    import net.kyrptonaught.quickshulker.api.RegisterQuickShulker;
    
    public class YourClass implements RegisterQuickShulker {
        @Override
        public void registerProviders() {
            new QuickOpenableRegistry.Builder()
                .setItem(YourBlockOrItem.class) // Required
                .supportsBundleing(true) // Required. Default is false.
                .getBundleInv((player, stack) -> new YourItemContainer()) // Required
                .register();
        }
    }

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages