Modding:JSON Patching: Difference between revisions

From Vintage Story Wiki
→‎The basics: Added addeach operation
m (Double checked information and added version)
(→‎The basics: Added addeach operation)
Line 19: Line 19:


* '''File''' is where the file you want to change is located.  
* '''File''' is where the file you want to change is located.  
* '''Op''' stands for operation and it's what you want to do. Valid operations are '''add''', '''remove''', and '''replace'''.
* '''Op''' stands for operation and it's what you want to do. Valid operations are '''add''', '''addeach''', '''remove''', and '''replace'''.
* '''Path''' is where the value you want to change in the file is located.
* '''Path''' is where the value you want to change in the file is located.
* '''Value''' is what you want to put in the file.
* '''Value''' is what you want to put in the file.
Line 60: Line 60:
</syntaxhighlight>
</syntaxhighlight>
Since the value is a number we just put a number. If it were text, the value would be "'''6'''".
Since the value is a number we just put a number. If it were text, the value would be "'''6'''".


=== Advanced patching ===
=== Advanced patching ===
Confirmedusers, editor
982

edits