Home Getting Started With Scripts Using this wiki Commands CTGUI Global functions Bracket Handlers
ContentTweaker Commands WalkThrough

PushReaction

A push reaction is what happens when a piston tries to push a block.

Importing the package

It might be required for you to import the package if you encounter any issues, so better be safe than sorry and add the import.
import mods.contenttweaker.PushReaction;

Comparing two reactions

You can see if two reactions are equal by using the == operator.

script.zs
if(a == b){}

Static methods

You can use these methods to get PushReaction Objects:

script.zs
mods.contenttweaker.PushReaction.normal();
mods.contenttweaker.PushReaction.destroy();
mods.contenttweaker.PushReaction.block();
mods.contenttweaker.PushReaction.ignore();
mods.contenttweaker.PushReaction.pushOnly();