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

minecraft:home

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

ओवरव्यू

minecraft:home एक एंटिटी कंपोनेंट है: यह कस्टम मॉब के components ऑब्जेक्ट में, या उसके किसी component group में जाता है। एंटिटी जहाँ spawn हुई उसे उसका घर याद रखता है और उसे बहुत दूर भटकने से रोक सकता है।

फ़ील्ड

फ़ील्डटाइपडिफ़ॉल्टविवरण
restriction_typerestriction_type"none""none" कोई सीमा नहीं, "random_movement" घर के पास ही भटकने के लिए, या "all_movement" सारी हलचल घर के पास रखने के लिए।
restriction_radiusinteger0एंटिटी घर से कितने ब्लॉक दूर तक जा सकती है।
home_block_liststring[]कोई नहींवे ब्लॉक्स जो सही घर माने जाते हैं; ब्लॉक हट जाए तो सीमा हट जाती है।

उदाहरण

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

BP/entities/<name>.json
{
  "minecraft:home": {
    "restriction_type": "none",
    "restriction_radius": 0,
    "home_block_list": []
  }
}

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