JS: различия между версиями

Материал из PetruCHIO - Mindustry server
Перейти к навигации Перейти к поиску
[досмотренная версия][досмотренная версия]
Метки: правка из мобильной версии, правка с мобильного устройства
м (router)
Строка 46: Строка 46:
 
  <font color="blue">'''powerSource, powerVoid, itemSource, itemVoid, liquidSource, liquidVoid, message, illuminator'''</font> </br>
 
  <font color="blue">'''powerSource, powerVoid, itemSource, itemVoid, liquidSource, liquidVoid, message, illuminator'''</font> </br>
 
  <font color="blue">'''copperWall, copperWallLarge, titaniumWall, titaniumWallLarge, plastaniumWall, plastaniumWallLarge, thoriumWall, thoriumWallLarge, door, doorLarge, phaseWall, phaseWallLarge, surgeWall, surgeWallLarge, mender, mendProjector, overdriveProjector, forceProjector, shockMine, scrapWall, scrapWallLarge, scrapWallHuge, scrapWallGigantic, thruster'''</font> </br>
 
  <font color="blue">'''copperWall, copperWallLarge, titaniumWall, titaniumWallLarge, plastaniumWall, plastaniumWallLarge, thoriumWall, thoriumWallLarge, door, doorLarge, phaseWall, phaseWallLarge, surgeWall, surgeWallLarge, mender, mendProjector, overdriveProjector, forceProjector, shockMine, scrapWall, scrapWallLarge, scrapWallHuge, scrapWallGigantic, thruster'''</font> </br>
  <font color="blue">'''conveyor, titaniumConveyor, armoredConveyor, distributor, junction, itemBridge, phaseConveyor, sorter, invertedSorter, router, overflowGate, underflowGate, massDriver'''</font> </br>
+
  <font color="blue">'''conveyor, titaniumConveyor, armoredConveyor, distributor, junction, itemBridge, phaseConveyor, sorter, invertedSorter, [[Роутер|router]], overflowGate, underflowGate, massDriver'''</font> </br>
 
  <font color="blue">'''mechanicalPump, rotaryPump, thermalPump, conduit, pulseConduit, platedConduit, liquidRouter, liquidTank, liquidJunction, bridgeConduit, phaseConduit'''</font> </br>
 
  <font color="blue">'''mechanicalPump, rotaryPump, thermalPump, conduit, pulseConduit, platedConduit, liquidRouter, liquidTank, liquidJunction, bridgeConduit, phaseConduit'''</font> </br>
 
  <font color="blue">'''combustionGenerator, thermalGenerator, turbineGenerator, differentialGenerator, rtgGenerator, solarPanel, largeSolarPanel, thoriumReactor, impactReactor, battery, batteryLarge, powerNode, powerNodeLarge, surgeTower, diode'''</font> </br>
 
  <font color="blue">'''combustionGenerator, thermalGenerator, turbineGenerator, differentialGenerator, rtgGenerator, solarPanel, largeSolarPanel, thoriumReactor, impactReactor, battery, batteryLarge, powerNode, powerNodeLarge, surgeTower, diode'''</font> </br>

Версия 05:59, 7 мая 2020

Если вы хотите изменить харакетеристики Блока или Меха и чего угодно то смотрим всё здесь
Пример: js Mechs.tau.weapon.reload = 0.1 //Ну это лучше самому увидеть чем услышать

Пример использования

Описание Команда
Получить данные об игроках js Vars.playerGroup.all()
Надпись в мире js player = Vars.playerGroup.getByID(id); Call.onLabel("Сообщение",60, player.getX(), player.getY());
Диалоговое окно с кнопкой [ОК] js Call.onInfoMessage("Сообщение");
Надпись на экране, с привязкой по сторонам js Call.onInfoPopup("Сообщение",60,500,500,500,500,500);
Спавн блока в мире js block = Blocks.coreShard; player = Vars.playerGroup.getByID(id); BuildBlock.onConstructFinish(Vars.world.tile(player.tileX(),player.tileY()),block,0,0,player.getTeam(),false);
Проверка на валидность установки блока в точке js player = Vars.playerGroup.getByID(id); Build.validPlace(player.getTeam(), player.tileX(), player.tileY(), Blocks.rtgGenerator, 0);
Спавн мобов и выдача им предметов js player = Vars.playerGroup.getByID(id); unit = UnitTypes.reaper.create(Team.sharded); unit.set(player.getX(), player.getY()); unit.add(); unit.addItem(Items.coal,30);
Смена ника js Vars.playerGroup.getByID(id).name = "Ник"
Выдача предметов игроку js player = Vars.playerGroup.getByID(id).addItem(Items.coal,30);
Убить последнего заспавненоготюнита js unit.onDeath()
Помещение предметов в ядро js Vars.state.teams.cores(Team.sharded).first().items.set(Items.coal,30);
Смена команды js player = Vars.playerGroup.getByID(id).setTeam(Team.sharded);
Спавн пули player = Vars.playerGroup.getByID(id); Calls.createBullet(Bullets.lancerLaser, player.getTeam(), player.getX(), player.getY(), Mathf.random(360), Mathf.random(0.5, 1.0), Mathf.random(0.2, 1.0))}

Юниты, предметы, команды, блоки

Категория Список
Юниты draug, spirit, phantom, wraith, ghoul, revenant, lich, reaper, dagger, crawler, titan, fortress, eruptor, chaosArray, eradicator
Предметы scrap, copper, lead, graphite, coal, titanium, thorium, silicon, plastanium, phasefabric, surgealloy, sporePod, sand, blastCompound, pyratite, metaglass
Команды derelict, sharded, crux, green, purple, blue
Блоки
siliconSmelter, kiln, graphitePress, plastaniumCompressor, multiPress, phaseWeaver, surgeSmelter, pyratiteMixer, blastMixer, cryofluidMixer, melter, separator, sporePress, pulverizer, incinerator, coalCentrifuge 
powerSource, powerVoid, itemSource, itemVoid, liquidSource, liquidVoid, message, illuminator
copperWall, copperWallLarge, titaniumWall, titaniumWallLarge, plastaniumWall, plastaniumWallLarge, thoriumWall, thoriumWallLarge, door, doorLarge, phaseWall, phaseWallLarge, surgeWall, surgeWallLarge, mender, mendProjector, overdriveProjector, forceProjector, shockMine, scrapWall, scrapWallLarge, scrapWallHuge, scrapWallGigantic, thruster
conveyor, titaniumConveyor, armoredConveyor, distributor, junction, itemBridge, phaseConveyor, sorter, invertedSorter, router, overflowGate, underflowGate, massDriver
mechanicalPump, rotaryPump, thermalPump, conduit, pulseConduit, platedConduit, liquidRouter, liquidTank, liquidJunction, bridgeConduit, phaseConduit
combustionGenerator, thermalGenerator, turbineGenerator, differentialGenerator, rtgGenerator, solarPanel, largeSolarPanel, thoriumReactor, impactReactor, battery, batteryLarge, powerNode, powerNodeLarge, surgeTower, diode
mechanicalDrill, pneumaticDrill, laserDrill, blastDrill, waterExtractor, oilExtractor, cultivator
coreShard, coreFoundation, coreNucleus, vault, container, unloader, launchPad, launchPadLarge
duo, scatter, scorch, hail, arc, wave, lancer, swarmer, salvo, fuse, ripple, cyclone, spectre, meltdown
commandCenter, draugFactory, spiritFactory, phantomFactory, wraithFactory, ghoulFactory, revenantFactory, daggerFactory, crawlerFactory, titanFactory, fortressFactory, repairPoint
dartPad, deltaPad, tauPad, omegaPad, javelinPad, tridentPad, glaivePad
Зоны groundZero, desertWastes,
   craters, frozenForest, ruinousShores, stainedMountains, tarFields, fungalPass,
   saltFlats, overgrowth, impact0078, crags,
   desolateRift, nuclearComplex

Также посмотрите

Пользовательские правила