minecraft:hurt_on_condition आपके लिए सेट कर देता है।Get GodCraftओवरव्यू
minecraft:hurt_on_condition एक एंटिटी कंपोनेंट है: यह कस्टम मॉब के components ऑब्जेक्ट में, या उसके किसी component group में जाता है। कुछ शर्तें true होने पर एंटिटी को damage देता है, जैसे lava में खड़े होना या पानी छूना।
फ़ील्ड
| फ़ील्ड | टाइप | डिफ़ॉल्ट | विवरण |
|---|---|---|---|
damage_conditions | Array | कोई नहीं | शर्तों की लिस्ट, हर एक में damage type, मात्रा और चलने वाला event। |
उदाहरण
BP/entities/<name>.json के components ऑब्जेक्ट के अंदर (मान डिफ़ॉल्ट या placeholder हैं):
BP/entities/<name>.json
{
"minecraft:hurt_on_condition": {
"damage_conditions": {}
}
}