
"Cool, more storage options"
Description
Shulkers In Bundles is a small but multi-loader and always up-to-date QoL mod that makes bundles just a tiny bit more useful late-game by allowing to put up to 16 shulkers in a single bundle.
Drawbacks
To prevent infinite storage in a single slot, using the mod to perhaps chunk-ban people, or even just overloading servers or your own singleplayer worlds, the mod disables some things.
- You can no longer put Bundles in Shulkers
- Except if they're empty
- You can no longer put Bundles in Bundles
- Except if they're empty
Open API
For a little bit of customization without us struggling to create configs for each loader for so many versions, Shulkers In Bundles exposes a supported API which you can mixin into and change how many shulkers you want to be able to put in a single bundle.
Mixin Code Example;
package xyz.yourmod.mixin; //doesn't matter what your package is named
import net.justmili.shulkersinbundles.data.ShulkerFractions;
import org.apache.commons.lang3.math.Fraction;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;
@Mixin(ShulkerFractions.class)
public class ShulkerWeightMixin {
@Inject(method = "getShulkerWeight", at = @At("HEAD"), cancellable = true)
private static void modifyShulkerWeight(CallbackInfoReturnable<Fraction> cir) {
cir.setReturnValue(Fraction.getFraction(1, 8));
// ^^^ The 2nd number is how many shulkers will fit.
// (To be exact, this for example is 1/8th of the bundle per shulker, so 8 shulkers will fit.)
// Minimum is 1, maximum is 64.
}
}
Keep in mind, if multiple mods modify the shulker weight, the last-applied (or with highest priority) mixin will be used.
FAQ: Can it work server-side without the client?
It can. The client does not need the mod although the bundle tooltip will look a little cursed without it.
FAQ: How long will it be kept updated?
Quote from Millie, team lead and maintainer of this project: "Until I'm 2 meters under"
Having issues, need to report a bug or just want to chat? Join our official community Discord server!