minecraft:behavior.go_and_give_items_to_owner आपके लिए सेट कर देता है।Get GodCraftओवरव्यू
minecraft:behavior.go_and_give_items_to_owner एक एंटिटी कंपोनेंट है: यह कस्टम मॉब के components ऑब्जेक्ट में, या उसके किसी component group में जाता है। AI goal जिससे मॉब अपने साथ के आइटम मालिक के पास लाकर उसकी ओर फेंकता है, जैसे allay।
फ़ील्ड
| फ़ील्ड | टाइप | डिफ़ॉल्ट | विवरण |
|---|---|---|---|
run_speed | number | 1 | मालिक की ओर दौड़ते समय की स्पीड। |
reach_mob_distance | number | 3 | आइटम देने से पहले मॉब कितना पास आता है। |
throw_force | number | 0.2 | आइटम कितनी ज़ोर से फेंके जाते हैं। |
vertical_throw_mul | number | 1.5 | फेंकने के ऊपर वाले हिस्से के लिए एक्स्ट्रा multiplier। |
throw_sound | LevelSoundEvent | "charge" | मॉब के आइटम फेंकने पर बजने वाली आवाज़। |
on_item_throw | ActorDefinitionTrigger[] | कोई नहीं | मॉब के आइटम फेंकने पर चलने वाले इवेंट्स। |
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.go_and_give_items_to_owner": {
"run_speed": 1,
"reach_mob_distance": 3,
"throw_force": 0.2,
"vertical_throw_mul": 1.5,
"throw_sound": "charge",
"on_item_throw": [],
"priority": 0,
"control_flags": []
}
}