Psi · Mind

Operator: Modulus

A %% B (Integer)

Effect Preview

Operator: Modulus Spell Sheet

Magic ModPsi (Psi 1.21.1-110 (NeoForge))
School / ElementMind
Magic KindGlyph
Glyph RoleOperator
Data SourcePsi-neoforge-1.21.1-110.jar::vazkii/psi/common/spell/operator/number/PieceOperatorModulus.class

How To Use Operator: Modulus

  1. Insert Operator: Modulus onto the Spell Programmer grid beside Selector: Loopcast Index or Selector: Time and a cycle-length Constant: Number.
  2. Wire the growing counter into Number A and your non-zero cycle width into Number B to return the integer remainder of A divided by B.
  3. Save the spell onto a Loopcast Spell Bullet or Psimetal Exosuit Leggings bullet via Right-Click on the Spell Programmer, load it at a CAD Assembler, and trigger it.

Adding 1 Complexity, Modulus lets Exosuit Leggings run heavy Tricks every Nth tick (for instance only when Time mod 20 equals 0) instead of draining Psi every tick.

How To Get Operator: Modulus

Unlocked immediately inside the Spell Programmer palette under the Loopcasting piece group after crafting a Spell Programmer.

More Spells From Psi

All Spells →

9Minecraft Magic Updates — New magic mods, spells & Bedrock add-ons

Explore 9Minecraft Network →