ZenScript Copyimport mods.roots.predicates.BlockStateBelow;
使用方式
Link to 使用方式
ZenScript CopyBlockStateBelow create(
IPredicate predicate // a defined predicate that describes (potentially) multiple blockstates
);
Creates an IWorldCondition which tests the state below a block using the provided IPredicate.
ZenScript Copyimport mods.roots.predicates.BlockStateBelow;
import mods.roots.predicates.PropertyPredicate;
BlockStateBelow.create(PropertyPredicate.create(<blockstate:minecraft:log:variant=spruce>, "variant")); // Creates a world predicate that will only match blocks which have a block below them that is both a log and with the variant of spruce.
A positional IWorldPredicate that allows for the specification of an IPredicate to check above blocks for.