SMAPI
About SMAPI
Modding docs
Tools
Mod compatibility
Log parser
JSON validator
JSON validator
Upload a JSON file
Choose the JSON format:
None
SMAPI: manifest
SMAPI: translations (i18n)
Content Patcher
Drag the file onto this textbox
(or
choose a 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 }, } }
Click this button: