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

minecraft:barter

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

ओवरव्यू

minecraft:barter एक एंटिटी कंपोनेंट है: यह कस्टम मॉब के components ऑब्जेक्ट में, या उसके किसी component group में जाता है। मॉब को दिए गए आइटम के बदले में एक रैंडम आइटम देने देता है, जैसे piglins सोने के बदले ट्रेड करते हैं। इसे minecraft:behavior.barter के साथ इस्तेमाल करें।

फ़ील्ड

फ़ील्डटाइपडिफ़ॉल्टविवरण
barter_tablestring""उस loot table का path जो बदले में दिया जाने वाला आइटम चुनती है।
cooldown_after_being_attackedinteger10चोट लगने के बाद कितने सेकंड तक मॉब ट्रेड नहीं करेगा।

उदाहरण

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

BP/entities/<name>.json
{
  "minecraft:barter": {
    "barter_table": "",
    "cooldown_after_being_attacked": 10
  }
}

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