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.

aprts_landmark ​

Admin-surveyed polygon plots, player purchases, ownership transfers and four cumulative access levels. Native hooks protect building/repair/demolition, player structure damage, doors and containers, without bypassing vanilla wards. MySQL is mandatory; land.admin grants surveying rights.

Start aprts_landmark before aprts_ranch. Open /landmark or /house. Ranch permissions follow the plot, including on transfer; complete pens must fit inside its polygon. This requires engine-equipped clients, not a standalone anti-cheat system.

Setup, commands and protection limits

aprts_ranch ​

A native Valheim ranch system, ported from the supplied RedM resource.

  • boars, hens, wolves and lox with managed, persistent networked AI
  • land-based ranch/pen permissions, animal care, production and breeding
  • trading, slaughter, sheltered storage and native management windows
  • mandatory MySQL, world-scoped state, revision checks and inventory rollback

Open /ranch or /ranch_ui. RedM scripts, SQL dumps and HTML overlays are not loaded. Requires purchased aprts_landmark land. Pens are logical grazing areas; build fences with Valheim's hammer.

Setup, controls and recovery limits

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.