Jump to content

Can't modify "drops" value in "cobblestonestairs.json" using json patching ?


Zit

Recommended Posts

Hello, i modified the drop value of cobblestonestairs to drop stones and clay instead of the actual stair block, but it doesnt seems to work.. it still drops the stairs block.  i did the same for "cobblestone" block and "cobbleslab" and it work just fine, am i doing anything wrong ?

 

 {
    "side": "Server",
    "file": "game:blocktypes/stone/cobble/cobblestone",
    "op": "add", // here i use 'add' since cobblestone has no "drops" in the json file, works just fine.
    "path": "/drops",
    "value": [
      {
        "type": "item",
        "code": "stone-{rock}",
        "quantity": {
          "avg": 7,
          "var": 1
        }
      },
      {
        "type": "item",
        "code": "clay-blue",
        "quantity": {
          "avg": 0.25
        }
      }
    ]
  },
  {
    "side": "Server",
    "file": "game:blocktypes/stone/cobble/cobblestonestairs",
    "op": "add", // same here but doesnt work 
    "path": "/drops",
    "value": [
      {
        "type": "item",
        "code": "stone-{rock}",
        "quantity": {
          "avg": 5,
          "var": 1
        }
      },
      {
        "type": "item",
        "code": "clay-blue",
        "quantity": {
          "avg": 0.25
        }
      }
    ]
  },
  {
    "side": "Server",
    "file": "game:blocktypes/stone/cobble/cobbleslab",
    "op": "replace", // cobbleslab has a "drops" field, so i replace it, it works.
    "path": "/drops",
    "value": [
      {
        "type": "item",
        "code": "stone-{rock}",
        "quantity": {
          "avg": 2,
          "var": 1
        }
      },
      {
        "type": "item",
        "code": "clay-blue",
        "quantity": {
          "avg": 0.25
        }
      }
    ]
  }

 

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.