I will make this add-on for a year and this add-on always disappears and I don’t give up and created an add-on maker to make this add-on easier and become an NPC target block add-on.
Code
{
  “format_version”: “1.16.100”,
  “minecraft:block”: {
    “description”: {
      “identifier”: “wl:target1”,
      “category”: “Nature”
    },
    “components”: {
      “minecraft:loot”: “loot_tables/blocks/wl_target1.json”,
      “minecraft:destroy_time”: 0.3,
      “minecraft:friction”: 0.7,
      “minecraft:map_color”: “#FFFFFF”,
      “minecraft:explosion_resistance”: 1.0,
      “minecraft:block_light_absorption”: 0,
      “minecraft:block_light_emission”: 0.0,
      “minecraft:on_player_destroyed”: {
        “event”: “remove:block”,
        “target”: “self”
      },
      “minecraft:material_instances”: {
        “*”: {
          “texture”: “wl:target1”,
          “render_method”: “blend”
        }
      },
      “minecraft:on_step_on”: {
        “event”: “step:on”,
        “target”: “self”
      },
      “minecraft:on_step_off”: {
        “event”: “step:off”,
        “target”: “self”
      },
      “minecraft:on_placed”: {
        “event”: “size:block”,
        “target”: “self”
      },
      “minecraft:random_ticking”: {
        “on_tick”: {
          “event”: “random:tick”,
          “target”: “self”
        }
      },
      “minecraft:on_fall_on”: {
        “event”: “fall:on”,
        “target”: “self”
      },
      “minecraft:ticking”: {
        “looping”: true,
        “range”: [
          10,
          10
        ],
        “on_tick”: {
          “event”: “on_tick”,
          “target”: “self”
        }
      },
      “minecraft:creative_category”: {
        “category”: “nature”
      },
      “minecraft:entity_collision”: false,
      “minecraft:pick_collision”: {
        “origin”: [
          -8.0,
          0.0,
          -8.0
        ],
        “size”: [
          16.0,
          16.0,
          16.0
        ]
      },
      “tag:wood”: {
      }
    },
    “events”: {
      “remove:block”: {
      },
      “size:block”: {
      },
      “step:on”: {
      },
      “step:off”: {
      },
      “on_tick”: {
      },
      “random:tick”: {
      },
      “fall:on”: {
      }
    },
    “permutations”: [
      {
        “condition”: “query.block_property(‘block:rotation’) == 2”,
        “components”: {
          “minecraft:rotation”: [
            0,
            0,
            0
          ]
        }
      },
      {
        “condition”: “query.block_property(‘block:rotation’) == 3”,
        “components”: {
          “minecraft:rotation”: [
            0,
            -180,
            0
          ]
        }
      },
      {
        “condition”: “query.block_property(‘block:rotation’) == 4”,
        “components”: {
          “minecraft:rotation”: [
            0,
            90,
            0
          ]
        }
      },
      {
        “condition”: “query.block_property(‘block:rotation’) == 5”,
        “components”: {
          “minecraft:rotation”: [
            0,
            -90,
            0
         ]
        }
      }
    ]
  }
}
{
  “format_version”: “1.16.100”,
  “minecraft:block”: {
    “description”: {
      “identifier”: “wl:target2”,
      “category”: “Nature”
    },
    “components”: {
      “minecraft:loot”: “loot_tables/blocks/wl_target2.json”,
      “minecraft:destroy_time”: 0.3,
      “minecraft:friction”: 0.7,
      “minecraft:map_color”: “#FFFFFF”,
      “minecraft:explosion_resistance”: 1.0,
      “minecraft:block_light_absorption”: 0,
      “minecraft:block_light_emission”: 0.0,
      “minecraft:on_player_destroyed”: {
        “event”: “remove:block”,
        “target”: “self”
      },
      “minecraft:material_instances”: {
        “*”: {
          “texture”: “wl:target2”,
          “render_method”: “blend”
        }
      },
      “minecraft:on_step_on”: {
        “event”: “step:on”,
        “target”: “self”
      },
      “minecraft:on_step_off”: {
        “event”: “step:off”,
        “target”: “self”
      },
      “minecraft:on_placed”: {
        “event”: “size:block”,
        “target”: “self”
      },
      “minecraft:random_ticking”: {
        “on_tick”: {
          “event”: “random:tick”,
          “target”: “self”
        }
      },
      “minecraft:on_fall_on”: {
        “event”: “fall:on”,
        “target”: “self”
      },
      “minecraft:ticking”: {
        “looping”: true,
        “range”: [
          10,
          10
        ],
        “on_tick”: {
          “event”: “on_tick”,
          “target”: “self”
        }
      },
      “minecraft:creative_category”: {
        “category”: “nature”
      },
      “minecraft:entity_collision”: false,
      “minecraft:pick_collision”: {
        “origin”: [
          -8.0,
          0.0,
          -8.0
        ],
        “size”: [
          16.0,
          16.0,
          16.0
        ]
      },
      “tag:wood”: {
      }
    },
    “events”: {
      “remove:block”: {
      },
      “size:block”: {
      },
      “step:on”: {
      },
      “step:off”: {
      },
      “on_tick”: {
      },
      “random:tick”: {
      },
      “fall:on”: {
      }
    },
    “permutations”: [
      {
        “condition”: “query.block_property(‘block:rotation’) == 2”,
        “components”: {
          “minecraft:rotation”: [
            0,
            0,
            0
          ]
        }
      },
      {
        “condition”: “query.block_property(‘block:rotation’) == 3”,
        “components”: {
          “minecraft:rotation”: [
            0,
            -180,
            0
          ]
        }
      },
      {
        “condition”: “query.block_property(‘block:rotation’) == 4”,
        “components”: {
          “minecraft:rotation”: [
            0,
            90,
            0
          ]
        }
      },
      {
        “condition”: “query.block_property(‘block:rotation’) == 5”,
        “components”: {
          “minecraft:rotation”: [
            0,
            -90,
            0
         ]
        }
      }
    ]
  }
}
{
  “format_version”: “1.16.100”,
  “minecraft:block”: {
    “description”: {
      “identifier”: “wl:target3”,
      “category”: “Nature”
    },
    “components”: {
      “minecraft:loot”: “loot_tables/blocks/wl_target3.json”,
      “minecraft:destroy_time”: 0.3,
      “minecraft:friction”: 0.7,
      “minecraft:map_color”: “#FFFFFF”,
      “minecraft:explosion_resistance”: 1.0,
      “minecraft:block_light_absorption”: 0,
      “minecraft:block_light_emission”: 0.0,
      “minecraft:on_player_destroyed”: {
        “event”: “remove:block”,
        “target”: “self”
      },
      “minecraft:material_instances”: {
        “*”: {
          “texture”: “wl:target3”,
          “render_method”: “blend”
        }
      },
      “minecraft:on_step_on”: {
        “event”: “step:on”,
        “target”: “self”
      },
      “minecraft:on_step_off”: {
        “event”: “step:off”,
        “target”: “self”
      },
      “minecraft:on_placed”: {
        “event”: “size:block”,
        “target”: “self”
      },
      “minecraft:random_ticking”: {
        “on_tick”: {
          “event”: “random:tick”,
          “target”: “self”
        }
      },
      “minecraft:on_fall_on”: {
        “event”: “fall:on”,
        “target”: “self”
      },
      “minecraft:ticking”: {
        “looping”: true,
        “range”: [
          10,
          10
        ],
        “on_tick”: {
          “event”: “on_tick”,
          “target”: “self”
        }
      },
      “minecraft:creative_category”: {
        “category”: “nature”
      },
      “minecraft:entity_collision”: false,
      “minecraft:pick_collision”: {
        “origin”: [
          -8.0,
          0.0,
          -8.0
        ],
        “size”: [
          16.0,
          16.0,
          16.0
        ]
      },
      “tag:wood”: {
      }
    },
    “events”: {
      “remove:block”: {
      },
      “size:block”: {
      },
      “step:on”: {
      },
      “step:off”: {
      },
      “on_tick”: {
      },
      “random:tick”: {
      },
      “fall:on”: {
      }
    },
    “permutations”: [
      {
        “condition”: “query.block_property(‘block:rotation’) == 2”,
        “components”: {
          “minecraft:rotation”: [
            0,
            0,
            0
          ]
        }
      },
      {
        “condition”: “query.block_property(‘block:rotation’) == 3”,
        “components”: {
          “minecraft:rotation”: [
            0,
            -180,
            0
          ]
        }
      },
      {
        “condition”: “query.block_property(‘block:rotation’) == 4”,
        “components”: {
          “minecraft:rotation”: [
            0,
            90,
            0
          ]
        }
      },
      {
        “condition”: “query.block_property(‘block:rotation’) == 5”,
        “components”: {
          “minecraft:rotation”: [
            0,
            -90,
            0
         ]
        }
      }
    ]
  }
}
{
  “format_version”: “1.16.100”,
  “minecraft:block”: {
    “description”: {
      “identifier”: “wl:target4”,
      “category”: “Nature”
    },
    “components”: {
      “minecraft:loot”: “loot_tables/blocks/wl_target4.json”,
      “minecraft:destroy_time”: 0.3,
      “minecraft:friction”: 0.7,
      “minecraft:map_color”: “#FFFFFF”,
      “minecraft:explosion_resistance”: 1.0,
      “minecraft:block_light_absorption”: 0,
      “minecraft:block_light_emission”: 0.0,
      “minecraft:on_player_destroyed”: {
        “event”: “remove:block”,
        “target”: “self”
      },
      “minecraft:material_instances”: {
        “*”: {
          “texture”: “wl:target4”,
          “render_method”: “blend”
        }
      },
      “minecraft:on_step_on”: {
        “event”: “step:on”,
        “target”: “self”
      },
      “minecraft:on_step_off”: {
        “event”: “step:off”,
        “target”: “self”
      },
      “minecraft:on_placed”: {
        “event”: “size:block”,
        “target”: “self”
      },
      “minecraft:random_ticking”: {
        “on_tick”: {
          “event”: “random:tick”,
          “target”: “self”
        }
      },
      “minecraft:on_fall_on”: {
        “event”: “fall:on”,
        “target”: “self”
      },
      “minecraft:ticking”: {
        “looping”: true,
        “range”: [
          10,
          10
        ],
        “on_tick”: {
          “event”: “on_tick”,
          “target”: “self”
        }
      },
      “minecraft:creative_category”: {
        “category”: “nature”
      },
      “minecraft:entity_collision”: false,
      “minecraft:pick_collision”: {
        “origin”: [
          -8.0,
          0.0,
          -8.0
        ],
        “size”: [
          16.0,
          16.0,
          16.0
        ]
      },
      “tag:wood”: {
      }
    },
    “events”: {
      “remove:block”: {
      },
      “size:block”: {
      },
      “step:on”: {
      },
      “step:off”: {
      },
      “on_tick”: {
      },
      “random:tick”: {
      },
      “fall:on”: {
      }
    },
    “permutations”: [
      {
        “condition”: “query.block_property(‘block:rotation’) == 2”,
        “components”: {
          “minecraft:rotation”: [
            0,
            0,
            0
          ]
        }
      },
      {
        “condition”: “query.block_property(‘block:rotation’) == 3”,
        “components”: {
          “minecraft:rotation”: [
            0,
            -180,
            0
          ]
        }
      },
      {
        “condition”: “query.block_property(‘block:rotation’) == 4”,
        “components”: {
          “minecraft:rotation”: [
            0,
            90,
            0
          ]
        }
      },
      {
        “condition”: “query.block_property(‘block:rotation’) == 5”,
        “components”: {
          “minecraft:rotation”: [
            0,
            -90,
            0
         ]
        }
      }
    ]
  }
}
{
  “format_version”: “1.16.100”,
  “minecraft:block”: {
    “description”: {
      “identifier”: “wl:target5”,
      “category”: “Nature”
    },
    “components”: {
      “minecraft:loot”: “loot_tables/blocks/wl_target5.json”,
      “minecraft:destroy_time”: 0.3,
      “minecraft:friction”: 0.7,
      “minecraft:map_color”: “#FFFFFF”,
      “minecraft:explosion_resistance”: 1.0,
      “minecraft:block_light_absorption”: 0,
      “minecraft:block_light_emission”: 0.0,
      “minecraft:on_player_destroyed”: {
        “event”: “remove:block”,
        “target”: “self”
      },
      “minecraft:material_instances”: {
        “*”: {
          “texture”: “wl:target5”,
          “render_method”: “blend”
        }
      },
      “minecraft:on_step_on”: {
        “event”: “step:on”,
        “target”: “self”
      },
      “minecraft:on_step_off”: {
        “event”: “step:off”,
        “target”: “self”
      },
      “minecraft:on_placed”: {
        “event”: “size:block”,
        “target”: “self”
      },
      “minecraft:random_ticking”: {
        “on_tick”: {
          “event”: “random:tick”,
          “target”: “self”
        }
      },
      “minecraft:on_fall_on”: {
        “event”: “fall:on”,
        “target”: “self”
      },
      “minecraft:ticking”: {
        “looping”: true,
        “range”: [
          10,
          10
        ],
        “on_tick”: {
          “event”: “on_tick”,
          “target”: “self”
        }
      },
      “minecraft:creative_category”: {
        “category”: “nature”
      },
      “minecraft:entity_collision”: false,
      “minecraft:pick_collision”: {
        “origin”: [
          -8.0,
          0.0,
          -8.0
        ],
        “size”: [
          16.0,
          16.0,
          16.0
        ]
      },
      “tag:wood”: {
      }
    },
    “events”: {
      “remove:block”: {
      },
      “size:block”: {
      },
      “step:on”: {
      },
      “step:off”: {
      },
      “on_tick”: {
      },
      “random:tick”: {
      },
      “fall:on”: {
      }
    },
    “permutations”: [
      {
        “condition”: “query.block_property(‘block:rotation’) == 2”,
        “components”: {
          “minecraft:rotation”: [
            0,
            0,
            0
          ]
        }
      },
      {
        “condition”: “query.block_property(‘block:rotation’) == 3”,
        “components”: {
          “minecraft:rotation”: [
            0,
            -180,
            0
          ]
        }
      },
      {
        “condition”: “query.block_property(‘block:rotation’) == 4”,
        “components”: {
          “minecraft:rotation”: [
            0,
            90,
            0
          ]
        }
      },
      {
        “condition”: “query.block_property(‘block:rotation’) == 5”,
        “components”: {
          “minecraft:rotation”: [
            0,
            -90,
            0
         ]
        }
      }
    ]
  }
}


