Repository navigation
Data Modding
(Note this section only applies to games that have incorporated the mod loader into them. Otherwise all of the data resides in the regular scripts)
All data changes go under the Data/ folder in the mod. To edit parts of a file you need to create directories corresponding to all of the parent directories of the file and then create the file inside.
For text files individual attributes in it can be overridden. Text files utilize a custom scripting language
To declare a key and a value
x: y
with x replaced by the key and y replaced by the value. This will allow you to then look up an attribute value by the key (ex. movement-speed: 400. Allows you to look up the movement speed and get the value 400 to then use)
To declare an array do
x[]
with x replaced by the array name. Individual values can then be put into the array by doing new lines and a two space indent before each one Example:
biomes[]
forest
desert
ocean
If you want to replace a value defined in the base game or another mod you have to make sure to use the exact key and then assign it a new value
Overall Example
Base Game (character.txt)
movement-speed: 400
jump-power: 150
clothes[]
shirt
pants
backpack
Mod 1
movement-speed: 200
dash-speed: 500
clothes[]
socks
Mod 2 (uses mod 1 as a dependency or is later alphabetically)
movement-speed: 100
jump-power: 200
clothes[]
shoes
Final Attributes used in the game
movement-speed: 100
dash-speed: 500
jump-power: 200
clothes[]
shirt
pants
backpack
socks
shoes