Accessing data
mod.game.data is the client component of tera-game-state containing Map caches. Keys are numeric IDs; use .get(id), not cache[id]. Data loads asynchronously through queryData when the client interface becomes ready. Check the result: an absent entry can mean an unknown ID or loading that has not finished.
const item = mod.game.data.items.get(6550);
if (item) mod.log(item.name ?? item.id);
abnormalities
mod.game.data.abnormalities: abnormality ID → attributes from Abnormality/Abnormal, supplemented with strings from StrSheet_Abnormality.
Fields include id, bySkillCategory, infinity, time, plus name and tooltip when a matching string exists. effects contains child-effect attributes: method, tickInterval, type, value and others from the selected set. Available fields depend on client data. This is a reference cache; active player effects live in me.abnormalities.
items
mod.game.data.items: item ID → { id, combatItemType, rareGrade, name, tooltip }. Core fields come from ItemData/Item; localized text comes from StrSheet_Item/String. Name and tooltip may be absent without a matching string. This describes an item type; amounts, slots and unique instance IDs belong to inventory.
continents
mod.game.data.continents: continent ID → id and channelType attributes from ContinentData/Continent. These help classify the current zone. The cache does not contain the entire DataCenter node with child hunting zones; query them separately if needed.
users
mod.game.data.users: template ID → { id, class, race, gender } from UserData/Template. Patches 99 and above also include HeroData/Template. Values use DataCenter names, such as fighter for the class.
Limitations
Do not mutate shared caches: other modules use them. Names follow the game client's language. The library does not expose a separate “all four caches loaded” event; receiving clientInterface.ready alone does not prove its asynchronous queries have completed. For early access to your own required record, await a separate queryData call.
Source: mods/tera-game-state/index.js, ClientMod. Previously absent sections in doc/data.md are documented from its queries and Map construction.