Table of Contents

Class QuantityByGroup

Namespace
Vintagestory.API.Common.Entities
Assembly
VintagestoryAPI.dll

Allows you to control spawn limits based on a set of entity codes using a wildcard.

public class QuantityByGroup
Inheritance
QuantityByGroup

Fields

Code (Required)

A wildcard asset location which can group many entities together.

public AssetLocation Code

Field Value

AssetLocation

MaxQuantity (Required)

The maximum quantity for all entities that match the Code wildcard.

public int MaxQuantity

Field Value

int