Skip to content

Commit 200b94c

Browse files
committed
kjs-ori: add portal spawn helper methods to particle state events
1 parent 6a398bf commit 200b94c

3 files changed

Lines changed: 19 additions & 0 deletions

File tree

wikis/kubejs-oritech/docs/event/particle/collided.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,12 @@ that happens when no valid recipe is found.
4848
- functions
4949
- `cancel()`
5050
- description: cancels the particle collision; collision still happens but no item output will be produced, even if a recipe matches
51+
- `spawnEndPortal(BlockPos)`
52+
- description: spawns an end portal at the given position; this is usually used by a special interaction when two Ender Pearls
53+
collide with high speed
54+
- `spawnNetherPortal(BlockPos)`
55+
- description: spawns a nether portal at the given position; this is usually used by a special interaction when two Fire Charges
56+
collide with high speed
5157

5258
## Event Listener
5359

wikis/kubejs-oritech/docs/event/particle/exited.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,13 @@ the particle becomes too fast and can't be contained by the accelerator, for exa
4848
- `COLLIDED` - particle collided with another particle; should not be possible in a valid scenario
4949
- `EXITED_FAST` - particle was too fast to take curve
5050
- `EXITED_NO_GATE` - no gate found in range; particle was to slow to bridge the gap between gates
51+
- functions
52+
- `spawnEndPortal(BlockPos)`
53+
- description: spawns an end portal at the given position; this is usually used by a special interaction when two Ender Pearls
54+
collide with high speed
55+
- `spawnNetherPortal(BlockPos)`
56+
- description: spawns a nether portal at the given position; this is usually used by a special interaction when two Fire Charges
57+
collide with high speed
5158

5259
## Event Listener
5360

wikis/kubejs-oritech/docs/event/particle/injected.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,12 @@ normally reserved for portal creation.
4848
- description: disables the special interaction that creates a nether portal
4949
- `disableEndPortal()`
5050
- description: disables the special interaction that creates an end portal
51+
- `spawnEndPortal(BlockPos)`
52+
- description: spawns an end portal at the given position; this is usually used by a special interaction when two Ender Pearls
53+
collide with high speed
54+
- `spawnNetherPortal(BlockPos)`
55+
- description: spawns a nether portal at the given position; this is usually used by a special interaction when two Fire Charges
56+
collide with high speed
5157

5258
## Event Listener
5359

0 commit comments

Comments
 (0)