Please disclose if any significant portion of your mod was created using AI tools by adding the 'AI Generated' category. Failing to do so may result in the mod being removed from Thunderstore.
SonicWorldTools
Valheim world tools for Infinity Hammer: precision selection, curved terrain paths, prop scatter, and a build-piece Line Tool.
| Date uploaded | 2 weeks ago |
| Version | 0.1.2 |
| Download link | SonicDM-SonicWorldTools-0.1.2.zip |
| Downloads | 38 |
| Dependency string | SonicDM-SonicWorldTools-0.1.2 |
This mod requires the following mods to function
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.30.2JereKuusela-Server_devcommands
Enables devcommands and utilities for server admins.
Preferred version: 1.116.0JereKuusela-World_Edit_Commands
Adds new client side commands for advanced world editing.
Preferred version: 1.82.0denikson-BepInExPack_Valheim
BepInEx pack for Valheim. Preconfigured with the correct entry point for mods and preferred defaults for the community.
Preferred version: 5.4.2360JereKuusela-Infinity_Hammer
Bend the rules of building! Copy any object, make structures indestructible, remove all restrictions, destroy anything and more...
Preferred version: 1.92.0README
SonicWorldTools
![]()
A collection of Infinity Hammer tools for building, terrain editing, prop placement, and selection.
Release candidate: 0.1.2.
SonicWorldTools adds menu tools to Infinity Hammer's Hammer, Hoe, and Cultivator. It does not add a separate hammer item. Each tool is described below with its purpose, controls, and important limits.
At a glance
| Infinity Hammer menu | Tool | Use it to |
|---|---|---|
| Hammer | Line Tool | Repeat a sampled piece along straight or curved routes. |
| Hammer | Shape Tool | Place a sampled piece around a circle, square, or rectangle, with optional infill. |
| Hammer | Precision Select | Select, refine, copy, dismantle, or delete building pieces in a three-corner volume. |
| Hoe | Surface Paths | Paint grass, dirt, cultivated soil, or paved terrain along a route. |
| Hoe | Lower Terrain | Lower and optionally smooth the ground in the Hoe's area cursor. |
| Hoe / Cultivator | Force Grow | Instantly mature healthy planted crops, tree saplings, and plantable pickables, or hatch a single chicken egg in a circular area. |
| Cultivator | Scatter Props | Scatter a mix of sampled networked props across a circular area. |
Tool guide
Select a tool from its Infinity Hammer menu to activate it. Controls below are the defaults; most keys can be changed in BepInEx/config/com.sonicdm.valheim.sonicworldtools.cfg.
Hammer: Line Tool
Repeat a supported build piece along a straight or curved route. Common examples include fences, walls, beams, lamps, floors, and props with a reviewed placement profile.
- Select Line Tool from Infinity Hammer's Hammer tools.
- Aim at a placed piece and middle-click to sample it.
- Click each route waypoint. The preview shows the repeated pieces along the route.
- Hold Shift and click to place the batch. Use Infinity Hammer's undo to reverse it.
| Control | Default action |
|---|---|
| Middle-click | Sample the aimed placed piece. |
| Click | Add a route waypoint. |
| Right Alt+click | Snap a waypoint to the aimed piece's repeat joint. |
| Shift+click | Place the previewed route. |
| Mouse wheel | Rotate the repeated pieces. |
| Alt+mouse wheel | Increase or decrease the gap between pieces. |
| Hold Alt | Keep the route at one height. |
| F7 / Shift+F7 | Open route settings / edit the sampled-piece offsets. |
| Esc | Exit Line Tool. |
The first sampled placement uses Valheim's build snapping; Q/E cycles its snap point. In F7 settings, turn on World direction snap to quantize route headings to the same 22.5° world rotation steps used by build pieces; this constrains each segment from its previous waypoint. Right Alt joint snapping takes precedence while held. Repeated pieces use editable profiles in BepInEx/config/SonicWorldTools/PrefabPlacement/VanillaPieces.yml. A piece without a reviewed, enabled profile cannot be placed. At bends, the route solver may overlap adjacent pieces to close an outside gap; very tight turns may need another waypoint or a spacing adjustment.
For unrestricted world objects, enter sonic_line_anarchy on in the console. While enabled, middle-click can sample networked prefabs such as trees and creatures. Placement sends network spawn requests and uses the configured ground-prop spacing instead of build-piece profiles or snapping. Turn the mode off with sonic_line_anarchy off. Targets need a ZNetView; local-only effects are not created, and Infinity Hammer undo is not guaranteed for spawned batches.
F7 settings choose the curve interpolation. Current uses tangent-limited Hermite curves; Centripetal passes through the waypoints with centripetal Catmull–Rom. The smoothing-distance setting applies only to Current. Other settings include world direction snapping, gap, height behavior, fill-down, and offsets.
Hammer: Shape Tool
Use Shape Tool to place a sampled piece around a closed circle, square, or rectangle, or fill the enclosed area.
- Select Shape Tool and middle-click a placed build piece to sample it.
- Click the shape's center, then move the cursor to size the preview.
- Press Q to cycle Circle → Square → Rectangle. For a square, the cursor direction also sets its angle.
- Press I to cycle the fill layout: outline only, grid infill, and concentric infill. Circles cycle between outline and concentric infill.
- Hold Shift and click to place the preview.
Circle infill uses concentric rings. Square and rectangle infill can use either a fitted grid or nested concentric rings; use I to choose. Square and rectangle perimeters also fit to the sampled piece spacing so the sides meet at the corners. Holstering the hammer or opening the piece-selection menu cancels an unfinished shape.
Concentric square and rectangle infill starts with rings packed to the sampled piece's crosswise width. Hold Shift and scroll to widen or tighten the ring spacing in 0.1 m steps. If the requested shape exceeds the 512-placement safety limit, increase the ring spacing or make the shape smaller.
Hammer: Precision Select
Use Precision Select to select building pieces inside a three-corner volume, then refine, copy, dismantle, or delete that selection.
- Click Corner A.
- Click Corner B to set the width direction and span.
- Click Corner C to set the remaining depth and height. The selected count and volume dimensions appear in the HUD.
- Refine or act on the locked selection using the controls below.
| Control | Default action |
|---|---|
| Left-click | Set A, B, C; after locking, resize from A/B. |
| Alt+left-click | Add the aimed piece to the selection, even outside the volume. |
| Alt+middle-click | Exclude the aimed piece. |
| Shift+middle-click | Hand the selection to Infinity Hammer's copy-placement ghost. |
| Ctrl+Delete | Dismantle selected pieces and return materials. |
| Shift+Delete | Permanently delete selected pieces without drops. |
| Backspace | Clear manual add/exclude refinements, keeping the volume. |
| Home | Clear the corners and start a new volume. |
| Esc | Cancel and clear the current selection. |
Selection padding, box/corner markers, highlights, selected count, and dimensions are configurable. Padding defaults to 0.1 m on each side.
Hoe: Surface Paths
Choose one of the surface path tools under Hoe, then click the route points. Hold Shift on the final point to finish; also hold Alt on that final click to soften the path edges. The mouse wheel changes the path half-width. The default half-width is 2 m, so the full path is 4 m wide.
| Tool | Surface painted |
|---|---|
| Grass Path | Grass |
| Grass Patches Path | Scattered grass patches |
| Dark Grass Path | Dark grass |
| Dirt Path | Dirt |
| Cultivated Path | Cultivated soil |
| Paved Path | Paved stone |
| Mossy Paved Path | Mossy paved stone |
| Dark Paved Path | Dark paved stone |
Finish and smoothing keys are configurable in the TerrainPaths section. These tools paint terrain surfaces; they do not place build pieces.
Hoe: Lower Terrain
Select Lower Terrain and use the Hoe's terrain area cursor over the ground to lower it by the selected height amount. The starting amount is 0.2 m. Hold Infinity Hammer Modifier 1 to smooth the lowered area; hold Modifier 2 for free placement. The initial amount and smoothing strength are configurable under LowerTerrain.
Hoe / Cultivator: Force Grow
Select Force Grow from the Hoe or Cultivator menu and click an area to instantly mature healthy planted crops, tree saplings, and plantable pickables, or hatch a single incubating chicken egg within the circular radius. Scroll to change the radius. Plants that currently fail their growth conditions are left alone; stacked eggs are skipped. The initial radius is configurable under ForceGrow.
Cultivator: Scatter Props
Scatter one or more sampled networked props across a circular area.
- Select Scatter Props under Cultivator.
- Middle-click a networked prop to add it to the sample mix. Middle-click a sampled prop again to remove that type.
- Click the ground to scatter the mix inside the shown radius. If the sample list is empty, the prop under the cursor is used.
- Hold Shift and middle-click to clear the sample list.
Hold Alt and use the mouse wheel to change the number placed per click by one. The count ranges from 1–200 and appears in the tool description. Defaults are 20 props per click, up to 8 sample types, and a 3 m radius. Infinity Hammer's radius binding still controls the radius wheel. These values are configurable under ScatterProps.
Install
Install with a Valheim mod manager, or place SonicWorldTools.dll in BepInEx/plugins. Start a world and open Infinity Hammer's Hammer, Hoe, or Cultivator menu to find the tools.
Required dependencies: BepInExPack Valheim 5.4.2360, Jötunn 2.30.2, Infinity Hammer 1.92.0, World Edit Commands 1.82.0, and Server Devcommands 1.116.0. The Infinity Hammer, World Edit Commands, and Server Devcommands versions match the DEV profile used for compatibility testing.
SonicWorldTools creates its own infinity_tools_sonicworldtools.yaml under BepInEx/config/tools/. It does not edit Infinity Hammer's infinity_tools.yaml.
Tune it
The main settings file is BepInEx/config/com.sonicdm.valheim.sonicworldtools.cfg.
| Section | Controls |
|---|---|
LineTool |
Controls, gap, curve algorithm and smoothing, world direction snap, height, prop facing and spacing, and optional diagnostics. Previous PieceRepeater settings migrate on startup. |
TerrainPaths, LowerTerrain |
Path width, edge smoothing and keys; initial lowering amount and smoothing. Path key changes regenerate the owned Infinity Hammer YAML. |
ScatterProps |
Sample and clear keys, palette limit, amount per click, and initial radius. |
PrecisionAreaPipette, Preview |
Selection controls, padding, and visual feedback. |
Integration, Debug |
Infinity Hammer tool installation and diagnostic logging. VerboseLogging defaults to off. |
Changes to relevant settings refresh the generated tool YAML. Infinity Hammer may need you to reselect the tool or restart the game before its menu shows the new description. If you edit that generated YAML yourself, the plugin keeps your changes and writes its newer template to BepInEx/config/infinity_tools_sonicworldtools.yaml.new for comparison.
Line Tool profiles live in BepInEx/config/SonicWorldTools/PrefabPlacement/VanillaPieces.yml. They hold each piece's repeat geometry, ground offset, and enabled status. Existing edits survive catalog refreshes; newly discovered build pieces are appended. A NeedsReview profile stays disabled until its geometry is corrected. Profile YAML edits reload automatically. Use sonic_piece_catalog_refresh after adding building mods, or sonic_piece_geometry_dump to inspect a piece's measured geometry. The embedded release defaults come from the source catalog.
Remove or reset
Removing the plugin leaves its Infinity Hammer tool definition and profile settings on disk. For a clean reset, close Valheim and remove the plugin's files from the profile:
BepInEx/plugins/SonicWorldTools.dll
BepInEx/plugins/SonicWorldTools/SonicWorldTools.dll
BepInEx/scripts/SonicWorldTools.dll (DEV ScriptEngine installs only)
BepInEx/config/com.sonicdm.valheim.sonicworldtools.cfg
BepInEx/config/SonicWorldTools/
BepInEx/config/tools/infinity_tools_sonicworldtools.yaml
BepInEx/config/infinity_tools_sonicworldtools.yaml (older installs)
BepInEx/config/infinity_tools_sonicworldtools.yaml.new (if present)
Back up VanillaPieces.yml first if you tuned piece profiles. If enabled, Line Tool diagnostics are in BepInEx/logs/SonicWorldTools-LineTool.log.
Development
Build with .\build.ps1; run tests with dotnet test SonicWorldTools.sln. For ScriptEngine iteration, use ..\tools\dev.ps1 deploy -Mod SonicWorldTools -ProfileBepInEx <DEV profile BepInEx path>. Before publishing, complete the in-game test matrix.
CHANGELOG
Changelog
0.1.3
- Shape Tool circle infill for floor-type pieces no longer leaves gaps: rings fitted from the rim inward, with a grid core in the middle. Overlaps are kept small and staggered in height so they do not flicker.
- README: trace wall, world direction snap and circle fill documented, with screenshots.
- Scatter Props previews the next scatter at the Infinity Hammer cursor: translucent ghosts of the sampled props plus a marker post at each spot. A click spawns exactly the previewed layout, then rolls a new one.
ScatterProps.ShowPreviewhides the ghosts. - Each Scatter Props click is now a single World Edit Commands undo step, even with several sampled prop types.
- Scatter variation: random size (
ScaleMin/ScaleMax, default 0.9–1.1), optional tilt to the ground slope (AlignToSlope,MaxSlopeTilt), minimum spacing between props (MinSpacing), and per-sample pick weights (sonic_scatter weight <prefab> <n>). The preview shows all of it. - Scatter Props sample notices (sampled, removed, cleared, palette full) show in the centre of the screen so they no longer queue behind undo and spawn messages; the per-click summary goes to the console only.
- Line Tool trace wall: look at an existing wall, open the settings (F7) and press Trace wall to lay the sampled piece in a parallel row along your side of it, following the wall's curve. Shift+wheel or the panel nudges the offset; Next row steps out one piece depth. Optional
TraceKey(unbound by default). Removed the unused "both sides" path code it replaces. - Scatter Props sets props on terrain, or on a rock or build floor within 2 m of it, instead of the first solid surface (which could be a tree canopy).
- Infinity Hammer is now a hard BepInEx dependency; World Edit Commands and Server Devcommands stay runtime-detected.
- Split the Line/Shape Tool controller into partial files by concern (no behaviour change).
0.1.2
- Add optional F7 Line Tool snapping to the world rotation grid (22.5° increments).
- Add Force Grow to the Infinity Hammer Hoe and Cultivator menus. Clicking a circular area matures healthy plants and hatches single incubating chicken eggs.
0.1.1
- Declare Infinity Hammer, World Edit Commands, and Server Devcommands as package dependencies, using the versions installed in the DEV test profile.
0.1.0
- Add Line Tool for previewing and placing build-piece paths, with editable piece profiles and in-game settings.
- Add Shape Tool for previewing and placing sampled pieces around circle, square, and rectangle outlines; Q cycles shapes.
- Add Shape Tool infill toggle and fit outline side lengths to the sampled repeat spacing for cleaner corners.
- Arrange Circle infill in concentric rings rather than staggered rows.
- Add curved terrain surface paths, Lower Terrain, Scatter Props, and Precision Area Pipette tools to Infinity Hammer's menus.
- Generate tool definitions and a default piece catalog on first run while preserving profile edits.
- Expose tool controls in the BepInEx config and keep optional Line Tool diagnostics off by default.