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

minecraft:entity_sensor

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

ओवरव्यू

minecraft:entity_sensor एक एंटिटी कंपोनेंट है: यह कस्टम मॉब के components ऑब्जेक्ट में, या उसके किसी component group में जाता है। आसपास की दूसरी एंटिटीज़ पर नज़र रखता है और आपकी शर्तों से मेल खाने पर events चलाता है। हर subsensor की अपनी range और event होता है।

फ़ील्ड

फ़ील्डटाइपडिफ़ॉल्टविवरण
find_players_onlyBoolean"false"हर subsensor में सिर्फ प्लेयर्स को ढूँढता है।
relative_rangeBoolean"true"हर subsensor की range में एंटिटी का अपना साइज़ जोड़ता है।
subsensorsListकोई नहींSensors की लिस्ट, हर एक में range, शर्तें और चलने वाला event।

उदाहरण

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

BP/entities/<name>.json
{
  "minecraft:entity_sensor": {
    "find_players_only": "false",
    "relative_range": "true",
    "subsensors": {}
  }
}

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