Skip to content

fetch

Worldworld processor only

Lookup units, cores, players or buildings by index. Indices start at 0 and end at their returned count.

Syntax

fetch unit result @sharded 0 @conveyor

Parameters

ParameterTypeDefaultValues
typeFetchTypeunit
  • unit
  • unitCount
  • player
  • playerCount
  • core
  • coreCount
  • build
  • buildCount
resultvalueresult
teamvalue@sharded
indexvalue0
extravalue@conveyor

Data taken from Mindustry v160.4 by the project generators.

Unofficial fan project, not affiliated with Anuke. Mindustry sprites, fonts and translations © Anuke, used under GPL-3.0; Fira Code under OFL-1.1. Site code is GPL-3.0.