SculkSpreader Class
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
Warning
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
Important
This function can't be called in read-only mode.
getCursorPosition
getCursorPosition(index: number): minecraftserver.Vector3
Retrieves the current position of the specified cursor.
Parameters
- index: number
Returns @minecraft/server.Vector3
Important
This function can't be called in read-only mode.
Warning
This function can throw errors.
getNumberOfCursors
getNumberOfCursors(): number
Returns a number of overall cursors for this sculk spreader.
Returns number
Important
This function can't be called in read-only mode.
Warning
This function can throw errors.
getTotalCharge
getTotalCharge(): number
Gets the total current charge of the sculk spreader.
Returns number
Important
This function can't be called in read-only mode.
Warning
This function can throw errors.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for