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

minecraft:leashable

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

ओवरव्यू

minecraft:leashable एक एंटिटी कंपोनेंट है: यह कस्टम मॉब के components ऑब्जेक्ट में, या उसके किसी component group में जाता है। प्लेयर्स एंटिटी को lead से बाँध सकते हैं, और leash होने या छूटने पर events चलते हैं।

फ़ील्ड

फ़ील्डटाइपडिफ़ॉल्टविवरण
can_be_cutBoolean"true"प्लेयर्स एंटिटी पर shears चलाकर उसकी leads काट सकते हैं।
can_be_stolenBoolean"true"एंटिटी पहले से किसी और से बँधी हो तब भी प्लेयर्स उसे leash कर सकते हैं।
on_leashStringकोई नहींएंटिटी के leash होने पर चलने वाला event।
on_unleashStringकोई नहींएंटिटी के छूटने पर चलने वाला event।
on_unleash_interact_onlyBoolean"false"Unleash event सिर्फ तब चलता है जब प्लेयर उसे सीधे छुड़ाए।
presetsListकोई नहींLeash settings जैसे दूरियाँ और spring की ताकत; जिस पहले preset का filter पास हो, वही इस्तेमाल होता है।
unleash_on_removalBoolean"true"यह कंपोनेंट हटने पर एंटिटी को छुड़ा देता है।

उदाहरण

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

BP/entities/<name>.json
{
  "minecraft:leashable": {
    "can_be_cut": "true",
    "can_be_stolen": "true",
    "on_leash": "",
    "on_unleash": "",
    "on_unleash_interact_only": "false",
    "presets": {},
    "unleash_on_removal": "true"
  }
}

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