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

minecraft:interact

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

ओवरव्यू

minecraft:interact एक एंटिटी कंपोनेंट है: यह कस्टम मॉब के components ऑब्जेक्ट में, या उसके किसी component group में जाता है। तय करता है कि प्लेयर के आइटम इस्तेमाल करने या एंटिटी पर क्लिक करने पर क्या हो, जैसे sheep की ऊन काटना। हर interaction आइटम खर्च कर सकता है, आइटम वापस दे सकता है और event चला सकता है।

फ़ील्ड

फ़ील्डटाइपडिफ़ॉल्टविवरण
interactionsInteractionData[]कोई नहींInteractions की लिस्ट, हर एक में शर्तें, बटन का टेक्स्ट, आइटम में बदलाव और event।

उदाहरण

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

BP/entities/<name>.json
{
  "minecraft:interact": {
    "interactions": []
  }
}

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