TerraTech

TerraTech

Not enough ratings
JSONChangePatcher
   
Award
Favorite
Favorited
Unfavorite
Type: Mods
File Size
Posted
Updated
16.800 KB
20 Oct, 2022 @ 7:56pm
20 Oct, 2022 @ 10:01pm
4 Change Notes ( view )

Subscribe to download
JSONChangePatcher

In 1 collection by FLSoz
Test
35 items
Description
What does this mod do?
Allows modders to specify block changes for BlockChangePatcher in JSON instead of C#.

Modders must:
  • Create each change in its own .json file
  • Add all .json files as additional assets in the advanced tab

Each .json file must be in the following format:
{ "Target": { "TargetType": <target type>, "NumericalID": <number>, // to be used with either LEGACY or VANILLA "BlockID": <string> // to be used with BLOCK_ID. Is for official blocks, // and will be of form <mod_id>:<block_id> }, "Change": { // The equivalent to BlockInjector DESERIALIZER code } }
where TargetType is an enum with the values:
public enum ChangeTargetType : byte { VANILLA_ID, // 0 BLOCK_ID, // 1 LEGACY_ID // 2 }

Contains a sample .json change that will change the Haemotrope reactor output (available using Legacy block Loader only) to 760 a second:
{ "Target": { "TargetType": "LEGACY_ID", "NumericalID": 10016 }, "Change": { "ModuleEnergy": { "m_OutputPerSecond": 760 } } }

How to Bug Report
See this forum thread[forum.terratechgame.com] for information on how to submit good bug reports.