Valheim
0 of 0

File information

Last updated

Original upload

Created by

aedenthorn

Uploaded by

aedenthorn

Virus scan

Safe to use

Tags for this mod

About this mod

Lets you set global key or inventory item requirements for players to perform various tasks like picking up and crafting items, mining, raising skills, and teleporting.

Permissions and credits
Changelogs
Donations
This mod is simple in concept but quite powerful in its potential for role-play or inhibiting cheaters.

The mod implements lists that restrict player actions. The lists are enforced server-side by ServerSync.

Currently the mod has implemented the following requirement checks:


Item Checks

  • TeleportItemReqList - a list of items required to be in a player's inventory in order to teleport (e.g. ShieldWood)
  • MineItemReqList - a list of node:item pairs of items required to be in a player's inventory to mine a specific node type (e.g. mudpile:CryptKey,silvervein:Wishbone)


Global Key Checks

  • TeleportKeyReqList - a list of keys required to be set in order to teleport (e.g. defeated_eikthyr)
  • SkillKeyReqList - a list of skillName:key pairs where the key is required to increase the skill (e.g. Swim:defeated_eikthyr)
  • EquipKeyReqList - a list of itemName:key pairs where the key is required to equip the item (e.g. PickaxeAntler:defeated_eikthyr)
  • PickupKeyReqList - a list of itemName:key pairs where the key is required to pickup the item (e.g. PickaxeAntler:defeated_eikthyr)
  • CraftKeyReqList - a list of itemName:key pairs where the key is required to craft the item (e.g. PickaxeAntler:defeated_eikthyr)
  • LearnKeyReqList - a list of itemName:key pairs where the key is required to learn the item's recipe (e.g. PickaxeAntler:defeated_eikthyr)
  • MineKeyReqList - a list of nodeName:key pairs where the key is required to damage the node (e.g. mudpile:defeated_gdking,silvervein:defeated_bonemass)


Lists are comma-separated.

Items use the item spawn name.

Global keys are here.

Skill names are Swords, Knives, Clubs, Polearms, Spears, Blocking, Axes, Bows, FireMagic, FrostMagic, Unarmed, Pickaxes, WoodCutting, Jump, Sneak, Run, Swim.

Mining node names are idek.

I'm open to suggestions for more restrictions, it's pretty easy to implement new ones.


Config

A config file BepInEx/config/aedenthorn.RequirementCheck.cfg is created after running the game once with this mod).

You can adjust the config values by editing this file using a text editor.

To reload the config from the config file, type requirementcheck reset into the game's console (F5).

Note that this should only work on the server, since config values are enforced using ServerSync.


Technical

To install this mod, the easiest way is to just use Vortex, the Nexus Mods mod manager. It should take care of all dependencies.

To install manually, place the dll file in the BepInEx/plugins folder. You will need BepInEx.

Code is at https://github.com/aedenthorn/ValheimMods.

If you want to complain or ask for help or help me test my mods, you can visit my Discord server.

Click here for a list of all my mods for Valheim.