Ammo Count by aedenthorn Fixed
Fixed version of Original mod by aedenthorn. Fixed by sleepack. Shows ammo count, icon, and optionally ammo name for projectile weapons in the hotbar.
About this mod Author’s original text
Introduction
Original mod developed by aedenthorn
Fix for 1.0 by sleepack.
Description
This mod adds ammo information to hotbar slots with projectile weapons, showing the ammo count of the currently equipped ammo (or default if none equipped).
By default it shows the ammo icon in the top middle of the slot, and the ammo count in the top right of the slot.
Features
You can change the position and font variables in the config.
The ammo text string accepts {ammo} and {name} variables, to show either or both.
Config
A config file BepInEx/config/aedenthorn.AmmoCount.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 or in-game using the ConfigurationManager or Config Manager.
Installation
- Automated
- Suggested to Mod Manager.
- Manual
- Copy the AmmoCount.dll to your /Valheim/BepInEx/plugins directory
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.
Source Code
Original -
Fixed -
Change Log
v0.5.1
- Fix release package
v0.5.0
- Fix for 1.0
v0.4.0
- Fix for update
v0.3.0
- Fix for 0.217.14
v0.2.1
- Check for slot out of bounds
v0.2.0
- Added ammo icon
v0.1.3
- Added ability to add name
v0.1.2
- Fixed font naming
- Fix
v0.1.1
- Added id
- Tweaked setting changed trigger
- Original reupload
Install & use Install: BepInEx plugin
- The archive from playbuff is the mod itself — usually a BepInEx plugin (a .dll or a plugin folder once unzipped).
- Recommended: use a community mod manager (such as r2modman) — pick this game, import the mod, and the manager sets up BepInEx and its dependencies for you.
- Manual route: install the BepInEx loader in the game folder, then drop the unzipped .dll or plugin folder into BepInEx/plugins/.
- Launch the game — the BepInEx console logs every plugin it loads; seeing this mod in the log means it is installed.
Mods with listed dependencies need those installed too, or they will not load. Options are usually changed in-game or in the plugin's config file. In multiplayer, the host and every client need the same mods installed.