Items are the core components in Forge that drive the dynamics of your game world. Each item can be defined with specific attributes, classifiers, and optional visual representations. This document explains how to define an item, the role of classifiers, and how items interact with the game’s mechanics.
To define an item in Forge, you’ll need to provide the following details:
Name: A unique name for the item.
Thumbnail (optional): A visual representation of the item, used for displaying the item in a space or within your game.
Roll Numerator: A numerical value that determines the item’s likelihood of being rolled.
Classifier Options: Each item can have multiple classifier options that categorize it based on various characteristics.
The roll denominator is determined automatically by summing up all of the roll numerators. We recommend leaving the roll numerator for an item at 100, and modifying the classifier options to determine the chance of drops. There may of course be times where you want to make specific items more unique later on and this should give you a good baseline.
Items are not just static components; they possess attributes that can be rolled to introduce variability and uniqueness. These attributes can influence the item’s effectiveness, appearance, and behavior in the game.
Attributes: Define specific characteristics of an item that can vary (e.g., damage, durability, magical properties).
Rolling Attributes: When an item is instantiated, its attributes are rolled based on predefined ranges or probabilities.
Classifiers are used to categorize and group items, making it easier to manage and utilize them within the game. Each classifier represents a characteristic by which items can be grouped or filtered. For example:
Rarity: Common, Uncommon, Rare, Epic, Legendary
Type: Weapon, Armor, Potion, Tool
Element: Fire, Water, Earth, Air
By defining classifier options for each item, you can create a structured and organized inventory system.
Once an item is defined, instances of the item can be created for users using the API Reference for Item Instances. These instances are the actual in-game objects that players interact with, trade, and use.Example API Call to Create an Item Instance:
POST /items{ "itemId": "mystic_sword", "userId": "user123", "userSpaceId": "space456"}
Items in Forge are powerful and flexible components that form the backbone of your game’s item management system. By defining items with specific attributes, classifiers, and optional thumbnails, you can create a rich and engaging game environment. The ability to roll item attributes and classify items ensures a dynamic and organized gameplay experience. Item instances can be easily created and managed using the provided API, facilitating seamless integration into your game world.For more details on how to interact with item instances, refer to the API Reference for Item Instances.
{"docsConfig":{"$schema":"https://mintlify.com/docs.json","theme":"mint","name":"Forge","colors":{"primary":"#7c3aed","light":"#7c3aed","dark":"#09090b"},"favicon":"/favicon.svg","logo":{"light":"https://mintcdn.com/forge/6FDauhoreGw-hoqJ/logo/light.svg?fit=max\u0026auto=format\u0026n=6FDauhoreGw-hoqJ\u0026q=85\u0026s=a8fc778c37027b402369ae34eefa2302","dark":"https://mintcdn.com/forge/6FDauhoreGw-hoqJ/logo/dark.svg?fit=max\u0026auto=format\u0026n=6FDauhoreGw-hoqJ\u0026q=85\u0026s=3241213043f0c1de2092feee9939c93b"},"appearance":{"default":"dark","strict":true},"navbar":{"links":[{"label":"Support","href":"mailto:support@forge-games.xyz"}],"primary":{"type":"button","label":"Get Started","href":"https://forgegames.org"}},"footer":{"socials":{"github":"https://github.com/buildwithforge","linkedin":"https://www.linkedin.com/company/forgegames"}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"forge","hasAudioNarration":false,"actualSubdomain":"forge","customDomains":["docs.forgegames.org"],"gitSource":{"type":"github","owner":"benox3","repo":"forge","deployBranch":"main","contentDirectory":"apps/docs","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6a20c54bfc6c845dd4133bdb","collectionId":"23ec8ecf-e452-4ba9-ae46-f059326810c5","schemaVersion":"v2"},"entitlements":{},"buildId":"6a20c54bfc6c845dd4133bdb:success","clientVersion":"0.0.4043","searchFilterCounts":[{"language":"default","tag":"API Reference","count":37},{"language":"default","tag":"Documentation","count":11},{"language":"default","tag":"templates","count":6},{"language":"default","tag":"items","count":5},{"language":"default","tag":"Essentials","count":4},{"language":"default","tag":"Integration","count":4},{"language":"default","tag":"attributes","count":4},{"language":"default","tag":"classifiers","count":4},{"language":"default","tag":"item-instances","count":4},{"language":"default","tag":"spaces","count":4}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"#navbar-transition img{height:40px}"}],"page":{"pagePath":"essentials/items","slug":"/essentials/items","pageMetadata":{"title":"Items","description":"Items are the core components in Forge that drive the dynamics of your game world. Each item can be defined with specific attributes, classifiers, and optional visual representations. This document explains how to define an item, the role of classifiers, and how items interact with the game's mechanics.","icon":"sword","href":"/essentials/items","hidden":false},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Items are the core components in Forge that drive the dynamics of your game world. Each item can be defined with specific attributes, classifiers, and optional visual representations. This document explains how to define an item, the role of classifiers, and how items interact with the game’s mechanics.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Tip}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Tip)_missingMdxReference(`Tip`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`defining-an-item`,children:`Defining an Item`}),`\n`,_jsx(_components.p,{children:`To define an item in Forge, you’ll need to provide the following details:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Name`}),`: A unique name for the item.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Thumbnail`}),` (optional): A visual representation of the item, used for displaying the item in a `,_jsx(_components.a,{href:`/essentials/space`,children:`space`}),` or within your game.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Roll Numerator`}),`: A numerical value that determines the item’s likelihood of being rolled.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Classifier Options`}),`: Each item can have multiple classifier options that categorize it based on various characteristics.`]}),`\n`]}),`\n`,_jsx(Tip,{children:`The roll denominator is determined automatically by summing up all of the roll numerators. We recommend leaving the roll numerator for an item at 100, and modifying the classifier options to determine the chance of drops. There may of course be times where you want to make specific items more unique later on and this should give you a good baseline.`}),`\n`,_jsx(_components.p,{children:`Here’s an example of defining an item:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`10`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`10`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Mystic Sword\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"thumbnail\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://example.com/images/mystic-sword.png\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"rollNumerator\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`10`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"classifiers\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"rarity\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"legendary\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"weapon\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"element\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"fire\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`4`,id:`attributes-and-roll-mechanics`,children:`Attributes and Roll Mechanics`}),`\n`,_jsx(_components.p,{children:`Items are not just static components; they possess attributes that can be rolled to introduce variability and uniqueness. These attributes can influence the item’s effectiveness, appearance, and behavior in the game.`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Attributes`}),`: Define specific characteristics of an item that can vary (e.g., damage, durability, magical properties).`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Rolling Attributes`}),`: When an item is instantiated, its attributes are rolled based on predefined ranges or probabilities.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`4`,id:`classifiers`,children:`Classifiers`}),`\n`,_jsx(_components.p,{children:`Classifiers are used to categorize and group items, making it easier to manage and utilize them within the game. Each classifier represents a characteristic by which items can be grouped or filtered. For example:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Rarity`}),`: Common, Uncommon, Rare, Epic, Legendary`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Type`}),`: Weapon, Armor, Potion, Tool`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Element`}),`: Fire, Water, Earth, Air`]}),`\n`]}),`\n`,_jsx(_components.p,{children:`By defining classifier options for each item, you can create a structured and organized inventory system.`}),`\n`,_jsx(Heading,{level:`4`,id:`item-instances`,children:`Item Instances`}),`\n`,_jsxs(_components.p,{children:[`Once an item is defined, instances of the item can be created for users using the `,_jsx(_components.a,{href:`/api-reference/item-instances`,children:`API Reference for Item Instances`}),`. These instances are the actual in-game objects that players interact with, trade, and use.`]}),`\n`,_jsx(_components.p,{children:`Example API Call to Create an Item Instance:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`6`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`6`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`POST /items`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"itemId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"mystic_sword\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"userId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"user123\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"userSpaceId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"space456\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Response:`})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`11`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`11`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"itemInstanceId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"itemInstance789\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"itemId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"mystic_sword\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"userId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"user123\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"userSpaceId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"space456\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"attributes\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"damage\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`50`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"durability\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`100`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"createdAt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2024-07-09T12:34:56Z\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`4`,id:`summary`,children:`Summary`}),`\n`,_jsx(_components.p,{children:`Items in Forge are powerful and flexible components that form the backbone of your game’s item management system. By defining items with specific attributes, classifiers, and optional thumbnails, you can create a rich and engaging game environment. The ability to roll item attributes and classify items ensures a dynamic and organized gameplay experience. Item instances can be easily created and managed using the provided API, facilitating seamless integration into your game world.`}),`\n`,_jsxs(_components.p,{children:[`For more details on how to interact with item instances, refer to the `,_jsx(_components.a,{href:`/api-reference/item-instances`,children:`API Reference for Item Instances`}),`.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Items","description":"Items are the core components in Forge that drive the dynamics of your game world. Each item can be defined with specific attributes, classifiers, and optional visual representations. This document explains how to define an item, the role of classifiers, and how items interact with the game's mechanics.","icon":"sword","href":"/essentials/items","hidden":false}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Defining an Item","slug":"defining-an-item","depth":2,"children":[{"title":"Attributes and Roll Mechanics","slug":"attributes-and-roll-mechanics","depth":4,"children":[]},{"title":"Classifiers","slug":"classifiers","depth":4,"children":[]},{"title":"Item Instances","slug":"item-instances","depth":4,"children":[]},{"title":"Summary","slug":"summary","depth":4,"children":[]}]}],"codeExamples":{}},"jsLinks":[],"subdomain":"forge","siteName":"Forge","title":"Items - Forge","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-01-07T02:46:58.715Z","originalFileLocation":"essentials/items.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=\"dark\";if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"dark\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Items are the core components in Forge that drive the dynamics of your game world. Each item can be defined with specific attributes, classifiers, and optional visual representations. This document explains how to define an item, the role of classifiers, and how items interact with the game\u0026#x27;s mechanics.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Forge\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/forge/Vkorqzj0THNL-o9r/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/forge/Vkorqzj0THNL-o9r/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/forge/Vkorqzj0THNL-o9r/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/forge/Vkorqzj0THNL-o9r/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/forge/Vkorqzj0THNL-o9r/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/forge/Vkorqzj0THNL-o9r/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/forge/Vkorqzj0THNL-o9r/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/forge/Vkorqzj0THNL-o9r/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/forge/Vkorqzj0THNL-o9r/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Items - Forge\">\u003cmeta data-mint-head property=\"og:description\" content=\"Items are the core components in Forge that drive the dynamics of your game world. Each item can be defined with specific attributes, classifiers, and optional visual representations. This document explains how to define an item, the role of classifiers, and how items interact with the game\u0026#x27;s mechanics.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Forge\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.forgegames.org/essentials/items\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://forge.mintlify.app/_mintlify/api/og/v2?division=Essentials\u0026amp;title=Items\u0026amp;description=Items+are+the+core+components+in+Forge+that+drive+the+dynamics+of+your+game+world.+Each+item+can+be+defined+with+specific+attributes%2C+classifiers%2C+and+optional+\u0026amp;theme=119ab601b15ba778025f4b86\u0026amp;signature=2e6d083b7be74ef6fc97522a7cbaf564dd0e73029635e2ec579ae92162d3c364\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Items - Forge\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Items are the core components in Forge that drive the dynamics of your game world. Each item can be defined with specific attributes, classifiers, and optional visual representations. This document explains how to define an item, the role of classifiers, and how items interact with the game\u0026#x27;s mechanics.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://forge.mintlify.app/_mintlify/api/og/v2?division=Essentials\u0026amp;title=Items\u0026amp;description=Items+are+the+core+components+in+Forge+that+drive+the+dynamics+of+your+game+world.+Each+item+can+be+defined+with+specific+attributes%2C+classifiers%2C+and+optional+\u0026amp;theme=119ab601b15ba778025f4b86\u0026amp;signature=2e6d083b7be74ef6fc97522a7cbaf564dd0e73029635e2ec579ae92162d3c364\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/forge/Vkorqzj0THNL-o9r/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Forge\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#7c3aed\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.forgegames.org/essentials/items\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/essentials/items.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.forgegames.org/#organization\",\"name\":\"Forge\",\"url\":\"https://docs.forgegames.org\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/forge/6FDauhoreGw-hoqJ/logo/light.svg?fit=max\u0026auto=format\u0026n=6FDauhoreGw-hoqJ\u0026q=85\u0026s=a8fc778c37027b402369ae34eefa2302\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.forgegames.org#website\",\"name\":\"Forge\",\"url\":\"https://docs.forgegames.org\",\"publisher\":{\"@id\":\"https://docs.forgegames.org/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.forgegames.org/essentials/items#webpage\",\"url\":\"https://docs.forgegames.org/essentials/items\",\"name\":\"Items\",\"description\":\"Items are the core components in Forge that drive the dynamics of your game world. Each item can be defined with specific attributes, classifiers, and optional visual representations. This document explains how to define an item, the role of classifiers, and how items interact with the game's mechanics.\",\"dateModified\":\"2026-01-07T02:46:58.715Z\",\"isPartOf\":{\"@id\":\"https://docs.forgegames.org#website\"},\"breadcrumb\":{\"@id\":\"https://docs.forgegames.org/essentials/items#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.forgegames.org/essentials/items#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Essentials\",\"item\":\"https://docs.forgegames.org/essentials/classifiers\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Items\",\"item\":\"https://docs.forgegames.org/essentials/items\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.forgegames.org/essentials/items#article\",\"headline\":\"Items\",\"name\":\"Items\",\"description\":\"Items are the core components in Forge that drive the dynamics of your game world. Each item can be defined with specific attributes, classifiers, and optional visual representations. This document explains how to define an item, the role of classifiers, and how items interact with the game's mechanics.\",\"url\":\"https://docs.forgegames.org/essentials/items\",\"mainEntityOfPage\":{\"@id\":\"https://docs.forgegames.org/essentials/items#webpage\"},\"dateModified\":\"2026-01-07T02:46:58.715Z\",\"publisher\":{\"@id\":\"https://docs.forgegames.org/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.forgegames.org#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Forge\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Forge","nav":{"global":null,"anchors":[{"anchor":"Documentation","icon":"book-open","groups":[{"group":"","pages":[{"title":"Introduction","href":"/introduction"},{"title":"Build Your Game's Inventory System","href":"/build-inventory-systems"}]},{"group":"Essentials","pages":[{"title":"Classifiers","icon":"layer-group","href":"/essentials/classifiers"},{"title":"Attributes","description":"Define and manage item properties and statistics","icon":"sliders","href":"/essentials/attributes"},{"title":"Items","icon":"sword","href":"/essentials/items"},{"title":"Spaces","description":" Spaces in Forge serve as structured storage areas where item instances are stored and managed within your game. Each space defines a specific area designated for organizing items based on their usage or category. This document outlines how spaces function as storage compartments and their role in facilitating item management. ","icon":"box-open","href":"/essentials/spaces"}]},{"group":"Integration","pages":[{"title":"Access Control","icon":"lock","href":"/integration/access-control"},{"title":"Item Instances","icon":"cube","href":"/integration/item-instances"},{"title":"Rolling","icon":"dice","href":"/integration/rolling"},{"title":"User Management","icon":"users","href":"/integration/user-management"}]},{"group":"Guides","pages":[{"title":"Inventory Systems","icon":"box","href":"/guides/inventory-systems"}]}]},{"anchor":"API Reference","icon":"square-terminal","pages":[{"title":"API Reference","href":"/api-reference/attributes/list-attributes"}]}]},"basePath":"","title":"Items - Forge","buildId":"dpl_G9nrg4qeJSZtah1Ziwbc2n6WkLch","deploymentId":"dpl_G9nrg4qeJSZtah1Ziwbc2n6WkLch","dynamics":[],"chunks":[]}