-
Notifications
You must be signed in to change notification settings - Fork 0
Additional content
Kyanite Portals adds new data types which are used in certain definitions and a new particle type.
Predicate for integer numbers.
Class dev.kyanitemods.kyaniteportals.util.Range.Int.
-
: The root object.
- One of:
- Range: checks a range between a minimum value and a maximum value.
-
min: The lower bound. -
max: The higher bound.
-
- Exactly: checks an exact value.
-
exactly: The value to be checked.
-
- Range: checks a range between a minimum value and a maximum value.
- One of:
A definition which includes a block state and a block entity.
Class dev.kyanitemods.kyaniteportals.util.BlockEntityPair.
-

: The root object. Can be a
block ID, a
block state, or a full
block entity pair, with the first two being converted to a block entity pair.
- If a
block entity pair:
-

block: The block state. Can be a
block ID or a
block state. -
nbt: A string containing the SNBT representation of the block entity data.
-
- If a
Similar to the vanilla portal particle, but can have any color.
Additional fields:
-
color: A list of three floating point values specifying an [R, G, B] color for the particle.-
: Value between 0.0 and 1.0 (inclusive).
-
Checks if the block entity NBT matches.
Additional fields:
-
nbt: A string containing the SNBT representation of the block entity data. -
offset: (optional, defaults to [0, 0, 0]) A list of 3 integers specifying an [X, Y, Z] block position offset to check.-
: Value between -16 and 16 (inclusive).
-
The location where a portal action happens.
Class dev.kyanitemods.kyaniteportals.content.actions.location.ActionLocationOptions with type dev.kyanitemods.kyaniteportals.content.actions.location.ActionLocation. ActionLocationOptions is extended by dev.kyanitemods.kyaniteportals.content.actions.location.FullActionLocationOptions and dev.kyanitemods.kyaniteportals.content.actions.location.LoadActionLocationOptions.
-
: The root object.
- One of:
- Full: Defines action location options.
-
dimension: Dimension context.-
in: The type of dimension context. Can be one ofentry_point,opposite_point,entity_dimension, ordimension_in_set. - If
inis set toentry_point: Positions in the same dimension where the entry portal is located. - If
inis set toopposite_point: Positions in the opposite dimension based on
firstand
second, i.e., if the entry point is a dimension in
first, chooses a dimension in
secondand vice-versa. Additional fields: -
first: The first set of dimensions.-
: A dimension ID.
-
-
second: The second set of dimensions.-
: A dimension ID.
-
- If
inis set toentity_dimension: Positions in the dimension where the entity is currently located. - If
inis set todimension_in_set: Positions in a random dimension in the specified set. Additional fields: -
set: The set of dimensions.-
: A dimension ID.
-
-
-
position: Position context.-
from: Can be one ofportal,entity, orworld_origin. -
rounding_mode: (optional, defaults to none) Determines how the resulting coordinate is rounded (can be one ofnone,up,down,round,floor, andceiling). -
in_bounds: (defaults to false) Determines whether the resulting coordinate should be clamped. Only supported server-side. -
adapt_coordinate_space: (defaults to false) Determines if the dimension coordinate space should be considered (in the vanilla game, one block in the Nether corresponds to eight in the Overworld). Only supported server-side. -
offset: (optional, defaults to [0, 0, 0]) A list of 3 doubles specifying an [X, Y, Z] offset.-
: A coordinate.
-
-
-
- Load: Loads an action location from the storage.
-
load: The key from which to load the action location.
-
- Full: Defines action location options.
- One of:
Works the same as a block predicate, but can be tested client-side. Uses the level itself if it is an instance of WorldGenLevel, otherwise, uses a LevelWrapper to wrap any LevelReader. This mod uses this to allow portal testers to function client-side.
- Note: not an ideal solution, so if you have a better idea, you can create a pull request.
Class dev.kyanitemods.kyaniteportals.util.AgnosticPredicate.