-
Notifications
You must be signed in to change notification settings - Fork 0
Portal effect
Pedro270707 edited this page Jul 16, 2026
·
2 revisions
A portal effect is a client-side effect related to portals. The portal effects file is placed in the directory assets/<namespace>/portal_effect/<path>.json, where <namespace>:<path> is the portal identifier.
Class dev.kyanitemods.kyaniteportals.client.content.effects.PortalEffectOptions with a type dev.kyanitemods.kyaniteportals.client.content.effects.PortalEffectType. Use the method dev.kyanitemods.kyaniteportals.client.content.effects.PortalEffects#register(net.minecraft.resources.Identifier, P) to register a portal effect.
-
: The root object.
-
values: A list of portal effects.-
: A portal effect (see JSON format below).
-
-
-
: The root object.
-
type: The effect type ID (see below). - Additional fields of the action, described below.
-
Creates a nausea effect on the screen.
Closes open screens, such as the inventory or the chat.
Shows an overlay while in the portal.
Additional fields:
-
atlas: The sprite atlas ID. -
texture: The texture ID, starting in thetexturesdirectory. -
tint: A color in integer format ranging from 0 (black) to 16777215 (white).
Shows an overlay after traveling through the portal.
Additional fields:
-
atlas: The sprite atlas ID. -
texture: The texture ID, starting in thetexturesdirectory. -
tint: A color in integer format ranging from 0 (black) to 16777215 (white).