Example inconsistency
Davoleo opened this issue ยท 4 comments
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
You have:
"match": {
"drops": {
"items": [
"betterwithmods:unfired_pottery:4"
]
}
}
Should be:
"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/codetaylor/dropt/blob/master/SYNTAX.md
ok it does replace but it also has the old drop
that I would like to remove
"rules": [
{
"match": {
"blocks": {
"blocks": [
"betterwithmods:unfired_pottery:4"
]
}
},
"replaceStrategy": "REPLACE_ITEMS_IF_SELECTED",
"drops": [
{
"selector": {
"weight": {
"value": 100
}
},
"item": {
"items": [
"betterwithmods:unfired_pottery:4"
]
}
}
]
}
]
}```