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

minecraft:hurt_on_condition

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

ओवरव्यू

minecraft:hurt_on_condition एक एंटिटी कंपोनेंट है: यह कस्टम मॉब के components ऑब्जेक्ट में, या उसके किसी component group में जाता है। कुछ शर्तें true होने पर एंटिटी को damage देता है, जैसे lava में खड़े होना या पानी छूना।

फ़ील्ड

फ़ील्डटाइपडिफ़ॉल्टविवरण
damage_conditionsArrayकोई नहींशर्तों की लिस्ट, हर एक में damage type, मात्रा और चलने वाला event।

उदाहरण

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

BP/entities/<name>.json
{
  "minecraft:hurt_on_condition": {
    "damage_conditions": {}
  }
}

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