3. 攻撃性の編集
必要なものは
minecraft:behavior.nearest_attackable_target
Entity Documentation - minecraft:behavior.nearest_attackable_target | Microsoft Docs
minecraft:behavior.melee_attack
Entity Documentation - minecraft:behavior.melee_attack | Microsoft Docs
下記がzombieのもの。適宜修正して使用。
"priority": 2,
"must_see": true,
"reselect_targets": true,
"must_see_forget_duration": 17.0,
"entity_types": [
{
"filters": {
"any_of": [
]
},
"max_dist": 35
},
{
"filters": {
"any_of": [
]
},
"max_dist": 35,
"must_see": false
},
{
"filters": {
"all_of": [
]
},
"max_dist": 35
}
]
},
"priority": 3
},
"damage": 3
}