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

Class

script.zs
import mods.roots.predicates.StatePredicate;

Methods

script.zs
StatePredicate create(
IBlockState state // description of a blockstate against which only blocks themselves (and not state properties) will be compared
);

Creates an IPredicate where the state is stored, and is matched against other states purely by ensuring that they are of the same block, ignoring any property values.


Examples

script.zs
import mods.roots.predicates.StatePredicate;
StatePredicate.create(<blockstate:minecraft:cobblestone>);

Notes

Simply matches blocks between states, ignoring any property values.