minecraft:item_visual आपके लिए सेट कर देता है।Get GodCraftओवरव्यू
minecraft:item_visual एक ब्लॉक कंपोनेंट है: यह कस्टम ब्लॉक के components ऑब्जेक्ट में जाता है। ब्लॉक का आइटम हाथ और inventory में कैसा दिखे, यह उसे अपना मॉडल और textures देकर सेट करता है। तब इस्तेमाल करें जब आइटम रखे गए ब्लॉक से अलग दिखना चाहिए।
फ़ील्ड
| फ़ील्ड | टाइप | डिफ़ॉल्ट | विवरण |
|---|---|---|---|
geometry | Geometry | कोई नहीं | आइटम के लिए इस्तेमाल होने वाला मॉडल। |
material_instances | Material Instances Component | कोई नहीं | आइटम के लिए इस्तेमाल होने वाले textures और materials। |
उदाहरण
BP/blocks/<name>.json के components ऑब्जेक्ट के अंदर (मान डिफ़ॉल्ट या placeholder हैं):
BP/blocks/<name>.json
{
"minecraft:item_visual": {
"geometry": {},
"material_instances": {}
}
}