minecraft:trade_table आपके लिए सेट कर देता है।Get GodCraftओवरव्यू
minecraft:trade_table एक एंटिटी कंपोनेंट है: यह कस्टम मॉब के components ऑब्जेक्ट में, या उसके किसी component group में जाता है। प्लेयर्स trade list फ़ाइल के ज़रिए एंटिटी से trade कर सकते हैं। Custom व्यापारियों के लिए इस्तेमाल करें।
फ़ील्ड
| फ़ील्ड | टाइप | डिफ़ॉल्ट | विवरण |
|---|---|---|---|
display_name | string | "" | Trade screen के ऊपर दिखने वाला नाम। |
table | string | "" | Trade फ़ाइल का path, बिहेवियर पैक folder से शुरू करके। |
new_screen | boolean | false | true होने पर नई trade screen इस्तेमाल होती है। |
persist_trades | boolean | false | true होने पर मॉब के बाद में किसी दूसरे trading मॉब में बदलने पर भी trades बने रहते हैं। |
convert_trades_economy | boolean | false | true होने पर जब मॉब economy trade table वाले मॉब में बदलता है, तो मेल खाने वाले trades नई लिस्ट में आ जाते हैं। |
उदाहरण
BP/entities/<name>.json के components ऑब्जेक्ट के अंदर (मान डिफ़ॉल्ट या placeholder हैं):
BP/entities/<name>.json
{
"minecraft:trade_table": {
"display_name": "",
"table": "",
"new_screen": false,
"persist_trades": false,
"convert_trades_economy": false
}
}