Jules-CantTouchThis icon

CantTouchThis

Ban items and everything in their crafting chain. Prevents consumption, crafting, building, and station usage. Great for challenge runs!

Last updated 12 hours ago
Total downloads 2
Total rating 0 
Categories Crafting Server-side Client-side Mistlands Update Hildir's Request Update Ashlands Update Bog Witch Update
Dependency string Jules-CantTouchThis-0.0.1
Dependants 0 other packages depend on this package

This mod requires the following mods to function

denikson-BepInExPack_Valheim-5.4.2333 icon
denikson-BepInExPack_Valheim

BepInEx pack for Valheim. Preconfigured with the correct entry point for mods and preferred defaults for the community.

Preferred version: 5.4.2333
ValheimModding-Jotunn-2.28.0 icon
ValheimModding-Jotunn

Jötunn (/ˈjɔːtʊn/, 'giant'), the Valheim Library was created with the goal of making the lives of mod developers easier. It enables you to create mods for Valheim using an abstracted API so you can focus on the actual content creation.

Preferred version: 2.28.0

README

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!