Game Test
class GameTest(val config: GameTestConfig, val world: World, val center: BlockPosition, val boundingBox: BoundingBox)(source)
A game test is a special blocked-off area in the world that allows you to test blocks, items, entities, and other game mechanics in a controlled environment. It contains a success condition that looks at the world and determines when the test has succeeded.
This represents a running test in the world.
Default behaviour is to simply succeed.
See also
Functions
Link copied to clipboard
Checks whether any entity in the gametest matches predicate
Link copied to clipboard
Link copied to clipboard
Returns the center position of the game test
Returns a position relative to the center of the game test
Link copied to clipboard
Set the condition under which the test will succeed. Will be checked periodically.