Skip to content

Portal tester

Pedro270707 edited this page Jul 16, 2026 · 3 revisions

A portal tester is an algorithm which checks if a portal is valid. Used by the portal generator and after generation to check if the portal is still valid.

Technical information

Class dev.kyanitemods.kyaniteportals.content.testers.PortalTester, registerable via dev.kyanitemods.kyaniteportals.content.registry.PortalTesters#REGISTRY through a type dev.kyanitemods.kyaniteportals.content.testers.PortalTesterType.

JSON format

  • image: The root object.
    • image type: The tester type ID (see below).
    • Additional fields of the tester, described below.

Tester types

kyanite_portals:rectangle

Tests a rectangular area.

Additional fields:

  • image width: Range in which the width must be contained.
  • image height: Range in which the height must be contained.
  • image axes: (optional, defaults to ["x", "z"]) List of axes to test.
    • image: One of "x", "y", or "z".
  • image frame: Block predicate for the frame of the portal.
  • image replaceable: Block predicate for replaceable blocks inside the frame which are replaced when the portal is generated.
  • image portal: Block predicate for portal blocks.
  • image corners_required: (defaults to false) Determines if corners are required or not.

Clone this wiki locally