minecraft:behavior.fertilize_farm_block आपके लिए सेट कर देता है।Get GodCraftओवरव्यू
minecraft:behavior.fertilize_farm_block एक एंटिटी कंपोनेंट है: यह कस्टम मॉब के components ऑब्जेक्ट में, या उसके किसी component group में जाता है। AI goal जिससे मॉब अपनी inventory से bone meal पास की फ़सलों पर डालता है, जैसे farmer villagers। खाद के बिना यह कुछ नहीं करता।
फ़ील्ड
| फ़ील्ड | टाइप | डिफ़ॉल्ट | विवरण |
|---|---|---|---|
max_fertilizer_usage | integer | 1 | मॉब एक फ़सल पर ज़्यादा से ज़्यादा कितनी बार खाद डालता है। |
search_cooldown_max_seconds | number | 8 | दोबारा ढूंढने से पहले सबसे लंबा रैंडम इंतज़ार, सेकंड में। |
search_range | integer | 1 | मॉब अगल-बगल कितने ब्लॉक तक फ़सलें ढूंढता है। |
search_height | integer | 1 | मॉब ऊपर-नीचे कितने ब्लॉक तक फ़सलें ढूंढता है। |
goal_radius | number | 1.5 | फ़सल तक पहुंचा माने जाने के लिए मॉब को कितना पास आना होगा। |
search_count | integer | 9 | हर tick कितने रैंडम ब्लॉक्स जांचे जाते हैं। 0 पर रेंज का हर ब्लॉक जांचा जाता है।रेंज: 0 से … |
speed_multiplier | number | 0.5 | फ़सल की ओर जाते समय 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.fertilize_farm_block": {
"max_fertilizer_usage": 1,
"search_cooldown_max_seconds": 8,
"search_range": 1,
"search_height": 1,
"goal_radius": 1.5,
"search_count": 9,
"speed_multiplier": 0.5,
"priority": 0
}
}