Skip to content

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

View source

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.ShowPanel rendering

View source

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

View source

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

View source

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

View source

Zone quest demo

Best for spatial gameplay triggers.

  • circle and polygon zones
  • zone:onEnter and zone:onExit flow
  • server-owned quest progression
  • client-only preview commands

View source

Lua resources for Valheim, built on a server-authoritative runtime.