1. विकी
  2. /एंटिटी
  3. /minecraft:custom_hit_test

minecraft:custom_hit_test

इसे हाथ से नहीं लिखना चाहते? GodCraft एक स्विच से minecraft:custom_hit_test आपके लिए सेट कर देता है।Get GodCraft

ओवरव्यू

minecraft:custom_hit_test एक एंटिटी कंपोनेंट है: यह कस्टम मॉब के components ऑब्जेक्ट में, या उसके किसी component group में जाता है। एक या ज़्यादा boxes बनाता है जो एंटिटी पर melee या projectiles से hit होने पर गिने जाते हैं। तब इस्तेमाल करें जब क्लिक करने वाला हिस्सा collision box से अलग होना चाहिए।

फ़ील्ड

फ़ील्डटाइपडिफ़ॉल्टविवरण
hitboxesArrayकोई नहींHit boxes की लिस्ट, हर एक का अपना साइज़ और offset।

उदाहरण

BP/entities/<name>.json के components ऑब्जेक्ट के अंदर (मान डिफ़ॉल्ट या placeholder हैं):

BP/entities/<name>.json
{
  "minecraft:custom_hit_test": {
    "hitboxes": {}
  }
}

We use cookies to improve your experience and analyse site traffic. Learn more