Jump to content

Recommended Posts

Posted

Hello hello! I'm just learning how to do JSON patching and have an idea for a patch that I'd like to do, but can't seem to figure out how to do it. 

The server I play on uses Coinage for our in-game currency over gears. We also have Quivers and Sheaths installed, which has an item that can store gears on the player. What I would like to do is to make a patch to store coins from Coinage within said pouch. Now, the pouch already has the "coin" tag associated with it, and Malteiz even told me to just add the "coin" tag to Coinage coins. However, the itemtype "coin" doesn't contain a "tags" field to my knowledge, and I can't seem to figure out how to add a "tags" field where one does not exist. 

Posted
On 4/13/2026 at 5:01 PM, BooshWookery said:

However, the itemtype "coin" doesn't contain a "tags" field to my knowledge

The tags field is part of the `CollectibleObject` class which is a shared base class for `Item` and `Block`, you can't really have an item that does not implement this. Though if I remember correctly tags where only added recently, don't think they even exist in the latest stable release.
 

On 4/13/2026 at 5:01 PM, BooshWookery said:

and I can't seem to figure out how to add a "tags" field where one does not exist. 

You can use an AddMerge patch for that: https://wiki.vintagestory.at/Modding:JSON_Patching#AddMerge_operation

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.