minecraft:behavior.harvest_farm_block आपके लिए सेट कर देता है।Get GodCraftओवरव्यू
minecraft:behavior.harvest_farm_block एक एंटिटी कंपोनेंट है: यह कस्टम मॉब के components ऑब्जेक्ट में, या उसके किसी component group में जाता है। AI goal जिससे मॉब पकी फ़सलें काटता है और खाली farmland पर अपनी inventory से बीज बोता है, जैसे farmer villagers। minecraft:inventory और navigation कंपोनेंट ज़रूरी हैं।
फ़ील्ड
| फ़ील्ड | टाइप | डिफ़ॉल्ट | विवरण |
|---|---|---|---|
max_seconds_before_search | number | 1 | farmland की पहली खोज से पहले सबसे लंबा रैंडम इंतज़ार, सेकंड में। |
search_cooldown_max_seconds | number | 8 | कुछ न मिलने के बाद दोबारा ढूंढने से पहले सबसे लंबा रैंडम इंतज़ार, सेकंड में। |
seconds_until_new_task | number | 0.5 | फ़सल काटने या बोने के बाद goal के दोबारा शुरू होने से पहले आराम के सेकंड। |
search_range | integer | 16 | मॉब अगल-बगल कितने ब्लॉक तक farmland ढूंढता है। |
search_height | integer | 1 | मॉब ऊपर-नीचे कितने ब्लॉक तक farmland ढूंढता है। |
goal_radius | number | 1.5 | farmland तक पहुंचा माने जाने के लिए मॉब को कितना पास आना होगा। |
search_count | integer | 0 | हर tick कितने रैंडम ब्लॉक्स जांचे जाते हैं। 0 पर रेंज का हर ब्लॉक जांचा जाता है।रेंज: 0 से … |
speed_multiplier | number | 0.5 | farmland की ओर जाते समय speed multiplier।रेंज: 0 से … |
priority | integer | 0 | कम नंबर पहले चलता है: जब दो goals आपस में टकराते हैं, तो छोटी priority वाला जीतता है।रेंज: 0 से … |
control_flags | Goal's control flags[] | कोई नहीं | यह goal शरीर के किन हिस्सों (move, look, jump) को अपने कब्ज़े में लेता है, ताकि एक ही हिस्से इस्तेमाल करने वाले goals साथ में न चलें। |
उदाहरण
BP/entities/<name>.json के components ऑब्जेक्ट के अंदर (मान डिफ़ॉल्ट या placeholder हैं):
BP/entities/<name>.json
{
"minecraft:behavior.harvest_farm_block": {
"max_seconds_before_search": 1,
"search_cooldown_max_seconds": 8,
"seconds_until_new_task": 0.5,
"search_range": 16,
"search_height": 1,
"goal_radius": 1.5,
"search_count": 0,
"speed_multiplier": 0.5
}
}