Skip to content

Minecraft 1.12.2 కోసం OC XNet Driver మోడ్

కనెక్ట్ చేయబడిన బ్లాక్‌లకు వస్తువులు, ద్రవాలు మరియు శక్తిని బదిలీ చేయడానికి OpenComputers ను XNet నెట్‌వర్క్‌లను ఉపయోగించడానికి అనుమతిస్తుంది.

నుండి davenonymous · CurseForge
వ్యూలు
15 వ్యూలు
అప్‌డేట్ చేయబడింది
అప్‌డేట్ చేయబడింది 18.10.2026
  • 1.12 — 1.12.2

ocxnetdriver

OpenComputers + XNet = :heart:

OpenComputers కు XNet నెట్‌వర్క్‌లను ఉపయోగించి కనెక్ట్ చేయబడిన బ్లాక్‌లకు ఐటమ్‌లు, ఫ్లూయిడ్‌లు మరియు ఎనర్జీని బదిలీ చేయడానికి అనుమతిస్తుంది.

తెలిసిన సమస్యలు

  • ఇది ప్రస్తుతం నిర్బంధం లేకుండా ఉంది, అంటే మీరు అత్యధిక పరిమాణాలను క్షణాల్లో బదిలీ చేయవచ్చు.

అందుబాటులో ఉన్న పద్ధతులు

పద్ధతి వివరణ

getConnectedBlocks() XNet నెట్‌వర్క్‌కు కనెక్ట్ చేయబడిన అన్ని బ్లాక్‌లతో ఒక టేబుల్‌ను రిటర్న్ చేస్తుంది

getSupportedCapabilities(pos[, side]) ఇచ్చిన బ్లాక్ సపోర్ట్ చేసే అన్ని సామర్థ్యాలను జాబితా చేస్తుంది

getItems(pos[, side]) ఇచ్చిన ఇన్వెంటరీలోని అన్ని ఐటమ్‌లతో ఒక టేబుల్‌ను రిటర్న్ చేస్తుంది

getFluids(pos[, side]) ఇచ్చిన ట్యాంక్‌లోని అన్ని ఫ్లూయిడ్‌లను జాబితా చేస్తుంది

getEnergy(pos[, side]) ఇచ్చిన ఎనర్జీ హ్యాండ్లర్ యొక్క కెపాసిటీ మరియు నిల్వ చేయబడిన ఎనర్జీని పొందుతుంది

transferItem(sourcePos, sourceSlot, amount, targetPos[, sourceSide[, targetSide]]) రెండు ఇన్వెంటరీల మధ్య ఐటమ్‌లను బదిలీ చేస్తుంది

transferFluid(sourcePos, amount, targetPos, fluidName]) రెండు ట్యాంక్‌ల మధ్య ఫ్లూయిడ్‌లను బదిలీ చేస్తుంది

transferEnergy(sourcePos, amount, targetPos[, sourceSide[, targetSide]]) రెండు ఎనర్జీ హ్యాండ్లర్‌ల మధ్య ఎనర్జీని బదిలీ చేస్తుంది

store(sourcePos, sourceSlot, database, entry[, sourceSide]) XNet నెట్‌వర్క్‌లో ఎక్కడో ఉన్న ఒక ఐటమ్‌స్టాక్‌ను డేటాబేస్ అప్‌గ్రేడ్‌లో నిల్వ చేస్తుంది

సారాంశం

local component = require('component') local sides = require('sides') local serialization = require('serialization'); local xnet = component.xnet -- Dump all found blocks and track all vanilla types in a table local chests = {} local tanks = {} local cells = {} for i,block in ipairs(xnet.getConnectedBlocks()) do print(serialization.serialize(block)) if(block.name == "minecraft:chest") then chests[chests+1] = block elseif(block.name == "thermalexpansion:tank") then tanks[tanks+1] = block elseif(block.name == "thermalexpansion:cell") then cells[cells+1] = block end end -- {name="thermalexpansion:cell",pos={z=0,y=-1,x=0},side="west",meta=0} -- {name="opencomputers:case3",pos={z=0,y=-1,x=1},side="north",meta=1} -- {name="thermalexpansion:tank",pos={z=0,y=0,x=-2},side="down",meta=0,connector="Dynamo"} -- {name="minecraft:chest",pos={z=1,y=-1,x=-2},side="north",meta=3,connector="Dynamo"} -- {name="thermalexpansion:dynamo",pos={z=0,y=-1,x=-3},side="east",meta=2,connector="Dynamo"} -- {name="thermalexpansion:tank",pos={z=0,y=1,x=-1},side="down",meta=0} -- {name="thermalexpansion:tank",pos={z=0,y=0,x=-2},side="east",meta=0} -- {name="xnet:controller",pos={z=0,y=0,x=0},side="west",meta=3} -- Dump the contents of the first chest: print(serialization.serialize(xnet.getItems(chests[1].pos))) -- { -- {maxSize=64,size=64,hasTag=false,maxDamage=0,damage=0,name="minecraft:stone",label="Stone"}, -- {maxSize=64,size=64,hasTag=false,maxDamage=0,damage=0,name="minecraft:hayblock",label="Hay Bale"}, -- [27]={maxSize=64,size=1,hasTag=false,maxDamage=0,damage=0,name="xnet:controller",label="Controller"}, -- n=27 -- } -- Dump the contents of the first tank print(serialization.serialize(xnet.getFluids(tanks[1].pos))) -- { -- {content={label="Essence of Knowledge",amount=4000,hasTag=false,name="experience"},capacity=20000}, -- n=1 -- } -- Dump the contents of the first cell print(serialization.serialize(xnet.getEnergy(cells[1].pos))) -- {canExtract=true,stored=4000,capacity=2000000,canReceive=true} -- Transfer 5 of whatever is in slot 1 of chest 1 into chest 2 print("Transferred: " .. tostring(xnet.transferItem(chests[1].pos, 1, 5, chests[2].pos)))

సరళమైన ఎనర్జీ బదిలీ ఉదాహరణ

local component = require('component') local sides = require('sides') local serialization = require('serialization') local xnet = component.xnet print(serialization.serialize(xnet.getConnectedBlocks())) -- { -- {pos={y=-1,x=0,z=0},name="thermalexpansion:cell",side="west",meta=0}, -- {pos={y=-1,x=1,z=0},name="opencomputers:case3",side="north",meta=1}, -- {pos={y=-1,x=-3,z=0},name="thermalexpansion:dynamo",side="east",meta=2,connector="Dynamo"}, -- {pos={y=0,x=0,z=0},name="xnet:controller",side="west",meta=3}, -- n=4 -- } -- Find a dynamo and a cell and store their position etc local energySource = nil local energyTarget = nil for i,block in ipairs(xnet.getConnectedBlocks()) do if(block.name == "thermalexpansion:dynamo") then energySource = block elseif(block.name == "thermalexpansion:cell") then energyTarget = block end end -- Abort if no source could be found if(energySource == nil) then print("No dynamo found. Aborting!") os.exit(1) end -- Abort if no target could be found if(energyTarget == nil) then print("No cell found. Aborting!") os.exit(2) end -- Transfer 1000RF from source to target using the sides next to the XNet Connector local transferred, error = xnet.transferEnergy(energySource.pos, 1000, energyTarget.pos, sides[energySource.side], sides[energyTarget.side]) if(transferred ~= nil) then print(" - Transferred " .. transferred .. "RF to " .. serialization.serialize(energyTarget.pos)) -- - Transferred 1000RF to {y=-1,x=0,z=0} else print("Error: " .. error) end

OC XNet Driver ఎలా ఇన్‌స్టాల్ చేయాలి

With Millida Launcher

  1. Install Millida Launcher

    The launcher is free: download it at millida.net/launcher and sign in with any nickname.

  2. Click “Install” on this page

    The launcher opens and installs the mod for Minecraft 1.12–1.12.2 automatically.

  3. Launch the game

    A profile with it appears in the launcher: click “Play”.

Manually

  1. Download the file for your version

    In the version list above, pick the file ocxnetdriver-1.0.3-b17.jar (22 KB) for your game version.

  2. Put it in the mods folder

    The folder is inside .minecraft (Windows: %appdata%\.minecraft\mods). If it does not exist, create it.

  3. Launch the loader profile

    Open “Mods” in the main menu: OC XNet Driver should be in the list.

Minecraft 1.12.2 runs on Java 8: with a different Java version the game may close right after launch.

వెర్షన్లు

డిపెండెన్సీలతో

Minecraftలోడర్ఫైల్తేదీచర్యలు
1.12.1—ocxnetdriver-1.0.3-b17.jar21.7 KB
1.12.1—ocxnetdriver-1.0.2-b11.jar21.4 KB

FAQ

Which Minecraft versions does OC XNet Driver work on?

There are files for 1.12.2, 1.12.1, 1.12. The newest is 1.12.2.

Which Java does OC XNet Driver need?

Minecraft 1.12.2 runs on Java 8. If the game closes right after launch, the usual cause is the wrong Java version in the profile settings.

Where can I download OC XNet Driver safely?

On this page: the file ocxnetdriver-1.0.3-b17.jar (22 KB) is stored on Millida’s server, with no link shorteners. SHA-1 checksum: c0168aa96831aa717f6c9339c991cba17ece7373.

సమీక్షలు

OC XNet Driverకు మొదటి రేటింగ్ ఇవ్వండి

కామెంట్‌లు 0

వ్యాఖ్య చేయడానికి సైన్ ఇన్ చేయండిసైన్ ఇన్

సమానమైన మోడ్‌లు

అన్ని మోడ్‌లు

దీనిపై మరింత