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

minecraft:behavior.trade_interest

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

ओवरव्यू

minecraft:behavior.trade_interest एक एंटिटी कंपोनेंट है: यह कस्टम मॉब के components ऑब्जेक्ट में, या उसके किसी component group में जाता है। trader को उस प्लेयर की ओर देखने देता है जिसके हाथ में उसका चाहा आइटम हो, और दिखाता है कि बदले में वह क्या देगा।

फ़ील्ड

फ़ील्डटाइपडिफ़ॉल्टविवरण
within_radiusnumber0trader के आइटम पर ध्यान देने के लिए प्लेयर कितना पास होना चाहिए।
interest_timenumber45trader अपने trade आइटम सबसे ज़्यादा कितने सेकंड दिखाता रहता है।
remove_item_timenumber1आपके trade वाला आइटम हटाने के बाद trader सबसे ज़्यादा कितने सेकंड इंतज़ार करता है।
carried_item_switch_timenumber2उसी trade में फिट होने वाले दूसरे आइटम पर जाने से पहले trader एक आइटम सबसे ज़्यादा कितने सेकंड दिखाता है।
cooldownnumber2trader के यह goal दोबारा इस्तेमाल करने से पहले कितने सेकंड।
priorityinteger0जब कई goal एक साथ चलना चाहें तो तय करता है कि कौन चलेगा: छोटी संख्या वाला पहले चलता है।रेंज: 0 से …
control_flagsGoal's control flags[]कोई नहींबताता है कि यह goal शरीर के किन हिस्सों का कंट्रोल लेता है (जैसे move, look या jump), ताकि एक ही हिस्से वाले goal साथ में न चलें।

उदाहरण

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

BP/entities/<name>.json
{
  "minecraft:behavior.trade_interest": {
    "within_radius": 0,
    "interest_time": 45,
    "remove_item_time": 1,
    "carried_item_switch_time": 2,
    "cooldown": 2,
    "priority": 0,
    "control_flags": []
  }
}

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