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

minecraft:on_hurt_by_player

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

ओवरव्यू

minecraft:on_hurt_by_player एक एंटिटी कंपोनेंट है: यह कस्टम मॉब के components ऑब्जेक्ट में, या उसके किसी component group में जाता है। प्लेयर के इस एंटिटी पर हमला करने पर event चलाता है। उन मॉब्स के लिए बढ़िया जो प्लेयर के मारने के बाद ही hostile होते हैं।

फ़ील्ड

फ़ील्डटाइपडिफ़ॉल्टविवरण
eventstring""चलने वाले event का नाम।
targetFilterSubject"self"Event किस पर चलता है, जैसे self या other।
filtersFilter 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_hurt_by_player": {
    "event": "",
    "target": "self",
    "filters": {
      "AND": null,
      "NOT": null,
      "OR": null,
      "all": null,
      "all_of": null,
      "any": null,
      "any_of": null,
      "none_of": null
    }
  }
}

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