minecraft:custom_hit_test आपके लिए सेट कर देता है।Get GodCraftओवरव्यू
minecraft:custom_hit_test एक एंटिटी कंपोनेंट है: यह कस्टम मॉब के components ऑब्जेक्ट में, या उसके किसी component group में जाता है। एक या ज़्यादा boxes बनाता है जो एंटिटी पर melee या projectiles से hit होने पर गिने जाते हैं। तब इस्तेमाल करें जब क्लिक करने वाला हिस्सा collision box से अलग होना चाहिए।
फ़ील्ड
| फ़ील्ड | टाइप | डिफ़ॉल्ट | विवरण |
|---|---|---|---|
hitboxes | Array | कोई नहीं | Hit boxes की लिस्ट, हर एक का अपना साइज़ और offset। |
उदाहरण
BP/entities/<name>.json के components ऑब्जेक्ट के अंदर (मान डिफ़ॉल्ट या placeholder हैं):
BP/entities/<name>.json
{
"minecraft:custom_hit_test": {
"hitboxes": {}
}
}