Line 1,407: |
Line 1,407: |
| ====Data format==== | | ====Data format==== |
| You can now add custom [[Fruit Trees|fruit trees]] by editing the revamped <samp>Data/fruitTrees</samp> asset. This consists of a string → model lookup, where... | | You can now add custom [[Fruit Trees|fruit trees]] by editing the revamped <samp>Data/fruitTrees</samp> asset. This consists of a string → model lookup, where... |
− | * The key is the [[#Custom items|unqualified item ID]] for the sapling item in <samp>Data/ObjectInformation</samp>. | + | * The key is the [[#Custom items|unqualified item ID]] for the sapling item in <samp>Data/Objects</samp>. |
| * The value is a model with the fields listed below. | | * The value is a model with the fields listed below. |
| | | |
Line 1,497: |
Line 1,497: |
| { | | { |
| "Action": "EditData", | | "Action": "EditData", |
− | "Target": "Data/ObjectInformation", | + | "Target": "Data/Objects", |
| "Entries": { | | "Entries": { |
− | "Example.ModId_Pufferfruit": "Pufferfruit/1200/100/Basic -6/Pufferfruit/An example fruit item.////1/Mods\\Example.ModId\\Objects", | + | "Example.ModId_Pufferfruit": { |
− | "Example.ModId_Puffersapling": "Puffersapling/1200/-300/Basic -74/Puffersapling/An example tree sapling.////2/Mods\\Example.ModId\\Objects" | + | "Name": "Pufferfruit", |
| + | "DisplayName": "Pufferfruit", |
| + | "Description": "An example fruit item.", |
| + | "Type": "Basic", |
| + | "Category": -6, |
| + | "Price": 1200, |
| + | |
| + | "Texture": "Mods/Example.ModId/Objects", |
| + | "SpriteIndex": 0 |
| + | }, |
| + | "Example.ModId_Puffersapling": { |
| + | "Name": "Puffersapling", |
| + | "DisplayName": "Puffersapling", |
| + | "Description": "An example tree sapling.", |
| + | "Type": "Basic", |
| + | "Category": -74, |
| + | "Price": 1200, |
| + | |
| + | "Texture": "Mods/Example.ModId/Objects", |
| + | "SpriteIndex": 1 |
| + | } |
| } | | } |
| }, | | }, |
Line 1,510: |
Line 1,530: |
| "Entries": { | | "Entries": { |
| "Example.ModId_Puffersapling": { | | "Example.ModId_Puffersapling": { |
− | "DisplayName": "[DataString Data\ObjectInformation Example.ModId_Pufferfruit 4]", // field 4 (display name) for our fruit item | + | "DisplayName": "Pufferfruit", |
| "Seasons": [ "spring" ], | | "Seasons": [ "spring" ], |
| "Fruit": [ | | "Fruit": [ |
Line 1,518: |
Line 1,538: |
| } | | } |
| ], | | ], |
− | "Texture": "Mods\\Example.ModId\\FruitTrees", | + | "Texture": "Mods/Example.ModId/FruitTrees", |
| "TextureSpriteRow": 0 | | "TextureSpriteRow": 0 |
| } | | } |