Skip to content

Preprocessors

roidrole edited this page Jun 28, 2025 · 1 revision

Preprocessors

Preprocessors are called at the start of your scripts with #

onside [Side]

There are two accepted Side values : client and server

Will make the code only run on the specified side.

Internally uses FMLCommonHandler.getSide(), equivalent to @SideOnly annotations.

Usage :

  • #onside client
  • #onside server

Clone this wiki locally