Skip to content

setrule

Worldworld processor only

Set a game rule.

Syntax

setrule waveSpacing 10 0 0 100 100

Parameters

ParameterTypeDefaultValues
ruleLogicRulewaveSpacing
  • currentWaveTime
  • waveTimer
  • waves
  • wave
  • waveSpacing
  • waveSending
  • attackMode
  • enemyCoreBuildRadius
  • dropZoneRadius
  • unitCap
  • mapArea
  • lighting
  • canGameOver
  • ambientLight
  • unitLight
  • solarMultiplier
  • dragMultiplier
  • ban
  • unban
  • pauseDisabled
  • musicVolume
  • buildSpeed
  • unitHealth
  • unitBuildSpeed
  • unitMineSpeed
  • unitCost
  • unitDamage
  • blockHealth
  • blockDamage
  • rtsMinWeight
  • rtsMinSquad
valuevalue10
p1value0
p2value0
p3value100
p4value100

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.