opened
Davoleo
username_0
Ok, I need the better with mods's unfired brick to drop itself, so I created this script

`{
  "rules": [
    {
      "match": {
        "drops": {
          "items": [
            "betterwithmods:unfired_pottery:4"
          ]
        }
      },
      "replaceStrategy": "REPLACE_ITEMS_IF_SELECTED",
      "drops": [
        {
          "selector": {
            "weight": {
              "value": 100
            }
          },
          "item": {
            "items": [
              "betterwithmods:unfired_pottery:4"
            ]
          }
        }
      ]
    }
  ]
}`

but instead of adding the drop just to the brick it adds it to every item in the game
I don't know what replace strategies are avaliable, but I think the problem is there
[Question] Replace Strategies
issue
created
codetaylor
username_1
You have:

```json
"match": {
  "drops": {
    "items": [
      "betterwithmods:unfired_pottery:4"
    ]
  }
}
```

Should be:

```json
"match": {
  "drops": {
    "drops": [
      "betterwithmods:unfired_pottery:4"
    ]
  }
}
```

Looks like there is some inconsistency in the examples, I'll fix that.

In the meantime: https://github.com/username_1/dropt/blob/master/SYNTAX.md
comment
created
Davoleo
username_0
oh ok, thanks!
comment
created
Davoleo
username_0
mmh, when it's like this it doesn't replace the drop 

`{
  "rules": [
    {
      "match": {
        "drops": {
          "drops": [
            "betterwithmods:unfired_pottery:4"
          ]
        }
      },
      "replaceStrategy": "REPLACE_ITEMS_IF_SELECTED",
      "drops": [
        {
          "selector": {
            "weight": {
              "value": 100
            }
          },
          "item": {
            "items": [
              "betterwithmods:unfired_pottery:4"
            ]
          }
        }
      ]
    }
  ]
}`
comment
created
Davoleo
username_0
OK, I sorted out by myself, sorry for the ignorance but I'm really new to this mod
comment
closed
codetaylor
username_1
issue