Create a types.xml From Scratch

This guide walks you through the minimal structure required for a functional types.xml. You’ll learn what each attribute means and how to validate the file before shipping your mod.

1. Basic Skeleton

<?xml version="1.0" encoding="UTF-8"?>
<types>
  <!-- Your item types go here -->
</types>

2. Required Attributes

  • nominal – maximum allowed in the economy
  • lifetime – time in seconds before despawn
  • restock – seconds before restock check
  • min / quantmin – minimum quantity or stack size

3. Validation

Use any XML validator, or test-launch a local server to ensure the game loads without errors.