JSON validator
Validation
Oops, found some issues with your JSON. (You have no schema selected, so only the basic JSON syntax was checked.)
| Line | Field | Error |
|---|---|---|
| 23 | Entries | Invalid property identifier character: {. Path 'Entries', line 23, position 1. |
Content
You can change JSON format () or edit this file.
////traction
{
"LogName": "read potion books tractions",
"Action": "EditData",
"Target": "Data/TriggerActions",
"Entries": {
"{{ModID}}_PotionBook1_TrAction":
{
"Id": "{{ModID}}_PotionBook1_TrAction",
"Trigger": "spacechase0.SpaceCore_OnItemUsed",
"Condition": "ITEM_ID Target (O)MM_PotionBook1",
"Actions": [
"Spiderbuttons.BETAS_Message \"{{i18n:PotionBook_Read}}\" true",
"Spiderbuttons.BETAS_PlaySound book_read",
"AddConversationTopic {{ModID}}_PotionBook1_Read 7"
]
},
},
///////powers
{
"Action": "EditData",
"Target": "Data/Powers",
"Entries": {
"{{ModId}}_PotionBrewing1":
{
"DisplayName": "{{i18n:PotionBrewing1.DisplayName}}",
"Description": "{{i18n:PotionBrewing1.Description}}",
"TexturePath": "Mods/{{ModId}}/SpritesGlionox",
"TexturePosition": {
"X": 128,
"Y": 16
},
"UnlockedCondition": "PLAYER_HAS_RUN_TRIGGER_ACTION Current {{ModID}}_PotionBook1_TrAction",
},
}
}
////item to be used within the objects edit data patch
//imagine { "LogName": "blabla" etc etc} here
"MM_PotionBook1":
{
"Name": "MM_PotionBook1",
"DisplayName": "{{i18n:MM_PotionBook1.DisplayName}}",
"Description": "{{i18n:MM_PotionBook1.Description}}",
"Type": "Basic",
"Category": -103,
"Price": 10000,
"Texture": "{{ModID}}/SpritesGlionox",
"SpriteIndex": 18,
"ColorOverlayFromNextIndex": false,
"Edibility": 0,
"IsDrink": false,
"ExcludeFromShippingCollection": true,
"ExcludeFromRandomSale": true,
"ContextTags": [ "book_item", "Potion_book", "potion_vendor_exclusive", "basic_potion_book" ],
},
/////space core
{
"LogName": "SpaceCore: vanilla asset expansions",
"Action": "EditData",
"Target": "spacechase0.SpaceCore/ObjectExtensionData",
"Entries": {
"MM_PotionBook1": {
"UseForTriggerAction": true,
"ConsumeForTriggerAction": true
},
}
}