Jump to content

Update blocks already in world with JSON patch?


ChaOS25

Recommended Posts

Hey all, first time modder here. I am writing a small mod for me and my friend's server to make finding resin logs easier (they will emit a soft glow). I have the JSON patch working, the only problem is that the existing resin log blocks in the world are not updated. If I force the block to update, e.g. by harvesting the resin, then the block updates itself and works as expected. Is there a way to trigger a map-wide update of this specific block? Thanks in advance.

Here's my patch JSON if that helps:

[
	{
		"op": "add",
		"file": "game:blocktypes/wood/woodtyped/log-withresin",
		"path": "/lightAbsorption",
		"value": 0
	},
	{
		"op": "add",
		"file": "game:blocktypes/wood/woodtyped/log-withresin",
		"path": "/lightHsvByType",
		"value": {
			"log-resinharvested-*": [7, 7, 6],
			"*": [7, 7, 10],
		}
	}
]

 

Link to comment
Share on other sites

×
×
  • 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.