minecraft:connection_rule आपके लिए सेट कर देता है।Get GodCraftओवरव्यू
minecraft:connection_rule एक ब्लॉक कंपोनेंट है: यह कस्टम ब्लॉक के components ऑब्जेक्ट में जाता है। तय करता है कि बाड़ (fence), दीवार, iron bars और glass panes इस ब्लॉक के पास रखने पर उससे जुड़ें या नहीं।
फ़ील्ड
| फ़ील्ड | टाइप | डिफ़ॉल्ट | विवरण |
|---|---|---|---|
accepts_connections_from | Connection Type | "all" | कौन से ब्लॉक जुड़ सकते हैं: "all", "only_fences" या "none"। Nether brick fence "only_fences" में नहीं गिनी जाती। |
enabled_directions | Direction[] | ["south","north","east","west"] | वे दिशाएं (north, east, south, west) जिनसे जुड़ाव हो सकता है। अगर कुछ भी जुड़ नहीं सकता तो इसे अनदेखा किया जाता है। |
उदाहरण
BP/blocks/<name>.json के components ऑब्जेक्ट के अंदर (मान डिफ़ॉल्ट या placeholder हैं):
BP/blocks/<name>.json
{
"minecraft:connection_rule": {
"accepts_connections_from": "all",
"enabled_directions": [
"south",
"north",
"east",
"west"
]
}
}