Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Implements a class that can be used for testing sculk spreading behaviors. This sculk spreader class can drive the growth of sculk around a particular block.
Properties
maxCharge
read-only maxCharge: number;
Gets the maximum charge of a sculk spreader.
Type: number
Notes:
- This property can throw errors when used.
Methods
addCursorsWithOffset
addCursorsWithOffset(offset: minecraftserver.Vector3, charge: number): void
Adds a cursor - which is a notional waypoint that the sculk will spread in the direction of.
Parameters
- offset: @minecraft/server.Vector3
- charge: number
Notes:
- This function can't be called in restricted-execution mode.
getCursorPosition
getCursorPosition(index: number): minecraftserver.Vector3
Retrieves the current position of the specified cursor.
Parameters
- index: number
Returns @minecraft/server.Vector3
Notes:
- This function can't be called in restricted-execution mode.
- This function can throw errors.
getNumberOfCursors
getNumberOfCursors(): number
Returns a number of overall cursors for this sculk spreader.
Returns number
Notes:
- This function can't be called in restricted-execution mode.
- This function can throw errors.
getTotalCharge
getTotalCharge(): number
Gets the total current charge of the sculk spreader.
Returns number
Notes:
- This function can't be called in restricted-execution mode.
- This function can throw errors.