Skip to content

spool / GrappleOptions

Interface: GrappleOptions

Defined in: plugins/grapple/config.ts:11

Author-facing knobs for Datapack.grapple. All optional - the bare dp.grapple() reproduces the original behaviour (anchor on any solid block, 50-block reach). The handle is cached per Datapack, so the options passed to the first dp.grapple(...) call win; later calls return that same handle.

Properties

anchorOn?

optional anchorOn?: BlockValue

Defined in: plugins/grapple/config.ts:18

Restrict which blocks a web can anchor to (a block id, or a tag via Block.tag("logs")). The raycast still stops at the first solid block; if that block doesn't match, the grapple simply fizzles (no anchor, no tag) instead of latching. Default: anchor on anything the ray hits.


maxReach?

optional maxReach?: number

Defined in: plugins/grapple/config.ts:20

Maximum web reach in blocks (the raycast length). Default 50.

Released under the MIT License · Credits