Line 67: |
Line 67: |
| <li>[[Modding:Content packs#Create a content pack|Create a SMAPI content pack]].</li> | | <li>[[Modding:Content packs#Create a content pack|Create a SMAPI content pack]].</li> |
| <li>Create a <tt>content.json</tt> file in the same folder with this content: | | <li>Create a <tt>content.json</tt> file in the same folder with this content: |
− | <source lang="javascript"> | + | <syntaxhighlight lang="javascript"> |
| { | | { |
| "Format": "1.19.0", | | "Format": "1.19.0", |
Line 73: |
Line 73: |
| ] | | ] |
| } | | } |
− | </source> | + | </syntaxhighlight> |
| </li> | | </li> |
| <li>Launch the game.</li> | | <li>Launch the game.</li> |
Line 87: |
Line 87: |
| | | |
| You can list any number of patches in the <tt>Changes</tt> field, each surrounded by <code>{</code> and <code>}</code>. See the next section for more info, but here's a quick example: | | You can list any number of patches in the <tt>Changes</tt> field, each surrounded by <code>{</code> and <code>}</code>. See the next section for more info, but here's a quick example: |
− | <source lang="javascript"> | + | <syntaxhighlight lang="javascript"> |
| { | | { |
| "Format": "1.19.0", | | "Format": "1.19.0", |
Line 104: |
Line 104: |
| ] | | ] |
| } | | } |
− | </source> | + | </syntaxhighlight> |
| | | |
| (There are other fields like <tt>ConfigSchema</tt> and <tt>DynamicTokens</tt> for more advanced usage; these are covered in the full readme.) | | (There are other fields like <tt>ConfigSchema</tt> and <tt>DynamicTokens</tt> for more advanced usage; these are covered in the full readme.) |
Line 125: |
Line 125: |
| | | |
| For horses: | | For horses: |
− | <source lang="javascript"> | + | <syntaxhighlight lang="javascript"> |
| //horse head in inventory | | //horse head in inventory |
| { | | { |
Line 135: |
Line 135: |
| "Patchmode": "Replace" | | "Patchmode": "Replace" |
| } | | } |
− | </source> | + | </syntaxhighlight> |
| | | |
| For dogs: | | For dogs: |
− | <source lang="javascript"> | + | <syntaxhighlight lang="javascript"> |
| //dog head in inventory | | //dog head in inventory |
| | | |
Line 147: |
Line 147: |
| "ToArea": { "X": 240, "Y": 208, "Width": 16, "Height": 16 }, //Dog 3 | | "ToArea": { "X": 240, "Y": 208, "Width": 16, "Height": 16 }, //Dog 3 |
| | | |
− | </source> | + | </syntaxhighlight> |
| | | |
| For cats: | | For cats: |
− | <source lang="javascript"> | + | <syntaxhighlight lang="javascript"> |
| //cat head in inventory | | //cat head in inventory |
| | | |
Line 159: |
Line 159: |
| "ToArea": { "X": 192, "Y": 208, "Width": 16, "Height": 16 }, //Cat 3 | | "ToArea": { "X": 192, "Y": 208, "Width": 16, "Height": 16 }, //Cat 3 |
| | | |
− | </source> | + | </syntaxhighlight> |
| | | |
| <!-- | | <!-- |