Changes

Jump to navigation Jump to search
→‎Standardized data fields: removed for build 23265 (no longer a systematic change; specific fields will be listed under XNB impact)
Line 8,918: Line 8,918:  
==Breaking changes for content packs==
 
==Breaking changes for content packs==
 
'''This section only describes how this update may break existing mods. See the ''what's new'' sections above for more info, including new functionality mods can use.'''
 
'''This section only describes how this update may break existing mods. See the ''what's new'' sections above for more info, including new functionality mods can use.'''
  −
===Standardized data fields===
  −
1.6 standardizes the fields in <samp>Data/AquariumFish</samp>, <samp>Data/Bundles</samp>, <samp>Data/Furniture</samp>, and <samp>Data/hats</samp>. Specifically:
  −
* all fields must now be specified (even if they're blank);
  −
* display name fields are now required in English too.
  −
  −
For example, you can no longer omit empty fields in <samp>Data/AquariumFish</samp>:
  −
<syntaxhighlight lang="js">
  −
// in 1.5.6
  −
"128": "0/float"
  −
  −
// in 1.6
  −
"128": "0/float//////"
  −
</syntaxhighlight>
  −
  −
Existing mods which add entries without the now-required fields may cause errors and crashes.
      
===Standardized ID fields===
 
===Standardized ID fields===
translators
8,446

edits

Navigation menu