BetterBuildMenu
Build menu search by meaning (boat finds every ship), keyboard navigation, material sections, a taller menu, carried/needed counts, HUD pins for what to gather, and cauldron food sections.BetterBuildMenu
A Valheim mod that improves the build menu (hammer, hoe, cultivator):
- Search by meaning:
boatfinds every ship,lightfinds torches and braziers. - Keyboard navigation: type, then Enter to pick the highlighted piece.
- Material sections: building pieces grouped under Wood, Stone, Black Marble and so on.
- A taller menu, with full color icons and the piece details inside it.
- Carried/needed counts on build requirements, e.g.
5/10Wood. - Pins: pin pieces to the HUD to track what to gather, and click one to build it.
- Food sections and favourites at the cauldron.
- Stacks from your inventory: right-click 50 wood to place a Wood Stack.
- Container preview: point at a chest and press F to see what's in it without opening it.
Installation
- r2modman or Thunderstore Mod Manager: install BetterBuildMenu. BepInExPack_Valheim is installed with it.
- By hand: install BepInExPack_Valheim,
then put
BetterBuildMenu.dllinBepInEx/plugins/.
Only you need it: it changes your own menus and HUD, so other players and servers don't need it installed.
The settings file appears in BepInEx/config/ after the first start; see Config below.
Search
The build menu search matches on meaning.
Searching boat finds the Karve, Raft, Longship and Drakkar. light finds torches, braziers and
lanterns, and seat finds benches, stools and thrones.
A piece matches if every word of your search is the start of a word in any of these:
-
the prefab name, split at capitals (
VikingShipgives "viking" and "ship") -
the localization token (
$ship_karve) -
the translated display name and description
-
the build category (
Misc,Furniture, ...) -
automatic terms from game data:
- the piece's usage tags, e.g. Wall, Roof, Doors, Lighting, Storage
- its comfort group, e.g. Chair, Banner, Carpet
- its build material, e.g. Stone, Marble
- a curated set of components, e.g.
Ship,Door,Bed,Fireplace,TeleportWorld
Each fact also adds built-in words, e.g. Lighting adds light, lamp, torch and lantern.
-
your synonyms (see below)
Matching word starts, not any part of a word, keeps bench from matching every piece that needs a
"workbench". Plurals work too: torches finds torch.
Everything vanilla search already matched still matches. An empty search shows the normal list.
Navigation
-
Best matches first. Results are ordered by where your search matched:
- the display name
- other names, automatic terms or synonyms
- the description
- vanilla's own matching only, e.g. a build material
Within each group the menu's normal order is kept.
-
One piece is always highlighted with a border. It's the piece Enter picks, and the details panel shows its name and build materials as if you were hovering it.
- When the menu opens it starts on the piece in your hand, or the first piece.
- A search moves it to the best match.
- Hovering a piece with the mouse moves it there. When the mouse leaves, the panel goes back to the highlighted piece.
-
The search box keeps the cursor once you've used it. It doesn't take it when the menu opens, so WASD still moves your character. Click it or press F (vanilla) to type.
- Any old search text is selected then, so typing replaces it.
- After that, if something takes focus away, such as clicking a category tab, the search box gets it back until the menu closes.
- It leaves other text boxes, popups and controllers alone.
- Turn the keeping off with
Navigation.FocusSearch.
-
An X at the end of the search box clears it. It shows while there's text.
-
A search column between the categories and the pieces holds the search box, and lists the grid's pieces by icon and name: everything in the category while the search is empty, or the results, best match first. The selected row is the highlighted piece.
- Once your search has 2 or more characters, Down / Up move through the list, and Enter builds the selected piece.
- Hovering a row selects it, left-clicking it builds it, and right-clicking it pins it.
- It shows as many rows as fit and scrolls to keep the selection in view. When the list doesn't fit, a
scrollbar like the grid's shows next to it; it and the mouse wheel scroll it too.
Below the rows it shows which pieces are in view, e.g.
1-15 of 23, orNo matches. - The hammer's repair button sits at the end of the search box, so the categories use the full height of their column.
- The menu is wider to make room, so the grid keeps its size. Turn the column off with
Search.ResultsColumnto put the search box and the repair button back above the categories.
-
Left-click outside the menu window to close it, like right-click. Clicks on pins or other UI over the game still go to them.
-
Keys work whenever the menu is open, not just after a search:
Key Action Enter Pick the highlighted piece, like clicking it Tab / Shift+Tab Next / previous piece; wraps around at the ends Down / Up Next / previous row; next / previous result once the search has 2 or more characters Right / Left Next / previous piece; stops at the ends. The text cursor in the search box stays where it is Holding a key repeats it. So F, type
torch, Enter puts a torch in your hand without the mouse. Controllers keep vanilla navigation.
Taller menu
The build menu window is 200 units taller than vanilla's, about 4 more rows of pieces. It grows
upwards, into the empty space above it. Change the amount with Menu.ExtraHeight; it's limited to the space
above the menu, and 0 restores vanilla's size. The menu keeps clear of hotbars (including other mods' extra
slots) and the status effect icons (rested and so on), and stays left of your pins; when they're in the way it
moves a little to one side if that gives it more room.
Details in the menu
While the build menu is open, the details panel (the piece's name, description and materials) sits inside the
window, below the pieces, instead of at the bottom of the screen. The window grows downwards into the space the
panel left, so the grid keeps its size. When you close the menu to place a piece, the panel is back at the
bottom as usual. Turn this off with Menu.DetailsInMenu.
Buildable category
A Buildable category sits above All and lists only the pieces you carry enough materials for, right now. It
updates while the menu is open, e.g. when you pick something up. It only checks materials, not whether a
workbench is in range. Typing a search switches to All, as with any category. Turn it off with
Menu.BuildableCategory.
Full color icons
Vanilla dims the icon of every piece you don't have the materials for. Here all icons stay full color; the details panel still shows which materials are missing.
Material sections
In the Building, Flooring, Walls, Roofing and Architecture categories, pieces are grouped by material, each group under a heading with the material's icon and name: Wood, Ashwood, Stone, Black Marble and so on. A piece's material is the resource it needs most of, or the first one listed on a tie. So Black Marble wall tiles go under Black Marble, though the game treats them as wood for structural support.
- Groups come in the order set by
Menu.SectionOrder: Wood, Stone, Black Marble, Ashwood, Grausten, then Timberwood, which also holds the Scalewood pieces. Any other groups follow in the order of their first piece in vanilla's list. Pieces keep vanilla's order within each group. - A search shows a single list ranked by best match, as before.
- Down / Up move to the closest piece in the row below / above, across headings. Tab goes through every piece in order.
- Pick the categories with
Menu.SectionTags, or leave it empty to turn sections off.
Food sections
At the cauldron (and any other station that cooks food), the Craft tab's list is split into sections by the stat each dish gives most of:
- Health, Stamina and Eitr: the dish's highest stat. Sorted by that stat, highest first.
- Balanced: the top two stats are equal, e.g. 23 health and 23 stamina. Sorted by that value, highest first.
- Other: anything that isn't food, such as mead bases, in vanilla's order.
Uncooked dishes, such as Raw Kale Chips, go by the stats of the dish they bake into, as their tooltip shows. Dishes you can't make yet stay greyed out but are sorted with the rest instead of going to the bottom. Right-click a dish to favourite it. Favourites go in a Favourites section at the top, in the order you added them, instead of their stat section. Right-click it again to unfavourite it. Favourites are saved with your character.
Turn the food sections off with Crafting.FoodSections.
Item sections
At the other crafting stations (workbench, forge, black forge, galdr table and so on), the Craft tab's list is split into sections by item type:
- Weapons by skill: Swords, Axes, Clubs, Knives, Spears, Polearms, Fists, Bows, Crossbows, Elemental magic, Blood magic, and Throwables (bombs).
- Arrows, Bolts and other Ammo.
- Shields, Helmets, Chest armor, Leg armor, Capes, Utility (belts and the like) and Trinkets.
- Tools (pickaxes, hoe, cultivator, scythe), Torches, Consumables, Materials and Misc (saddles, tankards and so on).
Within a section, recipes keep vanilla's order: the ones you can craft first, then by name. A station whose
recipes all fall in one section, such as the mead ketill, isn't split. Right-click a recipe to favourite it, as
at the cauldron; the favourites are shared between stations. Turn the item sections off with
Crafting.ItemSections.
All, Weapons, Armour and Misc tabs
At those stations, the Craft tab is renamed All and followed by three more tabs, so the row reads All, Weapons, Armour, Misc, Upgrade. All lists every recipe, as the Craft tab does. The others list only their part of the station's recipes, still split into the sections above:
- Weapons: the weapon sections, throwables and ammo.
- Armour: shields, helmets, chest and leg armor, capes, utility items and trinkets.
- Misc: everything else, such as tools, torches, consumables and materials.
Only the tabs with recipes show. When a station's recipes all fit one tab, the Craft tab stays as it was.
Favourites show at the top of their own tab, and in All. The tab you pick is remembered until you quit the
game; a station without it opens on All. On a controller, D-pad left and right switch tabs,
and the left trigger still goes back from Upgrade. The Upgrade tab isn't split. Turn the tabs off with
Crafting.ItemTabs.
Carried materials
Build requirements show what you carry against what's needed. A workbench shows 0/10 Wood with no
wood, 5/10 with 5, and 30/10 with 30. This applies in the build menu and on the build HUD.
The count is your inventory only, and shows even with free building on. Vanilla's red flashing when
you're short still works.
Pins
Right-click a piece in the build menu to pin it to the HUD, under the minimap, so you can see what to
gather. Each pin shows the piece's name and icon, and its materials as carried/needed, e.g. 3/10.
Counts you're short on are red.
While the cursor is free (inventory or build menu open):
- Left-click a pin to build it. It's selected as if you'd picked it in the build menu, and the menu or inventory closes. If the tool in your hand doesn't build it, the one from your inventory that does is equipped first, e.g. the hammer for a workbench.
- Right-click a pin, or click the X in its top-left corner that shows while you hover it, to unpin it. Right-clicking the piece in the build menu again also unpins it.
- Hover a material to see its name.
You can pin up to 8 pieces. They shrink when needed to fit above the key hints in the bottom-right corner, so they never cover them. Pinned pieces have a pin icon in the top-right corner of their build menu button (left of the favorite star, if it's a favorite).
Pins are saved with your character. A pinned piece from a mod you've since removed stays saved but isn't shown.
Stacks from your inventory
Right-click a material in your inventory to place its stack piece, such as a Wood Stack for wood or a Stone Pile for stone, when you carry enough to build it. It's selected as if you'd picked it in the build menu, and the inventory closes. If the tool in your hand doesn't build it, the one from your inventory that does is equipped first.
- Most stack pieces cost one full stack, e.g. 50 wood or 30 iron. The Flint Pile takes 50 flint, more than one stack.
- Coins have two: the Coin Pile (999) if you carry enough, otherwise the Coin Stack (99).
- Without enough, a message says how many you need. The material has to be in your own inventory, not a chest.
Turn it off with Stacks.RightClickToPlace.
Container preview
Point at a chest and press F to see what's in it without opening it. The preview sits just above the
chest's hover text, its name and the [E] Open and [F] Preview contents lines. The slots look like the chest window's: icons, stack sizes, quality,
durability and the can't-teleport mark. The title shows the chest's name and how many slots are used, e.g.
Chest 7/10.
- While the preview is on, it follows whatever you point at: look at another chest and it shows that one's contents. Looking away hides it until you point at a container again.
- Press F at a container again to turn it off. A chest's hover text shows
[F] Preview contentsor[F] Hide contents. - It works on anything you could open with E: chests, carts, ship storage and tombstones. Other players' private chests and chests on a ward you aren't on show nothing, the same as opening them.
- E still opens the chest. The preview hides while the inventory or another menu is open.
- F is also vanilla's Forsaken power key. It previews only while you point at a container; anywhere else it uses your power as usual.
- Contents update live, e.g. while someone else moves items in and out.
Change the key with Preview.Key, the size with Preview.Scale, or turn it off with Preview.Enabled.
Keyboard only; controllers keep vanilla behaviour.
Synonyms
The synonyms file is BepInEx/config/BetterBuildMenu.synonyms.txt. It's created with defaults on first run.
# comment
<key>: term, term, term
Karve: dinghy # one piece, by prefab name or $token
usage/Lighting: candle # every piece with that usage tag
comfort/Chair: bench # comfort group
material/Stone: rock # build material
category/Furniture: interior # build menu category
component/Ship: longboat # game component
- Keys are case-insensitive. The file's header lists the valid usage tags.
- Your lines add to the built-in words; they don't replace them.
- Saved edits apply immediately while the game is running.
- When you load a world, every key is checked against the game. Any key that matches nothing is listed as a warning in
LogOutput.log.
To see what each piece is made of, set Debug.DumpPieces = true. Entering a world then
writes every buildable piece to BepInEx/config/BetterBuildMenu.pieces.tsv:
its tools, usage tags, comfort group, material, components and full search text.
Config
BepInEx/config/betterbuildmenu.cfg:
Search.Enabled: turns the wider search on or off.Search.MatchDescriptions: whether description text is searched. Turn it off if results feel too broad. For example, the striped banner's description mentions a "ship".Search.ResultsColumn: the search column with its list of pieces.Search.ColumnWidth: width of the search column (default 260). It's narrowed to keep the menu on screen and left of the pins, though not below 120.Navigation.HighlightColor: border color of the highlighted result.Navigation.FocusSearch: once you've used the search box, keep the cursor in it until the menu closes (keyboard and mouse only). It's never focused when the menu opens.Menu.ExtraHeight: how much taller the build menu is (default 200; 0 is vanilla's size).Menu.DetailsInMenu: show the details panel inside the build menu, below the pieces, while it's open.Menu.BuildableCategory: the Buildable category above All.Menu.SectionTags: the categories split into material sections (defaultBuilding, Floor, Wall, Roof, Architecture; empty turns them off).Menu.SectionOrder: materials whose sections come first, in order, by display name (e.g.Black Marble) or prefab name (e.g.BlackMarble). Other sections follow in menu order.Crafting.FoodSections: split the cauldron's list into Health, Stamina, Eitr and Balanced sections, with right-click favourites on top.Crafting.ItemSections: split other crafting stations' lists into sections by item type (Swords, Axes, Helmets, ...), with right-click favourites on top.Crafting.ItemTabs: rename the Craft tab All at those stations and add Weapons, Armour and Misc tabs after it, each listing only its part of the recipes.Requirements.ShowCarried: show requirements as carried/needed.Pins.Enabled: right-click pinning and the pins on the HUD.Pins.Offset: where the pins' top-right corner sits, relative to the minimap's bottom-right corner.Pins.Scale: largest size of the pins (default 1, the size of the build HUD's material slots). They shrink below it when needed to stay above the key hints.Stacks.RightClickToPlace: right-click a material in your inventory to place its stack piece.Preview.Enabled: preview a container's contents by pointing at it and pressingPreview.Key.Preview.Key: the key that turns the preview on and off (defaultF).Preview.Scale: size of the preview (default 0.75; 1 is the size of the chest window's slots).Debug.DumpPieces: write the piece dump described above.
