itzg / mc-image-helper

This tool does the complicated bits for the itzg/minecraft-server image
MIT License
59 stars 26 forks source link

Object type for patches? #445

Open paradox460 opened 4 months ago

paradox460 commented 4 months ago

I've read across the docs, and can't seem to figure out how I could go about changing a config that expects an "object" (key-value pairs) in a reliable way.

Specifically, I'm looking to edit the paper config for $.entities.spawning.alt-item-despawn-rate.items. This is an object type, and the default configs helpfully include an example of cobblestone: 300. I would like to remove that, and then add my own key(s) and values as appropriate.

Adding the new values seems simple enough, just use a put operation. But removing the old value has stymied me