minecraft:on_target_acquired आपके लिए सेट कर देता है।Get GodCraftओवरव्यू
minecraft:on_target_acquired एक एंटिटी कंपोनेंट है: यह कस्टम मॉब के components ऑब्जेक्ट में, या उसके किसी component group में जाता है। इस एंटिटी के नया टारगेट चुनने पर event चलाता है, जैसे गुस्से वाले लुक पर switch करने के लिए।
फ़ील्ड
| फ़ील्ड | टाइप | डिफ़ॉल्ट | विवरण |
|---|---|---|---|
event | string | "" | चलने वाले event का नाम। |
target | FilterSubject | "self" | Event किस पर चलता है, जैसे self या other। |
filters | Filter Group | {"AND":null,"NOT":null,"OR":null,"all":null,"all_of":null,"any":null,"any_of":null,"none_of":null} | Event चलने के लिए true होनी ज़रूरी शर्तें। |
उदाहरण
BP/entities/<name>.json के components ऑब्जेक्ट के अंदर (मान डिफ़ॉल्ट या placeholder हैं):
BP/entities/<name>.json
{
"minecraft:on_target_acquired": {
"event": "",
"target": "self",
"filters": {
"AND": null,
"NOT": null,
"OR": null,
"all": null,
"all_of": null,
"any": null,
"any_of": null,
"none_of": null
}
}
}