Changes

m
Replace deprecated <source> tags with <syntaxhighlight> tags
Line 5: Line 5:  
==Raw data==
 
==Raw data==
 
Context tags are stored in <tt>Content\Data\ObjectContextTags.xnb</tt>, which can be [[Modding:Editing XNB files#unpacking|unpacked for editing]]. Here's the raw data as of {{version|1.5.1}}:
 
Context tags are stored in <tt>Content\Data\ObjectContextTags.xnb</tt>, which can be [[Modding:Editing XNB files#unpacking|unpacked for editing]]. Here's the raw data as of {{version|1.5.1}}:
{{collapse|Data|content=<source lang="json">
+
{{collapse|Data|content=<syntaxhighlight lang="json">
 
{
 
{
 
   "Wild Horseradish": "color_brown, forage_item, season_spring",
 
   "Wild Horseradish": "color_brown, forage_item, season_spring",
Line 617: Line 617:  
   "Horse Flute": ""
 
   "Horse Flute": ""
 
}
 
}
</source>}}
+
</syntaxhighlight>}}
    
Each item also has automatic context tags which aren't listed in the data file. That includes context tags for the item name, quality, and category. The <tt>listtags</tt> [[Modding:Debug commands|debug command]] lists all the tags of the item being held.
 
Each item also has automatic context tags which aren't listed in the data file. That includes context tags for the item name, quality, and category. The <tt>listtags</tt> [[Modding:Debug commands|debug command]] lists all the tags of the item being held.
114

edits