Chest Stacks

Chest Stacks 1.4.6

Fixed box skinning by reverting parenting changes
Improved spatial checks
Increased box stacking range
Implemented hook that allows other plugins to block box stacking (e.g: Entity limit, raid block plugins):

C#:
object CanStackBox(BasePlayer player, Item item, string prefab)
Backward compatibility for already stacked boxes using older versions of chest stacks prior to the major overhaul
Player boats are now supported for box stacking
Players can now stack different type of prefabs for component dlc boxes
Bug fixes
Performance improvements, bug fixes & code cleanup
Users should now be able to easily configure any box placement upon stacking and have the ability to allow or block which boxes can stack
I've also added all current boxes to the configuration file, two new options are now available:


JSON:
"Supported box prefab offsets": {
    "assets/prefabs/deployable/woodenbox/woodbox_deployed.prefab": {
      "x": 0.0,
      "y": 0.57,
      "z": 0.0
    },
    "assets/prefabs/deployable/large wood storage/box.wooden.large.prefab": {
      "x": 0.0,
      "y": 0.75,
      "z": 0.0
    },
    "assets/prefabs/deployable/large wood storage/skins/medieval_large_wood_box/medieval.box.wooden.large.prefab": {
      "x": 0.0,
      "y": 0.76,
      "z": 0.0
    },
    "assets/prefabs/deployable/large wood storage/skins/abyss_dlc_large_wood_box/abyss_dlc_storage_vertical/abyss_barrel_vertical.prefab": {
      "x": 0.0,
      "y": 1.2,
      "z": 0.0
    },
    "assets/prefabs/deployable/large wood storage/skins/abyss_dlc_large_wood_box/abyss_dlc_storage_horizontal/abyss_barrel_horizontal.prefab": {
      "x": 0.0,
      "y": 0.9,
      "z": 0.0
    },
    "assets/prefabs/deployable/large wood storage/skins/jungle_dlc_large_wood_box/jungle_dlc_storage_horizontal/wicker_barrel.prefab": {
      "x": 0.0,
      "y": 0.8,
      "z": 0.0
    },
    "assets/prefabs/deployable/large wood storage/skins/warhammer_dlc_large_wood_box/krieg_storage_vertical/krieg_storage_vertical.prefab": {
      "x": 0.0,
      "y": 1.25,
      "z": 0.0
    },
    "assets/prefabs/misc/decor_dlc/storagebarrel/storage_barrel_b.prefab": {
      "x": 0.0,
      "y": 1.3,
      "z": 0.0
    },
    "assets/prefabs/misc/decor_dlc/storagebarrel/storage_barrel_c.prefab": {
      "x": 0.0,
      "y": 0.9,
      "z": 0.0
    }
  },
  "Supported prefab path offsets": {
    "assets/prefabs/deployable/large wood storage/skins/component_storage_boxes_dlc": {
      "x": 0.0,
      "y": 0.76,
      "z": 0.0
    }
  }
Added medieval box support
pooling fixes
Major update, please make sure there are no stacked chests on the server when uploading this version (Best to use after a map wipe)

CopyPaste plugin is now supported
Ceiling block fixes
Re-written ground watch logic
stacked chests can now be destroyed via ent kill
Remover tool plugins can now remove stacked chests
Implemented permission stack amount based on chest type (can now set different limits for small & large boxes)
fixed tugboat stacking
  • Like
Reactions: Markies
fixed building privilege check
optimizations & code cleanup