📝 Code Templates

Copy-paste ready code snippets for common tasks. Each template includes placeholders and comments to help you customize it for your needs.

Server Templates

Backend code for extending inventory functionality

Usage

How to use these templates

1

Download or Copy

Click the template link to download, or copy the code directly from the page.

2

Customize Placeholders

Replace all {{PLACEHOLDER}} values with your specific code:

  • {{OperationName}} - Your operation name (e.g., "Craft")
  • {{param1}} - First parameter
  • {{param2}} - Second parameter
  • {{resultFields}} - Result fields
3

Add to Your Project

Place the file in the appropriate location and wire it up per the guide.

See Add Server Features guide for complete instructions.

Quick Reference

Click any card to see full documentation. Click outside to close.

Related

See also