Skip to content

Commit 4d596bc

Browse files
committed
kjs-ori: update property names of soul collection event
1 parent 647f477 commit 4d596bc

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

wikis/kubejs-oritech/docs/event/soulcollection.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ cancel the soul collection completely or modify the the amount of souls collecte
1616
- `level`
1717
- type: `ServerLevel`
1818
- description: the level where the soul collection is happening
19-
- `position`
19+
- `pos`
2020
- type: `Vec3` (precise floating point position as a vector)
2121
- description: the position the mob died at, the soul collection is happening at this position
22-
- `blockEntity`
22+
- `soulCollector`
2323
- type: `? extends BaseSoulCollectionEntity`
2424
- description: the `BlockEntity` of the soul collection block; this object is responsible for collecting and storing the soul
2525
- `entity`
@@ -48,7 +48,7 @@ After that, you can apply logic to modify the soul collection amount or cancel i
4848
```js
4949
OritechEvents.soulCollection(event => {
5050
// obtaining all properties of the event by destructuring
51-
let { level, position, blockEntity, entity } = event
51+
let { level, pos, soulCollector, entity } = event
5252

5353
// this happens when it's a soul flower
5454
// let the soul flower always pass -> 1 soul will be collected

0 commit comments

Comments
 (0)