HttpRafa / creeper-recover

Recovers all destroyed blocks by Creeper or other Entities
MIT License
6 stars 0 forks source link

TNT also is rebuilt #2

Closed squaresaresquare closed 1 year ago

squaresaresquare commented 1 year ago

I only have CREEPER in my target block but both creeper and tnt are recovered.

{ "configVersion": 1, "plugin": { "bStats": true, "ignoreUpdates": false }, "recover": { "recoverSpeed": 3, "blockRecoverSound": "BLOCK_ROOTED_DIRT_PLACE" }, "target": [ { "type": "ENTITY", "ignore": false, "all": true, "entityTypes": [ "CREEPER" ] }, { "type": "HEIGHT_RANGE", "ignore": false, "from": -64, "to": 320 }, { "type": "HEIGHT_FIXED", "ignore": true, "fixed": 32 } ] }

HttpRafa commented 1 year ago

I'm sorry I didn't explain this properly in the documentation. If you only want certain entities to be affected by the plugin, "all" must be set to false in the entity target. If "all" is set to true the plugin will ignore "entityTypes". If it still doesn't work, please contact me again.


{
  "configVersion": 1,
  "plugin": {
    "bStats": true,
    "ignoreUpdates": false
  },
  "recover": {
    "recoverSpeed": 3,
    "blockRecoverSound": "BLOCK_ROOTED_DIRT_PLACE"
  },
  "target": [
    {
      "type": "ENTITY",
      "ignore": false,
      "all": false, // This line needs to be changed.
      "entityTypes": [
        "CREEPER"
      ]
    },
    {
      "type": "HEIGHT_RANGE",
      "ignore": false,
      "from": -64,
      "to": 320
    },
    {
      "type": "HEIGHT_FIXED",
      "ignore": true,
      "fixed": 32
    }
  ]
}