Valheim
Install

Details

Last Updated
First Uploaded
Downloads
139
Likes
0
Size
128KB
Dependency string
Jules-CantTouchThis-0.0.1
Dependants
ADDatHost Valheim hosting
30% off!

CantTouchThis

Do you want to do a challenge run but can't stop using and consuming the things you are not allowed to for the love of it? Do your friends keep chugging honey like there is no tomorrow? Or build beehives all over your carefully curated village? Then this is the mod for you. CantTouchThis lets you ban specific items and everything derived from them. The mod will trace the entire crafting chain, so banning honey means no mead, no honey-based recipes, and no buildings that require honey. Sorry, Gwen.

Installation (manual)

Drop the dll into your BepInEx\plugin folder and begin to stop touching. For config sync the mod needs to be installed on the server. If it is installed on the server, every client must have it installed, too.

Features

  • Consumption blocking - Prevents eating or drinking forbidden items. Players get a message if they try.
  • Crafting blocking - Forbidden items cannot be crafted. The craft button simply won't work and players get a message about it.
  • Building blocking - Pieces that require forbidden materials cannot be placed and a message is displayed.
  • Crafting chain resolution - Banning an item automatically bans everything derived from it. Ban honey and anything that uses honey as an ingredient - or an ingredient of an ingredient - is also forbidden.
  • UI hiding (optional) - Forbidden recipes and build pieces can be hidden from the UI entirely so players aren't teased by things they can't have.
  • Server-synced config - The forbidden items list is admin-only and syncs from the server. No cheating by editing local configs.
  • Runtime updates - Change the forbidden items list at any time. No restart required. Same goes for the UI option (you do need to re-equip tools though).
  • Localized rejection messages - Players receive a random message when they try to interact with forbidden items. Supports custom translations.

Configuration

Found in BepInEx/config/de.sirskunkalot.CantTouchThis.cfg after starting the game with this mod for the first time. Edit directly or use a Config Manager to do so.

Setting Default Server Synced Description
Forbidden Items (empty) Yes (Admin only) Comma-separated list of item names to ban. Uses internal item names (e.g. $item_honey, $item_queenbee). Banning an item also bans everything in its crafting chain.
Hide Forbidden Items in UI false No (Client side) When enabled, forbidden recipes and build pieces are removed from the crafting and building menus entirely.

Example configs

Ban honey and everything derived from it:

Forbidden Items = $item_honey

Ban multiple items:

Forbidden Items = $item_honey, $item_queenbee, $item_bloodpudding

Item list

You can find a list of internal item names and their English translations at the Jötunn Data Dump.

Localized messages

To add rejection messages in other languages, create a Jötunn translation file with keys message1 through message14. Use {item_name} as a placeholder for the item name. See the Jötunn documentation for details.

Changelog

v0.0.1

Initial Release

Known issues

  • Items already in a player's inventory when the forbidden list changes are not removed. They simply become unusable.

Credits

Mod created by Jules

Made with Löve and Jötunn

Source at github - all contributions welcome!

Thunderstore development is made possible with ads. Please consider making an exception to your adblock.