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

minecraft:economy_trade_table

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

ओवरव्यू

minecraft:economy_trade_table एक एंटिटी कंपोनेंट है: यह कस्टम मॉब के components ऑब्जेक्ट में, या उसके किसी component group में जाता है। प्लेयर्स एंटिटी से ऐसी trade table के ज़रिए trade कर सकते हैं जिसमें demand के हिसाब से दाम बदलते हैं, जैसे villager trades। इसे अपने पैक की किसी trade फ़ाइल से जोड़ें।

फ़ील्ड

फ़ील्डटाइपडिफ़ॉल्टविवरण
convert_trades_economyBoolean"false"मॉब के बदलने पर नई table से trades दोबारा बनाता है, मेल खाने वाले trades वैसे ही रखते हुए।
cured_discountRange [a, b]"[-25, -20]"प्लेयर के इस zombie villager को ठीक करने के बाद मिलने वाली छूट।
display_nameStringकोई नहींTrade screen के ऊपर दिखने वाला नाम।
hero_demand_discountInteger"-4"पुराने price formula में Hero of the Village से demand कितनी घटती है।
max_cured_discountRange [a, b]"[-25, -20]"इस zombie villager को ठीक करने से मिलने वाली सबसे बड़ी छूट।
max_nearby_cured_discountInteger"-200"पास के zombie villager को ठीक करने से मिलने वाली सबसे बड़ी छूट, सिर्फ पुराने formula में।
nearby_cured_discountInteger"-20"प्लेयर के पास के zombie villager को ठीक करने के बाद मिलने वाली छूट।
new_screenBoolean"false"नई trading screen इस्तेमाल करता है।
persist_tradesBoolean"false"मॉब के किसी दूसरे trader में बदलने के बाद भी वही trades रखता है।
show_trade_screenBoolean"true"प्लेयर के मॉब से interact करने पर trade screen खोलता है।
tableStringकोई नहींआपके पैक में trade table फ़ाइल का path।
use_legacy_price_formulaBoolean"false"दाम निकालने का पुराना तरीका इस्तेमाल करता है।

उदाहरण

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

BP/entities/<name>.json
{
  "minecraft:economy_trade_table": {
    "convert_trades_economy": "false",
    "cured_discount": "[-25, -20]",
    "display_name": "",
    "hero_demand_discount": "-4",
    "max_cured_discount": "[-25, -20]",
    "max_nearby_cured_discount": "-200",
    "nearby_cured_discount": "-20",
    "new_screen": "false"
  }
}

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