Included Resources
The package ships with working resources under BepInEx/plugins/ValheimLua/resources. Their source is also available in the repository's example-resources directory.
Gold mining
Best for learning custom content registration.
- AssetBundle-backed persistent network prefab
- custom bundle item and icon
- derived sword with stat overrides and forge recipe
- derived Greydwarf with custom stats and loot
- server-owned spawning and an ACE-restricted mob command
Gear panel
Best for learning client/server state flow and lightweight UI.
- detached Lua-owned equipment storage
- per-player JSON persistence
- exports and player lifecycle events
UI.ShowPanelrendering
Inventory native test
Best for validating server-authoritative inventory workflows.
- revision-safe mutations
- transactions and rollback
- stack move, split, and merge
- remote player and synthetic inventory scenarios
Persistent chest
Best for learning persistent world containers.
- resource-owned 5x5 chest
- JSON or MySQL authority storage
- transfers between player and container inventories
- discovery by coordinates, radius, prefab, and ownership kind
Quest event demo
Best for data-driven progression.
- JSON quest definitions and player progress
- gameplay event objectives
- notifications, item grants, and command rewards
- flags, unlocks, chaining, repeatability, and cooldowns
Zone quest demo
Best for spatial gameplay triggers.
- circle and polygon zones
zone:onEnterandzone:onExitflow- server-owned quest progression
- client-only preview commands