Craig Martin

(Unofficial) XML Modding API Documentation

Pages

Data Types

string

A string of characters. Can be anything.

bool

True or False.

int

A whole number between -2,147,483,648 and 2,147,483,647.

ushort

A whole number between 0 and 65,535.

short

A whole number between -32,768 and 32,767.

byte

A whole number between 0 and 255.

float

A real number (decimal) between -3.4 x 10³⁸ and 3.4 x 10³⁸.

Vector2

An object representing two points.

float X

float Y

Vector3

An object representing three points.

float X

float Y

float Z

Vector4

An object representing four points.

float X

float Y

float Z

float W

Color

An object representing an RGBA color.

byte R

byte G

byte B

byte A

Item

A Total Miner Item ID. No spaces are allowed. Can usually be either an existing item or a custom item. In some rare situations, custom item IDs do not work here.

Block

A Total Miner Block ID. No spaces are allowed. Must be an existing block.

InventoryItemXML

An object representing an item, amount, and durability.

Item ItemID

ushort Durability

int Count

InventoryItemNDXML

An object representing an item and amount.

Item ItemID

int Count

LootItem

An object representing an item in a loot table.

Item Item

The item of this loot drop.

DamageType Damage

The damage type required to make this item drop.

int Percent

The percent chance of this item dropping.

int Count1

The minimum amount of this item dropped.

int Count2

The maximum amount of this item dropped.