Stackable Shulkers Fix

Stackable Shulkers Fix

Mod

Fixes issues with stackable shulker boxes in Carpet on 1.20.5+

Server Game MechanicsStorageUtility

2,497 downloads
14 followers
Follow Save
90% of ad revenue goes to creators. Go ad-free while supporting creators with Modrinth Plus. Subscribe today!

Stackable shulkers fix

A simple addon to the Carpet mod that fixes the 1.20.5+ behaviour of stacked shulker boxes to be the same as in older versions, as well as some optional features.

Features

NOTE
Features marked as intrusive are modifying the standard behaviour in their default state. This is done to maintain compatibility with older versions of the mod.

Fixed hopper transfers

Prevents hoppers from stacking shulker boxes, even if the max count is >1.
Setting this rule to false enables the functionality of this mod by preventing shulkers from being stacked by hoppers.

  • Name: hopperShulkerStacking
  • Type: boolean
  • Default: false
  • Categories: shulkerfix, bugfix, intrusive
  • Since: 1.5

Fixed comparator output

Changes how stacked shulker boxes affect comparator output:

  1. true: Shulkers have signal strength of unstackable items, allowing output up to 897 (AKA OSS/HSS);
  2. false: Shulkers have signal strength of stackable items, reaching 15 when all slots are full (hoppers won't be able to fill over SS1);
  3. capped: Shulkers have signal strength of unstackable items, but the resulting output is capped at 15. This implementation preserves overstacked item filters.
  4. normalized: Any amount of shulkers in a slot is counted as a single unstackable item. This limits the output to signal strength 15 and patches overstacked item filters.
  • Name: overstackedShulkerSignalStrength
  • Type: string
  • Default: true
  • Options: true, false, capped, normalized
  • Categories: shulkerfix, bugfix, intrusive
  • Since: 1.7.1

Legacy shulker item merging

Reintroduces the logic for merging shulker box items before 1.20.5. The implementation allows partial item merging (normally the game doesn't merge item stacks if the total amount is more than the max size) and resets the entity age, allowing faster merging. (Both were bugs in Carpet, but no one complained, so now we're reintroducing the bugs huh)

  • Name: legacyShulkerItemMerging
  • Type: boolean
  • Default: false
  • Categories: shulkerfix, experimental
  • Since: 1.6

Hopper collection

Makes hoppers pick up one shulker at a time from an entity stack. Note that this has a risk of breaking contraptions.

  • Name: hopperCollectSingleShulkers
  • Type: boolean
  • Default: false
  • Categories: shulkerfix, feature, experimental
  • Since: 1.5

Hopper minecart collection

Makes minecarts pick up one shulker at a time from an entity stack. Note that this has a risk of breaking contraptions.

  • Name: minecartCollectSingleShulkers
  • Type: boolean
  • Default: false
  • Categories: shulkerfix, feature, experimental
  • Since: 1.5

Minecart slowdown

Disables the additional slowdown caused by overstacked minecarts. The implementation makes shulker boxes count as 64-stackable when calculating the minecart slowdown. However if overstackedShulkerSignalStrength is enabled, reading the fill level will still output the overstacked value.
Setting this rule to false enables the functionality of this mod by removing the additional slowdown.

  • Name: overstackedMinecartSlowdown
  • Type: boolean
  • Default: true
  • Categories: shulkerfix, feature, experimental
  • Since: 1.5

Client count fix

Fixes Carpet issue #1899, where vanilla clients see stacked shulker boxes as single items inside containers.

  • Name: clientShulkerSync
  • Type: boolean
  • Default: false
  • Categories: shulkerfix, bugfix, experimental
  • Since: 1.4

Project members

KikuGie

Member

Details

Licensed MIT
Published 7 months ago
Updated 2 days ago