-
Notifications
You must be signed in to change notification settings - Fork 0
Portal trigger
Pedro270707 edited this page Jul 16, 2026
·
4 revisions
A portal trigger is a listener which triggers a portal generator.
Class dev.kyanitemods.kyaniteportals.content.triggers.PortalTriggerInstance, registerable via dev.kyanitemods.kyaniteportals.content.registry.PortalTriggers#REGISTRY through a type dev.kyanitemods.kyaniteportals.content.triggers.PortalTrigger.
-
: The root object.
-
type: The trigger type ID (see below). - Additional fields of the trigger, described below.
-
Triggered when an item is used on a block.
Additional fields:
-
predicate: An item predicate which determines whether the item triggers this trigger. -
damage_item_by: (optional, defaults to 0) Determines how much to damage the item when triggered. Must be a non-negative integer.
Triggered when a block in the world changes.
Additional fields:
-
predicate: The block predicate that tests the block added to the world.
Triggered when a potion is thrown in the area around it.
Additional fields:
-
trigger_in_area: (defaults to true) Determines if it should be triggered in the area around the potion or only the block where it landed. -
potions: A list of potion IDs which trigger this trigger. If empty, every potion matches.-
: A potion ID.
-
-
predicate: (optional) An item predicate which determines whether the potion item triggers this trigger.
Triggered when a level event happens.
Additional fields:
-
type: The level event type ID. -
data: (optional) The level event data. If not specified, matches thetypelevel event regardless of data.