minecraft:economy_trade_table आपके लिए सेट कर देता है।Get GodCraftओवरव्यू
minecraft:economy_trade_table एक एंटिटी कंपोनेंट है: यह कस्टम मॉब के components ऑब्जेक्ट में, या उसके किसी component group में जाता है। प्लेयर्स एंटिटी से ऐसी trade table के ज़रिए trade कर सकते हैं जिसमें demand के हिसाब से दाम बदलते हैं, जैसे villager trades। इसे अपने पैक की किसी trade फ़ाइल से जोड़ें।
फ़ील्ड
| फ़ील्ड | टाइप | डिफ़ॉल्ट | विवरण |
|---|---|---|---|
convert_trades_economy | Boolean | "false" | मॉब के बदलने पर नई table से trades दोबारा बनाता है, मेल खाने वाले trades वैसे ही रखते हुए। |
cured_discount | Range [a, b] | "[-25, -20]" | प्लेयर के इस zombie villager को ठीक करने के बाद मिलने वाली छूट। |
display_name | String | कोई नहीं | Trade screen के ऊपर दिखने वाला नाम। |
hero_demand_discount | Integer | "-4" | पुराने price formula में Hero of the Village से demand कितनी घटती है। |
max_cured_discount | Range [a, b] | "[-25, -20]" | इस zombie villager को ठीक करने से मिलने वाली सबसे बड़ी छूट। |
max_nearby_cured_discount | Integer | "-200" | पास के zombie villager को ठीक करने से मिलने वाली सबसे बड़ी छूट, सिर्फ पुराने formula में। |
nearby_cured_discount | Integer | "-20" | प्लेयर के पास के zombie villager को ठीक करने के बाद मिलने वाली छूट। |
new_screen | Boolean | "false" | नई trading screen इस्तेमाल करता है। |
persist_trades | Boolean | "false" | मॉब के किसी दूसरे trader में बदलने के बाद भी वही trades रखता है। |
show_trade_screen | Boolean | "true" | प्लेयर के मॉब से interact करने पर trade screen खोलता है। |
table | String | कोई नहीं | आपके पैक में trade table फ़ाइल का path। |
use_legacy_price_formula | Boolean | "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"
}
}