You are viewing a potentially older version of this package. View all versions.
ZetaArcade-ItemBlacklist-1.1.0 icon

ItemBlacklist

[v81] Deletes items picked up in the blacklist config

Date uploaded 3 weeks ago
Version 1.1.0
Download link ZetaArcade-ItemBlacklist-1.1.0.zip
Downloads 33
Dependency string ZetaArcade-ItemBlacklist-1.1.0

This mod requires the following mods to function

BepInEx-BepInExPack-5.4.2305 icon
BepInEx-BepInExPack

BepInEx pack for Mono Unity games. Preconfigured and ready to use.

Preferred version: 5.4.2305
Sigurd-CSync-5.0.1 icon
Sigurd-CSync

Configuration file syncing library for BepInEx.

Preferred version: 5.0.1

README

Item Blacklist

Simply destroys item that are picked up if they are found in the mod config's blacklist. Fully networked, using the host's config.
This mod exists more as a bandaid fix for modpack makers that may run into issues with some items, particularly ones that cannot be removed as easily as just "removing from the scrap pool" or from the store, such as items that drop from enemies (Like the Cartidges in SellBodies), or the Oxyde Store Items in CodeRebirth.
Please note that as of v80, you will need either DawnLib or DestroyItemInSlotFix(https://thunderstore.io/c/lethal-company/p/JacobG5/DestroyItemInSlotFix/), since my mod uses DestroyItemInSlotAndSync which broke in v80, and both of these mods fix that issue!

Known Issues

  • This mod doesn't prevent Blacklisted items from appearing, such as spawning in as scrap or being purchaseable from the store etc. as other mods handle that. It purely acts a last resort to delete the item when it is picked up.

Credits

  • LethalNetworkAPI, for simplifying the process of doing networky stuff
  • CSync, for syncing the configs to prevent clientsided cheating

CHANGELOG

1.1.1

  • Massively simplified the mod. Rather than doing networky stuff (that i seemed to break in v80), it just runs the destruction code on the client using a vanilla method (DespawnHeldObject) that is already synced. However, it uses a synced config with the host still, which should prevent any kind of client-sided abuse!!
  • Removed LethalNetworkAPI as a dependency, updated ReadMe

1.1.0

  • Rebuilt for v81
  • Now destroys items via DestroyItemInSlotAndSync, and syncs that network stuff a bit better (hopefully)
  • Added mentions in the ReadMe about what's needed for the mod to work in v80
  • Updated deps

1.0.1

  • Fixed icons staying in the HUD after the item is destroyed (hopefully!)

1.0.0

  • Initial Release