Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <oo>
- <!-- 关于脚本的一些配置 -->
- <!-- 当EnableTempratureLimit = 1 且 CrucibleMaxShowTemp < 200的情况下,坩埚温度将不会显示 -->
- <init>
- importClass(Packages.gregapi.util.UT);
- importClass(Packages.gregapi.data.MT);
- function getConfig(aString){
- switch(aString){
- case "ScriptStyle":{return "2018a";}
- case "ShowEnergyCache":{return 1;}
- case "ShowLiquidCache":{return 1;}
- }
- }
- </init>
- <init>
- function getReactorHeat(nbt){
- var inv = nbt['gt.invlist'];
- var heat = 0;
- for(i = 0;i < 4;i++){
- if(inv[i.toString()] == null) continue;
- var type = getRodType(inv[i.toString()]['Damage']);
- var neutron = nbt[("gt.value.o." + inv[i.toString()]['s'])];
- if(neutron == undefined) continue;
- switch(type){
- case "breeder": {heat += neutron / 2;break;}
- case "absorber": {heat += neutron * 2;break;}
- case "fuel": {heat += neutron;break;}
- default: continue;
- }
- }
- if(nbt['gt.tank.0']['FluidName'] == "molten.tin") {
- if(heat % 3 == 0) return parseInt(heat / 3);
- return parseInt(heat / 3) + 1;
- }
- if(nbt['gt.tank.0']['FluidName'] == "molten.sodium") {
- if(heat % 3 == 0) return parseInt(heat / 6);
- return parseInt(heat / 6) + 1;
- }
- return heat;
- }
- </init>
- <init>
- function getRodType(aID){
- switch(aID){
- case 9202: return "absorber";
- case 9203: return "reflector";
- case 9204: return "moderator";
- default:
- if(aID > 9400) return "breeder";
- if(aID > 9300) return "none";
- if(aID > 9209) return "fuel";
- return "none";
- }
- }
- </init>
- <init>
- function getInternalODName(aID){
- var t = Packages.gregapi.oredict.OreDictMaterial.get(aID);
- return t.mNameInternal;
- }
- </init>
- <init>
- importClass(Packages.java.lang.reflect.Field);
- importClass(Packages.java.lang.Class);
- function getPlayer(){
- var _class = Class.forName("me.exz.omniocular.handler.JSHandler");
- var _field = _class.getDeclaredField("entityPlayer");
- _field.setAccessible(true);
- return _field.get(null);
- }
- </init>
- <init>
- importClass(Packages.net.minecraft.client.Minecraft);
- function getWorld(){
- return Minecraft.func_71410_x().field_71441_e;
- }
- </init>
- <init>
- function isRaining(){
- return getWorld().func_72896_J();
- }
- </init>
- function canBlockSeeSky(xPos,yPos,zPos){
- return getWorld().func_72937_j(xPos,yPos,zPos);
- }
- <init>
- try{
- importClass(Packages.gregapi.block.multitileentity.MultiTileEntityRegistry);
- importClass(Packages.java.lang.reflect.Field);
- importClass(Packages.java.lang.Class);
- }catch(e){}
- function getTimer(tile){
- var _class = Class.forName("gregapi.tileentity.base.TileEntityBase02AdjacentTEBuffer");
- var _field = _class.getDeclaredField("mTimer");
- _field.setAccessible(true);
- return _field.get(tile);
- }
- </init>
- <!-- ID to EnergyTier -->
- <!-- HU SU - 蒸汽锅炉,SU KU - 蒸汽引擎,EU KU - 电动引擎,SU RU - 单方块涡轮,EU HU - 电力加热器, -->
- <!-- EU RU - 电力旋转动能引擎,EU MU - 电磁铁,EU EU - 变压器,EU EU - 电池盒,EU LU - CO2激光器, -->
- <!-- RU EU - 发电机,LU QU - 量子充能器, LU LU - 晶体充能器,LU EU - 激光接收器,EU CU HU - 半导体制冷器, -->
- <init>
- function ID2Tier(mID,mInput,mOutput,isInput){
- var tInput = 0;
- var tOutput = 0;
- if(mInput == "HU"){
- if(mOutput == "SU"){
- if(mID >= 17200){
- switch(mID){
- case 17201:{tInput = 4096;break;}
- case 17202:{tInput = 8192;break;}
- case 17203:{tInput = 16384;break;}
- case 17204:{tInput = 131072;break;}
- case 17205:{tInput = 4096;break;}
- }
- }
- else if(mID >= 1250){
- tInput = 4 * ID2Tier(mID - 50,"HU","SU",1);
- }
- else if(mID >= 1200){
- switch(mID){
- case 1200:{tInput = 16;break;}
- case 1201:{tInput = 20;break;}
- case 1202:{tInput = 24;break;}
- case 1203:{tInput = 16;break;}
- case 1204:{tInput = 32;break;}
- case 1205:{tInput = 96;break;}
- case 1206:{tInput = 112;break;}
- case 1207:{tInput = 128;break;}
- case 1208:{tInput = 128;break;}
- }
- }
- tOutput = tInput * 2;
- }
- }
- if(mInput == "SU"){
- if(mOutput == "KU"){
- if(mID > 1311){
- tOutput = 4 * ID2Tier(mID - 50,"SU","KU",0);
- }
- else if(mID >= 1300){
- switch(mID){
- case 1300:{tOutput = 8;break;}
- case 1301:{tOutput = 10;break;}
- case 1302:{tOutput = 12;break;}
- case 1303:{tOutput = 8;break;}
- case 1304:{tOutput = 16;break;}
- case 1305:{tOutput = 48;break;}
- case 1306:{tOutput = 56;break;}
- case 1307:{tOutput = 64;break;}
- case 1308:{tOutput = 64;break;}
- case 1309:{tOutput = 12;break;}
- case 1310:{tOutput = 8;break;}
- case 1311:{tOutput = 32;break;}
- }
- }
- tInput = parseInt(tOutput * 2 * 10000 / SteamEff(mID));
- }
- if(mOutput == "RU"){
- switch(mID){
- case 1512:{tOutput = 16;break;}
- case 1515:{tOutput = 24;break;}
- case 1518:{tOutput = 32;break;}
- case 1522:{tOutput = 64;break;}
- case 1525:{tOutput = 96;break;}
- case 1527:{tOutput = 128;break;}
- case 1528:{tOutput = 128;break;}
- case 1529:{tOutput = 128;break;}
- case 1530:{tOutput = 256;break;}
- case 1531:{tOutput = 256;break;}
- case 1535:{tOutput = 384;break;}
- case 1538:{tOutput = 512;break;}
- case 1540:{tOutput = 768;break;}
- case 1545:{tOutput = 1024;break;}
- case 1548:{tOutput = 2048;break;}
- case 17211:{tOutput = 4096;break;}
- case 17212:{tOutput = 8192;break;}
- case 17213:{tOutput = 16384;break;}
- case 17214:{tOutput = 131072;break;}
- }
- tInput = tOutput * 3;
- }
- }
- if(mInput == "EU"){
- if(mOutput == "KU"){
- tInput = 8 * Math.pow(4,(mID % 10010));
- tOutput = tInput / 2;
- }
- if(mOutput == "HU"){
- if(mID >= 10160){
- tInput = 8 * Math.pow(4,(mID % 10160));
- tOutput = tInput / 4;
- }
- else if(mID >= 10000){
- tInput = 8 * Math.pow(4,(mID % 10000));
- tOutput = tInput / 2;
- }
- }
- if(mOutput == "RU"){
- tInput = 8 * Math.pow(4,(mID % 10020));
- tOutput = tInput / 2;
- }
- if(mOutput == "MU"){
- tInput = 8 * Math.pow(4,(mID % 10030));
- tOutput = tInput / 2;
- }
- if(mOutput == "EU"){
- if(mID >= 10090){
- tInput = 8 * Math.pow(4,(mID % 10090));
- tOutput = tInput;
- }
- else if(mID >= 10080){
- tInput = 8 * Math.pow(4,(mID % 10080));
- tOutput = tInput;
- }
- else if(mID >= 10040){
- tOutput = 8 * Math.pow(4,(mID % 10040));
- tInput = tOutput * 4;
- }
- }
- if(mOutput == "LU"){
- tInput = 8 * Math.pow(4,(mID % 10100));
- tOutput = tInput / 2;
- }
- if(mOutput == "CU"){
- if(mID >= 10160){
- tInput = 8 * Math.pow(4,(mID % 10160));
- tOutput = tInput / 4;
- }
- }
- }
- if(mInput == "RU"){
- if(mOutput == "EU"){
- if(mID > 17220){
- switch(mID){
- case 17221:{tInput = 4096;break;}
- case 17222:{tInput = 8192;break;}
- case 17223:{tInput = 16384;break;}
- case 17224:{tInput = 131072;break;}
- }
- tOutput = tInput * 3 / 4
- }
- else{
- tInput = 8 * Math.pow(4,(mID % 10110));
- tOutput = parseInt(tInput * 6875 / 10000);
- }
- }
- }
- if(mInput == "RF"){
- if(mOutput == "HU"){
- tInput = 32 * Math.pow(4,(mID % 11000));
- tOutput = tInput / 4 / 2;
- }
- if(mOutput == "KU"){
- tInput = 32 * Math.pow(4,(mID % 11010));
- tOutput = tInput / 4 / 2;
- }
- if(mOutput == "RU"){
- tInput = 32 * Math.pow(4,(mID % 11020));
- tOutput = tInput / 4 / 2;
- }
- if(mOutput == "MU"){
- tInput = 32 * Math.pow(4,(mID % 11030));
- tOutput = tInput / 4 / 2;
- }
- if(mOutput == "LU"){
- tInput = 32 * Math.pow(4,(mID % 11100));
- tOutput = tInput / 4 / 2;
- }
- if(mOutput == "CU"){
- tInput = 32 * Math.pow(4,(mID % 11160));
- tOutput = tInput / 4 / 4;
- }
- }
- if(mInput == "LU"){
- if(mOutput == "QU"){
- tInput = 8 * Math.pow(4,(mID % 10120));
- tOutput = tInput / 2;
- }
- if(mOutput == "LU"){
- if(mID >= 10140){
- tInput = 8 * Math.pow(4,(mID % 10140));
- tOutput = tInput;
- }
- else if(mID >= 10130){
- tInput = 8 * Math.pow(4,(mID % 10130));
- tOutput = tInput;
- }
- }
- if(mOutput == "EU"){
- tInput = 8 * Math.pow(4,(mID % 10150));
- tOutput = tInput / 2;
- }
- }
- if(isInput == 1){
- return tInput;
- }
- else if(isInput == 0){
- return tOutput;
- }
- }
- </init>
- <init>
- function isMachineWork(aNBT){
- if(aNBT['gt.active'] != undefined){
- return BLUE + "Processing";
- }
- if(aNBT['gt.running'] != undefined){
- if(nbt['gt.mte.id'] < 22000){
- if(nbt['gt.mte.id'] == 17110){
- return BLUE + "Standby";
- }
- return BLUE + "Standby - Usage";
- }
- return BLUE + "Standby";
- }
- return RED + "Offline";
- }
- </init>
- <!-- gt砧耐久 -->
- <init>
- function anvilDurability(aNBT){
- switch(aNBT['gt.mte.id']){
- case 32025:{return 1;}
- case 32026:{return 10;}
- case 32027:{return 10;}
- case 32028:{return 100;}
- case 32029:{return 200;}
- case 32030:{return 750;}
- case 32031:{return 1000;}
- case 32032:{return 2500;}
- case 32034:{return 3000;}
- case 32035:{return 4000;}
- case 32036:{return 5000;}
- case 32037:{return 7000;}
- case 32038:{return 8000;}
- case 32040:{return 10000;}
- case 32043:{return 40000;}
- case 32044:{return 100000;}
- case 32045:{return 200000;}
- case 32046:{return 1000000;}
- case 32048:{return 100000000;}
- case 32049:{return 100000000;}
- case 32050:{return 80;}
- case 32071:{return 1250;}
- case 32088:{return 15000;}
- case 32092:{return 2000;}
- case 32095:{return 10;}
- }
- }
- </init>
- <!--流体燃烧室容量 -->
- <init>
- function BurningBox_Cap(id){
- switch(id){
- case 1402:{return 240;}
- case 1403:{return 160;}
- case 1404:{return 320;}
- case 1405:{return 1120;}
- case 1406:{return 960;}
- case 1407:{return 1280;}
- case 1408:{return 1280;}
- case 1409:{return 2560;}
- case 1410:{return 960;}
- case 1411:{return 240;}
- case 1412:{return 280;}
- default:{
- if(id > 1460){
- return BurningBox_Cap(id - 200);
- }
- if(id > 1410){
- return BurningBox_Cap(id - 50);
- }
- }
- }
- }
- </init>
- <init>
- function SteamEff(mID){
- if(mID >= 1350){
- return SteamEff(mID - 50);
- }
- switch(mID){
- case 1300:{return 3000;}
- case 1301:{return 4000;}
- case 1302:{return 5000;}
- case 1303:{return 6400;}
- case 1304:{return 5000;}
- case 1305:{return 6300;}
- case 1306:{return 5800;}
- case 1307:{return 5800;}
- case 1308:{return 6000;}
- case 1309:{return 5000;}
- case 1310:{return 6450;}
- case 1311:{return 6200;}
- }
- }
- </init>
- <init>
- function bind(aMin,aMax,aValue){
- return Math.max(aMin,Math.min(aMax,aValue));
- }
- </init>
- <init>
- function SteamCap(SC){
- return ID2Tier(SC['gt.mte.id'],"HU","SU",1) * 10000;
- }
- </init>
- <!-- 电池盒参数 -->
- <init>
- function BatteryBoxArg(BBA,isLarge,ArgType,isEU){
- var BatteryAmount = 0;
- var EUAmount = 0;
- var BatteryCap = 0;
- var BatteryIDArg = 200;
- var BatteryIDArg_2 = 14000;
- var BatteryBoxArg_0 = 10080;
- var BatteryBoxArg_1 = 10090;
- var errorAmount = 0;
- if(isEU != 1){
- BatteryIDArg = 210;
- BatteryIDArg_2 = 14500;
- BatteryBoxArg_0 = 10130;
- BatteryBoxArg_1 = 10140;
- }
- for (var i = 0; i < 16;i++) {
- if(isLarge != 1){
- if(i >= 4){
- break;
- }
- }
- if(BBA['gt.invlist'][i.toString()] != undefined){
- try{
- if((BBA['gt.invlist'][i.toString()]['Damage'] >= 20100) && (parseInt((BBA['gt.invlist'][i.toString()]['Damage'] / 100) % BatteryIDArg) == (BBA['gt.mte.id'] % BatteryBoxArg_0) || parseInt((BBA['gt.invlist'][i.toString()]['Damage'] / 100) % BatteryIDArg) == (BBA['gt.mte.id'] % BatteryBoxArg_1))){
- if(BBA['gt.invlist'][i.toString()]['tag'] != undefined){
- EUAmount += BBA['gt.invlist'][i.toString()]['tag']['gt.energy'];
- }
- BatteryAmount++;
- if(isEU == 1){
- BatteryCap += ID2Cap(BBA['gt.invlist'][i.toString()]['Damage'],"EU");
- }else{
- BatteryCap += ID2Cap(BBA['gt.invlist'][i.toString()]['Damage'],"LU");
- }
- }
- else if((BBA['gt.invlist'][i.toString()]['Damage'] >= 14000) && (BBA['gt.invlist'][i.toString()]['Damage'] <= 14515) && (parseInt((BBA['gt.invlist'][i.toString()]['Damage'] % BatteryIDArg_2) % 10) == (BBA['gt.mte.id'] % BatteryBoxArg_0) || parseInt((BBA['gt.invlist'][i.toString()]['Damage'] % BatteryIDArg_2) % 10) == (BBA['gt.mte.id'] % BatteryBoxArg_1))){
- if(BBA['gt.invlist'][i.toString()]['tag'] != undefined){
- EUAmount += BBA['gt.invlist'][i.toString()]['tag']['gt.energy'];
- }
- BatteryAmount++;
- if(isEU == 1){
- BatteryCap += ID2Cap(BBA['gt.invlist'][i.toString()]['Damage'],"EU");
- }else{
- BatteryCap += ID2Cap(BBA['gt.invlist'][i.toString()]['Damage'],"LU");
- }
- }
- else{
- errorAmount++;
- }
- }
- catch(e){
- errorAmount++;
- }
- }
- }
- switch(ArgType){
- case 0:{return BatteryAmount;}
- case 1:{return EUAmount;}
- case 2:{return BatteryCap;}
- case 3:{return errorAmount;}
- }
- }
- </init>
- <!-- 电池容量 -->
- <init>
- function ID2Cap(mID,mInput){
- if(mInput == "EU"){
- if(mID >= 14100){
- if(mID > 20300){
- return 16 * ID2Cap(mID - 200,"EU");
- }
- if(mID > 20200){
- return 4 * ID2Cap(mID - 100,"EU");
- }
- switch(mID){
- case 20101:{return 32000;}
- case 20102:{return 48000;}
- case 20103:{return 64000;}
- case 20104:{return 8000;}
- case 20105:{return 16000;}
- case 20106:{return 16000;}
- case 20107:{return 16000;}
- }
- }
- else{
- if(mID >= 14020){
- return 2 * ID2Cap(mID - 20,"EU");
- }
- if(mID >= 14010){
- return 2 * ID2Cap(mID - 10,"EU");
- }
- switch(mID){
- case 14000:{return 16000;}
- case 14001:{return 64000;}
- case 14002:{return 256000;}
- case 14003:{return 1024000;}
- case 14004:{return 4096000;}
- }
- }
- }
- if(mInput == "LU"){
- if(mID >= 14510){
- return 2 * ID2Cap(mID - 10,"LU");
- }
- return 3200000 * Math.pow(4,parseInt(mID % 14500));
- }
- }
- </init>
- <!-- Status -->
- <init>
- function isRun(iR){
- if(iR['gt.active.energy'] != undefined){
- return GREEN + "Running";
- }
- if((iR['gt.active'] != undefined)||(iR['gt.can.energy'] != undefined)){
- return BLUE + "Standby";
- }
- return RED + "Offline";
- }
- </init>
- <!-- 多方块结构完整检查 -->
- <init>
- function checkComplete(aNBT){
- if(aNBT['gt.state.str'] == undefined){
- return RED + "Incorrect Structure";
- }
- }
- </init>
- <!-- -->
- <init>
- function getSlotItem(aNBT,aSlot){
- var index = 0;
- while(index <= aSlot){
- if(aNBT['gt.invlist'][index.toString()]['s'] == aSlot){
- return nbt['gt.invlist'][index.toString()]['Count'] + Unit("个") + name(nbt['gt.invlist'][index.toString()]);
- }
- index++;
- }
- }
- </init>
- <init>
- function overload_attention(aNBT){
- var str = "Machine overloaded, use less power";
- if(ID2EnergyType(aNBT['gt.mte.id'] == "EU")){
- str += ", or the machine will explode!"
- }
- return RED + str;
- }
- </init>
- <init>
- function Unit(Type){
- switch(Type){
- case "EU":{return BLUE + " EU" + WHITE;}
- case "RU":{return GREEN + " RU" + WHITE;}
- case "KU":{return DGREEN + " KU" + WHITE;}
- case "HU":{return RED + " HU" + WHITE;}
- case "CU":{return AQUA + " CU" + WHITE;}
- case "LU":{return YELLOW + " LU" + WHITE;}
- case "MU":{return DGRAY + " MU" + WHITE;}
- case "QU":{return DPURPLE + " QU" + WHITE;}
- case "SU":{return GRAY + " SU" + WHITE;}
- case "L":{return AQUA + " L" + WHITE;}
- case "A":{return AQUA + " A" + WHITE;}
- case "Angle":{return DAQUA + " °" + WHITE;}
- case "份 ":{return AQUA + " Unit " + WHITE;}
- case "种":{return AQUA + " Kind" + WHITE;}
- case "S":{return AQUA + " S" + WHITE;}
- case "个":{return AQUA + " " + WHITE;}
- case "次":{return AQUA + " Hits" + WHITE;}
- }
- }
- </init>
- <!--Anvil-->
- <tileentity id = "gt.multitileentity.anvil.simple">
- <line displayname = "Side:">
- try{
- var side = Minecraft.func_71410_x().field_71476_x.field_72310_e;
- switch(nbt['gt.facing']){
- case 0:
- case 1:
- {
- return "Invalid Anvil Facing!";
- }
- case 2:
- case 3:
- {
- if(side >= 4){
- var isBig = (side - nbt['gt.facing']) % 2;
- if(isBig == 1) return "Big";
- else return "Small";
- }
- return undefined;
- }
- case 4:
- case 5:
- {
- if(side < 4 && side > 1){
- var isBig = (nbt['gt.facing'] - side) % 2;
- if(isBig == 1) return "Big";
- else return "Small";
- }
- }
- return undefined;
- }
- }catch(e){
- return e.message;
- }
- </line>
- <line displayname = "Durability:">
- var t = parseInt(nbt['gt.durability']) / 10000;
- if(t < anvilDurability(nbt) / 5){
- return RED + t + Unit("次");
- }
- else if(t < anvilDurability(nbt) / 2){
- return YELLOW + t + Unit("次");
- }
- return WHITE + t + Unit("次");
- </line>
- </tileentity>
- <!-- Crucible -->
- <tileentity id = "gt.multitileentity.smeltery">
- <line displayname= "Temperature:">
- return YELLOW+nbt['gt.temperature']+WHITE+"K"
- </line>
- <line displayname= "Smelting:">
- return nbt['gt.materials']['0']['a'] / 648648000+" "+Packages.gregapi.oredict.OreDictMaterial.MATERIAL_ARRAY[nbt['gt.materials']['0']['i']].getLocal()+" "+RED+ Packages.gregapi.oredict.OreDictMaterial.MATERIAL_ARRAY[nbt['gt.materials']['0']['i']].mMeltingPoint
- </line>
- <line>
- return nbt['gt.materials']['1']['a'] / 648648000+" "+Packages.gregapi.oredict.OreDictMaterial.MATERIAL_ARRAY[nbt['gt.materials']['1']['i']].getLocal()+" "+RED+ Packages.gregapi.oredict.OreDictMaterial.MATERIAL_ARRAY[nbt['gt.materials']['1']['i']].mMeltingPoint
- </line>
- <line>
- return nbt['gt.materials']['2']['a'] / 648648000+" "+Packages.gregapi.oredict.OreDictMaterial.MATERIAL_ARRAY[nbt['gt.materials']['2']['i']].getLocal()+" "+RED+ Packages.gregapi.oredict.OreDictMaterial.MATERIAL_ARRAY[nbt['gt.materials']['2']['i']].mMeltingPoint
- </line>
- <line>
- return nbt['gt.materials']['3']['a'] / 648648000+" "+Packages.gregapi.oredict.OreDictMaterial.MATERIAL_ARRAY[nbt['gt.materials']['3']['i']].getLocal()+" "+RED+ Packages.gregapi.oredict.OreDictMaterial.MATERIAL_ARRAY[nbt['gt.materials']['3']['i']].mMeltingPoint
- </line>
- <line>
- return nbt['gt.materials']['4']['a'] / 648648000+" "+Packages.gregapi.oredict.OreDictMaterial.MATERIAL_ARRAY[nbt['gt.materials']['4']['i']].getLocal()+" "+RED+ Packages.gregapi.oredict.OreDictMaterial.MATERIAL_ARRAY[nbt['gt.materials']['4']['i']].mMeltingPoint
- </line>
- <line>
- return nbt['gt.materials']['5']['a'] / 648648000+" "+Packages.gregapi.oredict.OreDictMaterial.MATERIAL_ARRAY[nbt['gt.materials']['5']['i']].getLocal()+" "+RED+ Packages.gregapi.oredict.OreDictMaterial.MATERIAL_ARRAY[nbt['gt.materials']['5']['i']].mMeltingPoint
- </line>
- <line>
- return nbt['gt.materials']['6']['a'] / 648648000+" "+Packages.gregapi.oredict.OreDictMaterial.MATERIAL_ARRAY[nbt['gt.materials']['6']['i']].getLocal()+" "+RED+ Packages.gregapi.oredict.OreDictMaterial.MATERIAL_ARRAY[nbt['gt.materials']['6']['i']].mMeltingPoint
- </line>
- <line>
- return nbt['gt.materials']['7']['a'] / 648648000+" "+Packages.gregapi.oredict.OreDictMaterial.MATERIAL_ARRAY[nbt['gt.materials']['7']['i']].getLocal()+" "+RED+ Packages.gregapi.oredict.OreDictMaterial.MATERIAL_ARRAY[nbt['gt.materials']['7']['i']].mMeltingPoint
- </line>
- </tileentity>
- <!-- Multiblock Crucible -->
- <tileentity id = "gt.multitileentity.multiblock.crucible">
- <line displayname= "Temperature:">
- return YELLOW+nbt['gt.temperature']+WHITE+"K"
- </line>
- <line displayname= "Smelting:">
- return nbt['gt.materials']['0']['a'] / 648648000+" "+Packages.gregapi.oredict.OreDictMaterial.MATERIAL_ARRAY[nbt['gt.materials']['0']['i']].getLocal()+" "+RED+ Packages.gregapi.oredict.OreDictMaterial.MATERIAL_ARRAY[nbt['gt.materials']['0']['i']].mMeltingPoint
- </line>
- <line>
- return nbt['gt.materials']['1']['a'] / 648648000+" "+Packages.gregapi.oredict.OreDictMaterial.MATERIAL_ARRAY[nbt['gt.materials']['1']['i']].getLocal()+" "+RED+ Packages.gregapi.oredict.OreDictMaterial.MATERIAL_ARRAY[nbt['gt.materials']['1']['i']].mMeltingPoint
- </line>
- <line>
- return nbt['gt.materials']['2']['a'] / 648648000+" "+Packages.gregapi.oredict.OreDictMaterial.MATERIAL_ARRAY[nbt['gt.materials']['2']['i']].getLocal()+" "+RED+ Packages.gregapi.oredict.OreDictMaterial.MATERIAL_ARRAY[nbt['gt.materials']['2']['i']].mMeltingPoint
- </line>
- <line>
- return nbt['gt.materials']['3']['a'] / 648648000+" "+Packages.gregapi.oredict.OreDictMaterial.MATERIAL_ARRAY[nbt['gt.materials']['3']['i']].getLocal()+" "+RED+ Packages.gregapi.oredict.OreDictMaterial.MATERIAL_ARRAY[nbt['gt.materials']['3']['i']].mMeltingPoint
- </line>
- <line>
- return nbt['gt.materials']['4']['a'] / 648648000+" "+Packages.gregapi.oredict.OreDictMaterial.MATERIAL_ARRAY[nbt['gt.materials']['4']['i']].getLocal()+" "+RED+ Packages.gregapi.oredict.OreDictMaterial.MATERIAL_ARRAY[nbt['gt.materials']['4']['i']].mMeltingPoint
- </line>
- <line>
- return nbt['gt.materials']['5']['a'] / 648648000+" "+Packages.gregapi.oredict.OreDictMaterial.MATERIAL_ARRAY[nbt['gt.materials']['5']['i']].getLocal()+" "+RED+ Packages.gregapi.oredict.OreDictMaterial.MATERIAL_ARRAY[nbt['gt.materials']['5']['i']].mMeltingPoint
- </line>
- <line>
- return nbt['gt.materials']['6']['a'] / 648648000+" "+Packages.gregapi.oredict.OreDictMaterial.MATERIAL_ARRAY[nbt['gt.materials']['6']['i']].getLocal()+" "+RED+ Packages.gregapi.oredict.OreDictMaterial.MATERIAL_ARRAY[nbt['gt.materials']['6']['i']].mMeltingPoint
- </line>
- <line>
- return nbt['gt.materials']['7']['a'] / 648648000+" "+Packages.gregapi.oredict.OreDictMaterial.MATERIAL_ARRAY[nbt['gt.materials']['7']['i']].getLocal()+" "+RED+ Packages.gregapi.oredict.OreDictMaterial.MATERIAL_ARRAY[nbt['gt.materials']['7']['i']].mMeltingPoint
- </line>
- <line>
- return nbt['gt.materials']['8']['a'] / 648648000+" "+Packages.gregapi.oredict.OreDictMaterial.MATERIAL_ARRAY[nbt['gt.materials']['8']['i']].getLocal()+" "+RED+ Packages.gregapi.oredict.OreDictMaterial.MATERIAL_ARRAY[nbt['gt.materials']['8']['i']].mMeltingPoint
- </line>
- <line>
- return nbt['gt.materials']['9']['a'] / 648648000+" "+Packages.gregapi.oredict.OreDictMaterial.MATERIAL_ARRAY[nbt['gt.materials']['9']['i']].getLocal()+" "+RED+ Packages.gregapi.oredict.OreDictMaterial.MATERIAL_ARRAY[nbt['gt.materials']['9']['i']].mMeltingPoint
- </line>
- <line>
- return nbt['gt.materials']['10']['a'] / 648648000+" "+Packages.gregapi.oredict.OreDictMaterial.MATERIAL_ARRAY[nbt['gt.materials']['10']['i']].getLocal()+" "+RED+ Packages.gregapi.oredict.OreDictMaterial.MATERIAL_ARRAY[nbt['gt.materials']['10']['i']].mMeltingPoint
- </line>
- </tileentity>
- <tileentity id = "gt.multitileentity.mold">
- <line displayname= "Current Temperature:">
- return nbt['gt.temperature']+RED+" K"
- </line>
- <line displayname= "Currently casting">
- return nbt['gt.materials']['m']
- </line>
- <line displayname = "Connected Direction">
- var str = "";
- if((nbt['gt.connection'] & 4) == 4){
- str += "N";
- if((nbt['gt.connection'] & 8) == 8 || (nbt['gt.connection'] & 16) == 16 || (nbt['gt.connection'] & 32) == 32){
- str += " | ";
- }
- }
- if((nbt['gt.connection'] & 8) == 8){
- str += "S";
- if((nbt['gt.connection'] & 16) == 16 || (nbt['gt.connection'] & 32) == 32){
- str += " | ";
- }
- }
- if((nbt['gt.connection'] & 16) == 16){
- str += "W";
- if((nbt['gt.connection'] & 32) == 32){
- str += " | ";
- }
- }
- if((nbt['gt.connection'] & 32) == 32){
- str += "E";
- }
- if(str != ""){
- return str;
- }
- return "Nothing";
- </line>
- <line displayname = "Output">
- if(nbt['gt.mode'] != undefined){
- return RED + "RS";}
- </line>
- </tileentity>
- <tileentity id = "gt.multitileentity.smeltery.drain">
- <line displayname = "Output">
- if(nbt['gt.mode'] != undefined){
- return WHITE + "Auto";
- }
- return RED + "RS";
- </line>
- </tileentity>
- <tileentity id = "gt.multitileentity.basin">
- <line displayname= "Current Temperature:">
- return nbt['gt.temperature']+RED+" K"
- </line>
- <line displayname= "Currently casting">
- return nbt['gt.materials']['m']
- </line>
- <line displayname = "Connected Direction">
- var str = "";
- if((nbt['gt.connection'] & 4) == 4){
- str += "N";
- if((nbt['gt.connection'] & 8) == 8 || (nbt['gt.connection'] & 16) == 16 || (nbt['gt.connection'] & 32) == 32){
- str += " | ";
- }
- }
- if((nbt['gt.connection'] & 8) == 8){
- str += "S";
- if((nbt['gt.connection'] & 16) == 16 || (nbt['gt.connection'] & 32) == 32){
- str += " | ";
- }
- }
- if((nbt['gt.connection'] & 16) == 16){
- str += "W";
- if((nbt['gt.connection'] & 32) == 32){
- str += " | ";
- }
- }
- if((nbt['gt.connection'] & 32) == 32){
- str += "E";
- }
- if(str != ""){
- return str;
- }
- return "Nothing";
- </line>
- <line displayname = "Output">
- if(nbt['gt.mode'] != undefined){
- return RED + "Auto";
- }
- return RED + "RS";
- </line>
- </tileentity>
- <!-- Burning Box -->
- <tileentity id = "gt.multitileentity.generator.burning_solid">
- <line displayname= "Remaining Heat Power:">
- if(nbt['gt.energy']!=undefined){
- return nbt['gt.energy']+RED+ "HU"}
- </line>
- </tileentity>
- <!-- Burning Box -->
- <tileentity id = "gt.multitileentity.generator.burning_brick">
- <line displayname= "Remaining Heat Power:">
- if(nbt['gt.active']!=undefined){
- return nbt['gt.energy']+RED+"HU"}
- </line>
- </tileentity>
- <!-- Burning Box -->
- <tileentity id = "gt.multitileentity.generator.burning_liquid">
- <line displayname= "Output:">
- if(nbt['gt.active']!= undefined){
- return nbt['gt.energy']+RED+"HU"}
- </line>
- </tileentity>
- <!-- Burning Box -->
- <tileentity id = "gt.multitileentity.generator.burning_gas">
- <line displayname= "Output:">
- if(nbt['gt.active']!= undefined){
- return nbt['gt.energy']+RED+"HU"}
- </line>
- </tileentity>
- <!-- Burning Box -->
- <tileentity id = "gt.multitileentity.generator.burning_fluidbed">
- <line displayname= "Remaining Heat Power:">
- if(nbt['gt.active']!=undefined){
- return nbt['gt.energy']+RED+"HU"}
- </line>
- </tileentity>
- <!--Steam Engine-->
- <tileentity id = "gt.multitileentity.engine.kinetic_steam">
- <line displayname = "Output">
- if(nbt['gt.active'] == 1){
- return ID2Tier(nbt['gt.mte.id'],"SU","KU",0) * ((nbt['gt.visual'] + 1) / 16) + Unit("KU") + "/t";
- }
- return "0" + Unit("KU") + "/t";
- </line>
- <line displayname = "Steam">
- if(nbt['gt.energy'] != undefined){
- return nbt['gt.energy'] + "/" + bind(2000,2147483647,ID2Tier(nbt['gt.mte.id'],"SU","KU",0) * 2000);
- }
- </line>
- </tileentity>
- <!-- Steam Turbine -->
- <tileentity id = "gt.multitileentity.turbines.rotation_steam">
- <line displayname= "Output">
- if(nbt['gt.output.su'] != undefined){
- return parseInt(nbt['gt.output.su'] / 3) + Unit("RU") + "/t";
- }
- if(nbt['gt.tank.0'] != undefined){
- return parseInt(nbt['gt.tank.0']['Amount'] / 3) + Unit("RU") + "/t";
- }
- return "0" + Unit("RU") + "/t";
- </line>
- </tileentity>
- <tileentity id = "gt.multitileentity.engine.kinetic_electricity">
- <line displayname = "Input">
- if(nbt['gt.mode'] == undefined){
- return ID2Tier(nbt['gt.mte.id'],"EU","KU",1) + Unit("EU") + "/t" + " - " + "1" + Unit("A");
- }
- if(nbt['gt.mode'] < 7){
- return ID2Tier(nbt['gt.mte.id'],"EU","KU",1) / 2 + Unit("EU") + "/t" + " - " + ((1 + nbt['gt.mode']) / 8) + Unit("A");
- }
- return ID2Tier(nbt['gt.mte.id'],"EU","KU",1) * (nbt['gt.mode'] + 1) / 16 + Unit("EU") + "/t" + " - " + "1" + Unit("A");
- </line>
- <line displayname = "Output">
- if(nbt['gt.mode'] == undefined){
- return ID2Tier(nbt['gt.mte.id'],"EU","KU",0) + Unit("KU") + "/t";
- }
- return ID2Tier(nbt['gt.mte.id'],"EU","KU",0) * (nbt['gt.mode'] + 1) / 16 + Unit("KU") + "/t";
- </line>
- </tileentity>
- <tileentity id = "gt.multitileentity.heater.heat_electric">
- <line displayname = "Input">
- return ID2Tier(nbt['gt.mte.id'],"EU","HU",1) + Unit("EU") + "/t" + " - " + "(" + ID2Tier(nbt['gt.mte.id'],"EU","HU",1) / 2 + " to " + ID2Tier(nbt['gt.mte.id'],"EU","HU",1) * 2 + ")";
- </line>
- <line displayname = "Output">
- return ID2Tier(nbt['gt.mte.id'],"EU","HU",0) + Unit("HU") + "/t" + " - " + "(" + ID2Tier(nbt['gt.mte.id'],"EU","HU",0) / 2 + " to " + ID2Tier(nbt['gt.mte.id'],"EU","HU",0) * 2 + ")";
- </line>
- </tileentity>
- <tileentity id = "gt.multitileentity.motors.rotation_electric">
- <line displayname = "Input">
- return ID2Tier(nbt['gt.mte.id'],"EU","RU",1) + Unit("EU") + "/t" + " - " + "(" + ID2Tier(nbt['gt.mte.id'],"EU","RU",1) / 2 + " to " + ID2Tier(nbt['gt.mte.id'],"EU","RU",1) * 2 + ")";
- </line>
- <line displayname = "Output">
- return ID2Tier(nbt['gt.mte.id'],"EU","RU",0) + Unit("RU") + "/t" + " - " + "(" + ID2Tier(nbt['gt.mte.id'],"EU","RU",0) / 2 + " to " + ID2Tier(nbt['gt.mte.id'],"EU","RU",0) * 2 + ")";
- </line>
- <line displayname = "Speed">
- if(nbt['gt.can.energy'] == 1 && nbt['gt.facing'] == 1){
- if(nbt['gt.visual'] == 1){
- return "10" + Unit("Angle") + "/t" + " - " + "1.8" + BLUE + " Seconds" + WHITE + "/Rotation";
- }
- return "5" + Unit("Angle") + "/t" + " - " + "3.6" + BLUE + " Seconds" + WHITE + "/Rotation";
- }
- </line>
- </tileentity>
- <tileentity id = "gt.multitileentity.magnet.magnet_electric">
- <line displayname = "Input">
- return ID2Tier(nbt['gt.mte.id'],"EU","MU",1) + Unit("EU") + "/t" + " - " + "(" + ID2Tier(nbt['gt.mte.id'],"EU","MU",1) / 2 + " to " + ID2Tier(nbt['gt.mte.id'],"EU","MU",1) * 2 + ")";
- </line>
- <line displayname = "Output">
- return ID2Tier(nbt['gt.mte.id'],"EU","MU",0) + Unit("MU") + "/t" + " - " + "(" + ID2Tier(nbt['gt.mte.id'],"EU","MU",0) / 2 + " to " + ID2Tier(nbt['gt.mte.id'],"EU","MU",0) * 2 + ")";
- </line>
- </tileentity>
- <tileentity id = "gt.multitileentity.transformers.transformer_electric">
- <line displayname = "Input">
- if(nbt['gt.reversed'] != undefined){
- return ID2Tier(nbt['gt.mte.id'],"EU","EU",0) + Unit("EU") + "/t" + " - " + "(" + ID2Tier(nbt['gt.mte.id'],"EU","EU",0) / 2 + " to " + ID2Tier(nbt['gt.mte.id'],"EU","EU",0) * 2 + ")";
- }
- return ID2Tier(nbt['gt.mte.id'],"EU","EU",1) + Unit("EU") + "/t" + " - " + "(" + ID2Tier(nbt['gt.mte.id'],"EU","EU",1) / 2 + " to " + ID2Tier(nbt['gt.mte.id'],"EU","EU",1) * 2 + ")";
- </line>
- <line displayname = "Output">
- if(nbt['gt.reversed'] != undefined){
- return ID2Tier(nbt['gt.mte.id'],"EU","EU",1) + Unit("EU") + "/t" + " - " + "(" + ID2Tier(nbt['gt.mte.id'],"EU","EU",1) / 2 + " to " + ID2Tier(nbt['gt.mte.id'],"EU","EU",1) * 2 + ")";
- }
- return ID2Tier(nbt['gt.mte.id'],"EU","EU",0) + Unit("EU") + "/t" + " - " + "(" + ID2Tier(nbt['gt.mte.id'],"EU","EU",0) / 2 + " to " + ID2Tier(nbt['gt.mte.id'],"EU","EU",0) * 2 + ")";
- </line>
- </tileentity>
- <!-- 电池盒 -->
- <tileentity id = "gt.multitileentity.energystorages.battery_electric">
- <line displayname = "Status">
- isRun(nbt);
- </line>
- <line displayname = "Output">
- if(nbt['gt.mode'] != undefined){
- return ID2Tier(nbt['gt.mte.id'],"EU","EU",0) + Unit("EU") + "/t" + " - " + Math.min(nbt['gt.mode'],BatteryBoxArg(nbt,0,0,1)) + Unit("A");
- }
- return ID2Tier(nbt['gt.mte.id'],"EU","EU",0) + Unit("EU") + "/t" + " - " + BatteryBoxArg(nbt,0,0,1) + Unit("A");
- </line>
- <line displayname = "Invalid Batteries">
- return BatteryBoxArg(nbt,0,3,1) + Unit("个");
- </line>
- <line displayname = "Capacity">
- return BatteryBoxArg(nbt,0,1,1) + Unit("EU");
- </line>
- <line displayname = "Maximum Capacity">
- return BatteryBoxArg(nbt,0,2,1) + Unit("EU");
- </line>
- </tileentity>
- <!-- 大型电池盒 -->
- <tileentity id = "gt.multitileentity.energystorages.battery_electric_large">
- <line displayname = "Status">
- isRun(nbt);
- </line>
- <line displayname = "Output">
- if(nbt['gt.mode'] != undefined){
- return ID2Tier(nbt['gt.mte.id'],"EU","EU",0) + Unit("EU") + "/t" + " - " + Math.min(nbt['gt.mode'],BatteryBoxArg(nbt,1,0,1)) + Unit("A");
- }
- return ID2Tier(nbt['gt.mte.id'],"EU","EU",0) + Unit("EU") + "/t" + " - " + BatteryBoxArg(nbt,1,0,1) + Unit("A");
- </line>
- <line displayname = "Invalid Batteries">
- return BatteryBoxArg(nbt,1,3,1) + Unit("个");
- </line>
- <line displayname = "Capacity">
- return BatteryBoxArg(nbt,1,1,1) + Unit("EU");
- </line>
- <line displayname = "Max Capacity">
- return BatteryBoxArg(nbt,1,2,1) + Unit("EU");
- </line>
- </tileentity>
- <!-- 太阳能电池板 -->
- <tileentity id = "gt.multitileentity.solarpanel.electric_8eu">
- <line displayname = "Warning">
- if(nbt['gt.active'] == undefined){
- return RED + "There are blocks in the way!";
- }
- </line>
- <line displayname = "Status">
- isRun(nbt);
- </line>
- <line displayname = "Capacity">
- if(nbt['gt.energy'] != undefined){
- return nbt['gt.energy'] + Unit("EU");
- </line>
- </tileentity>
- <tileentity id = "gt.multitileentity.laser.laser_electric">
- <line displayname = "Input">
- return ID2Tier(nbt['gt.mte.id'],"EU","LU",1) + Unit("EU") + "/t" + " - " + "(" + ID2Tier(nbt['gt.mte.id'],"EU","LU",1) / 2 + " to " + ID2Tier(nbt['gt.mte.id'],"EU","LU",1) * 2 + ")";
- </line>
- <line displayname = "Output">
- return ID2Tier(nbt['gt.mte.id'],"EU","LU",0) + Unit("LU") + "/t" + " - " + "(" + ID2Tier(nbt['gt.mte.id'],"EU","LU",0) / 2 + " to " + ID2Tier(nbt['gt.mte.id'],"EU","LU",0) * 2 + ")";
- </line>
- </tileentity>
- <tileentity id = "gt.multitileentity.dynamo.electric_rotation">
- <line displayname = "Input">
- return ID2Tier(nbt['gt.mte.id'],"RU","EU",1) + Unit("RU") + "/t" + " - " + "(" + ID2Tier(nbt['gt.mte.id'],"RU","EU",1) / 2 + " to " + ID2Tier(nbt['gt.mte.id'],"RU","EU",1) * 2 + ")";
- </line>
- <line displayname = "Output">
- return ID2Tier(nbt['gt.mte.id'],"RU","EU",0) + Unit("EU") + "/t" + " - " + "(" + ID2Tier(nbt['gt.mte.id'],"RU","EU",0) / 2 + " to " + ID2Tier(nbt['gt.mte.id'],"RU","EU",0) * 2 + ")";
- </line>
- </tileentity>
- <tileentity id = "gt.multitileentity.quantumenergizer.quantum_laser">
- <line displayname = "Input">
- return ID2Tier(nbt['gt.mte.id'],"LU","QU",1) + Unit("LU") + "/t" + " - " + "(" + ID2Tier(nbt['gt.mte.id'],"LU","QU",1) / 2 + " to " + ID2Tier(nbt['gt.mte.id'],"LU","QU",1) * 2 + ")";
- </line>
- <line displayname = "Output">
- return ID2Tier(nbt['gt.mte.id'],"LU","QU",0) + Unit("QU") + "/t" + " - " + "(" + ID2Tier(nbt['gt.mte.id'],"LU","QU",0) / 2 + " to " + ID2Tier(nbt['gt.mte.id'],"LU","QU",0) * 2 + ")";
- </line>
- </tileentity>
- <!-- 晶体充能器 -->
- <tileentity id = "gt.multitileentity.energystorages.crystal_laser">
- <line displayname = "Status">
- isRun(nbt);
- </line>
- <line displayname = "Output">
- if(nbt['gt.mode'] != undefined){
- return ID2Tier(nbt['gt.mte.id'],"LU","LU",0) + Unit("LU") + "/t" + " - " + Math.min(nbt['gt.mode'],BatteryBoxArg(nbt,0,0,0)) + Unit("A");
- }
- return ID2Tier(nbt['gt.mte.id'],"LU","LU",0) + Unit("LU") + "/t" + " - " + BatteryBoxArg(nbt,0,0,0) + Unit("A");
- </line>
- <line displayname = "Invalid Batteries">
- return BatteryBoxArg(nbt,0,3,0) + Unit("个");
- </line>
- <line displayname = "Capacity">
- return BatteryBoxArg(nbt,0,1,0) + Unit("LU");
- </line>
- <line displayname = "Max Capacity">
- return BatteryBoxArg(nbt,0,2,0) + Unit("LU");
- </line>
- </tileentity>
- <tileentity id = "gt.multitileentity.generator.motor_liquid">
- <line displayname = "Status">
- if(nbt['gt.energy'] > 0){
- return GREEN + "Running";
- }
- return RED + "Offline";
- </line>
- </tileentity>
- <!-- 大型晶体充能器 -->
- <tileentity id = "gt.multitileentity.energystorages.crystal_laser_large">
- <line displayname = "Status">
- isRun(nbt);
- </line>
- <line displayname = "Output">
- if(nbt['gt.mode'] != undefined){
- return ID2Tier(nbt['gt.mte.id'],"LU","LU",0) + Unit("LU") + "/t" + " - " + Math.min(nbt['gt.mode'],BatteryBoxArg(nbt,1,0,0)) + Unit("A");
- }
- return ID2Tier(nbt['gt.mte.id'],"LU","LU",0) + Unit("LU") + "/t" + " - " + BatteryBoxArg(nbt,1,0,0) + Unit("A");
- </line>
- <line displayname = "Invalid Batteries">
- return BatteryBoxArg(nbt,1,3,0) + Unit("个");
- </line>
- <line displayname = "Capacity">
- return BatteryBoxArg(nbt,1,1,0) + Unit("LU");
- </line>
- <line displayname = "Max Capacity">
- return BatteryBoxArg(nbt,1,2,0) + Unit("LU");
- </line>
- </tileentity>
- <tileentity id = "gt.multitileentity.laserabsorbers.electric_laser">
- <line displayname = "Input">
- return ID2Tier(nbt['gt.mte.id'],"LU","EU",1) + Unit("LU") + "/t" + " - " + "(" + ID2Tier(nbt['gt.mte.id'],"LU","EU",1) / 2 + " to " + ID2Tier(nbt['gt.mte.id'],"LU","EU",1) * 2 + ")";
- </line>
- <line displayname = "Output">
- return ID2Tier(nbt['gt.mte.id'],"LU","EU",0) + Unit("EU") + "/t" + " - " + "(" + ID2Tier(nbt['gt.mte.id'],"LU","EU",0) / 2 + " to " + ID2Tier(nbt['gt.mte.id'],"LU","EU",0) * 2 + ")";
- </line>
- </tileentity>
- <tileentity id = "gt.multitileentity.cooler.cryo_electric">
- <line displayname = "Input">
- return ID2Tier(nbt['gt.mte.id'],"EU","CU",1) + Unit("EU") + "/t" + " - " + "(" + ID2Tier(nbt['gt.mte.id'],"EU","CU",1) / 2 + " to " + ID2Tier(nbt['gt.mte.id'],"EU","CU",1) * 2 + ")";
- </line>
- <line displayname = "Output">
- return ID2Tier(nbt['gt.mte.id'],"EU","CU",0) + Unit("CU") + "/t" + " - " + "(" + ID2Tier(nbt['gt.mte.id'],"EU","CU",0) / 2 + " to " + ID2Tier(nbt['gt.mte.id'],"EU","CU",0) * 2 + ")";
- </line>
- <line displayname = "Output">
- return ID2Tier(nbt['gt.mte.id'],"EU","HU",0) + Unit("HU") + "/t" + " - " + "(" + ID2Tier(nbt['gt.mte.id'],"EU","HU",0) / 2 + " to " + ID2Tier(nbt['gt.mte.id'],"EU","HU",0) * 2 + ")";
- </line>
- </tileentity>
- <tileentity id = "gt.multitileentity.fluid.spring">
- <line displayname = "Speed">
- var str = '1 Bucket * ';
- var AmountTemp = nbt['gt.spring']['Amount'];
- if(AmountTemp > 20 * 60 * 60 * 24){
- str += parseInt(AmountTemp / (20 * 60 * 60 * 24)) + " Day ";
- AmountTemp = AmountTemp % (20 * 60 * 60 * 24);
- }
- if(AmountTemp > 20 * 60 * 60){
- str += parseInt(AmountTemp / (20 * 60 * 60)) + " Hour ";
- AmountTemp = AmountTemp % (20 * 60 * 60);
- }
- if(AmountTemp > 20 * 60){
- str += parseInt(AmountTemp / (20 * 60)) + " Min ";
- AmountTemp = AmountTemp % (20 * 60);
- }
- if(AmountTemp > 20){
- str += parseInt(AmountTemp / (20)) + " Sec";
- AmountTemp = AmountTemp % (20);
- }
- if(AmountTemp > 0){
- str += parseInt(AmountTemp) + " Tick";
- }
- return str + "";
- </line>
- <line displayname = "Fluid">
- if(nbt['gt.spring']['FluidName'] != null){
- return fluidName(nbt['gt.spring']['FluidName']);
- }
- </line>
- </tileentity>
- <!-- -->
- <tileentity id = "gt.multitileentity.multiblock.centrifuge">
- <line displayname = "Status">
- if(nbt['gt.state.str'] == undefined){}
- else{
- return isMachineWork(nbt);
- }
- </line>
- <line displayname = "Progress">
- if(nbt['gt.maxprogress'] != undefined){
- switch(getConfig("ScriptStyle")){
- case "2018a":{return nbt['gt.progress'] / 20 / nbt['gt.minenergy'] + Unit("S") + " / " + nbt['gt.maxprogress'] / 20 / nbt['gt.minenergy'] + Unit("S") + " - " + parseInt(nbt['gt.progress'] * 10000 / nbt['gt.maxprogress']) / 100 + " %";}
- case "2020":{return (nbt['gt.progress'] / nbt['gt.maxprogress'] * 100).toFixed(2) + "%"}
- }
- }
- </line>
- <line displayname = "Input">
- getSlotItem(nbt,0);
- </line>
- </tileentity>
- <!-- 单元式流体容器 -->
- <tileentity id = "gt.multitileentity.cell">
- <line displayname = "Contains:">
- return nbt['gt.tank']['Amount'] + "/1000" + Unit("L") + " " + fluidName(nbt['gt.tank']['FluidName']);
- </line>
- </tileentity>
- <!-- 瓷杯 -->
- <tileentity id = "gt.multitileentity.cup">
- <line displayname = "Contains:">
- return nbt['gt.tank']['Amount'] + "/250" + Unit("L") + " " + fluidName(nbt['gt.tank']['FluidName']);
- </line>
- </tileentity>
- <!-- 陶杯 -->
- <tileentity id = "gt.multitileentity.jug">
- <line displayname = "Contains:">
- return nbt['gt.tank']['Amount'] + "/2000" + Unit("L") + " " + fluidName(nbt['gt.tank']['FluidName']);
- </line>
- </tileentity>
- <!-- 量杯 -->
- <tileentity id = "gt.multitileentity.measuring.pot">
- <line displayname = "Contains:">
- return nbt['gt.tank']['Amount'] + "/1000" + Unit("L") + " " + fluidName(nbt['gt.tank']['FluidName']);
- </line>
- </tileentity>
- <!-- 保温杯 -->
- <tileentity id = "gt.multitileentity.thermos.can">
- <line displayname = "Contains:">
- return nbt['gt.tank']['Amount'] + "/4000" + Unit("L") + " " + fluidName(nbt['gt.tank']['FluidName']);
- </line>
- </tileentity>
- <tileentity id = "gt.multitileentity.multiblock.lightningrod">
- <line displayname = "Warning">
- checkComplete(nbt);
- </line>
- </tileentity>
- <tileentity id = "gt.multitileentity.multiblock.drill.bedrock">
- <line displayname = "Energy">
- return nbt['gt.energy'] + " / 32768" + Unit("EU");
- </line>
- </tileentity>
- <!-- 浆果 -->
- <tileentity id = "gt.multitileentity.plant.bush">
- <line displayname = "Growth">
- if(nbt['gt.state'] != 3){
- var t = nbt['gt.state'] * 256;
- if(nbt['gt.progress'] < 0) t = t + 256;
- t = t + nbt['gt.progress'];
- var progress = parseInt(t * 1000 / (256 * 3)) / 10;
- return progress + " %";
- }
- return AQUA + "Ready";
- </line>
- </tileentity>
- <tileentity id = "gt.multitileentity.multiblock.*">
- <line displayname = "Warning">
- if(nbt['id'] != "gt.multitileentity.multiblock.part") return checkComplete(nbt);
- </line>
- </tileentity>
- <tileentity id = "gt.multitileentity.generator.reactor.core.*">
- <line displayname = "Coolant Input">
- return nbt['gt.tank.0']['Amount'] + " / 64000" + Unit("L") + " " + fluidName(nbt['gt.tank.0']['FluidName']) ;
- </line>
- <line displayname = "Hot Coolant Output">
- return nbt['gt.tank.1']['Amount'] + " / 64000" + Unit("L") + " " + fluidName(nbt['gt.tank.1']['FluidName']) ;
- </line>
- <line displayname = "Status">
- if(nbt['gt.stopped'] == 1) return RED + "Shutdown";
- return GREEN + "Running";
- </line>
- <line displayname = "Heat Output">
- try{
- if(nbt['gt.stopped'] == undefined){
- return getReactorHeat(nbt) + Unit("HU") + "/t";
- }
- }
- catch(e){
- }
- </line>
- <line displayname = "Fuel Rod 1">
- try{
- for(i = 0;i < 4;i++){
- if(nbt['gt.invlist'][i.toString()] != undefined){
- if(nbt['gt.invlist'][i.toString()]['s'] == 0){
- var str = name(nbt['gt.invlist'][i.toString()]);
- if(nbt['gt.invlist'][i.toString()]['tag'] != undefined) str += "|耐久:" + parseInt(nbt['gt.invlist'][i.toString()]['tag']['gt.durability'] / 120000) + " mins";
- return str;
- }
- }
- }
- }catch(e){
- }
- </line>
- <line displayname = "Fuel Rod 2">
- for(i = 0;i < 4;i++){
- if(nbt['gt.invlist'][i.toString()] != undefined){
- if(nbt['gt.invlist'][i.toString()]['s'] == 1){
- var str = name(nbt['gt.invlist'][i.toString()]);
- if(nbt['gt.invlist'][i.toString()]['tag']!= undefined) str += "|耐久:" + parseInt(nbt['gt.invlist'][i.toString()]['tag']['gt.durability'] / 120000) + " mins";
- return str;
- }
- }
- }
- </line>
- <line displayname = "Fuel Rod 3">
- for(i = 0;i < 4;i++){
- if(nbt['gt.invlist'][i.toString()] != undefined){
- if(nbt['gt.invlist'][i.toString()]['s'] == 2){
- var str = name(nbt['gt.invlist'][i.toString()]);
- if(nbt['gt.invlist'][i.toString()]['tag'] != undefined) str += "|耐久:" + parseInt(nbt['gt.invlist'][i.toString()]['tag']['gt.durability'] / 120000) + " mins";
- return str;
- }
- }
- }
- </line>
- <line displayname = "Fuel Rod 4">
- for(i = 0;i < 4;i++){
- if(nbt['gt.invlist'][i.toString()] != undefined){
- if(nbt['gt.invlist'][i.toString()]['s'] == 3){
- var str = name(nbt['gt.invlist'][i.toString()]);
- if(nbt['gt.invlist'][i.toString()]['tag'] != undefined) str += "|耐久:" + parseInt(nbt['gt.invlist'][i.toString()]['tag']['gt.durability'] / 120000) + " mins";
- return str;
- }
- }
- }
- </line>
- <line displayname = "Neutrons">
- try{
- if(nbt['gt.stopped'] == 1) return undefined;
- var n1,n2,n3,n4,str = "";
- var inv = nbt['gt.invlist'];
- for(i = 0;i < 4;i++){
- if(inv[i.toString()] == null) continue;
- switch(nbt['gt.invlist'][i.toString()]['s']){
- case 0: {n1 = nbt[("gt.value.o." + inv[i.toString()]['s'])];break;}
- case 1: {n2 = nbt[("gt.value.o." + inv[i.toString()]['s'])];break;}
- case 2: {n3 = nbt[("gt.value.o." + inv[i.toString()]['s'])];break;}
- case 3: {n4 = nbt[("gt.value.o." + inv[i.toString()]['s'])];break;}
- }
- }
- if(n1 != undefined) str += "1: " + n1;
- if(str != "" && n2 != undefined) str += " | ";
- if(n2 != undefined) str += "2: " + n2;
- if(str != "" && n3 != undefined) str += " | ";
- if(n3 != undefined) str += "3: " + n3;
- if(str != "" && n4 != undefined) str += " | ";
- if(n4 != undefined) str += "4: " + n4;
- if(str != "") return str;
- else return undefined;
- }catch(e){
- }
- </line>
- </tileentity>
- <tileentity id = "gt.multitileentity.multiblock.fusionreactor">
- <line displayname = "Energy Requirements">
- if(nbt['gt.active'] != 1 && nbt['gt.input.eu'] != undefined) return nbt['gt.input.eu'] + Unit("LU");
- </line>
- <line displayname = "Energy Output">
- if(nbt['gt.active'] == 1){
- return nbt['gt.output'] + Unit("EU") + "/t";
- }
- </line>
- <line displayname = "Progress">
- if(nbt['gt.active'] == 1){
- return (nbt['gt.progress'] / 20) + " / " + (nbt['gt.maxprogress'] / 20) +Unit("S") + " - " + parseInt(nbt['gt.progress'] / nbt['gt.maxprogress'] * 1000) / 10 + "%"
- }
- </line>
- <line displayname = "Processing">
- if(nbt['gt.active'] != 1) return undefined;
- var t1,t2,str = "";
- if(nbt['gt.tankout.0'] != undefined) t1 = nbt['gt.tankout.0']['Amount'] + Unit("L") + " " +fluidName(nbt['gt.tankout.0']['FluidName']);
- if(nbt['gt.tankout.1'] != undefined) t2 = nbt['gt.tankout.1']['Amount'] + Unit("L") + " "+ fluidName(nbt['gt.tankout.1']['FluidName']);
- if(t1 != undefined){
- str += t1;
- }
- if(t2 != undefined){
- str += " | ";
- str += t2;
- }
- return str;
- </line>
- <line displayname = "Processing">
- if(nbt['gt.active'] != 1) return undefined;
- var t1,t2,str = "";
- if(nbt['gt.tankout.2'] != undefined) t1 = nbt['gt.tankout.2']['Amount'] + Unit("L") + " " +fluidName(nbt['gt.tankout.2']['FluidName']);
- if(nbt['gt.tankout.3'] != undefined) t2 = nbt['gt.tankout.3']['Amount'] + Unit("L") + " "+ fluidName(nbt['gt.tankout.3']['FluidName']);
- if(t1 != undefined){
- str += t1;
- }
- if(t2 != undefined){
- str += " | ";
- str += t2;
- }
- return str;
- </line>
- <line displayname = "Processing">
- if(nbt['gt.active'] != 1) return undefined;
- if(nbt['gt.invout.0'] != undefined) return nbt['gt.invout.0']['Count'] + Unit("个") + " " + name(nbt['gt.invout.0']);
- </line>
- </tileentity>
- </oo>
Add Comment
Please, Sign In to add comment