Index
Creeper

ClipCreeperLine

ClipCreeperLine(<-start <-end <-lineWidth <-affectCreeper <-affectAC)

Description

Reduces the creeper and/or anti creeper along a line from start postion to end position with a width of lineWidth. Both 'start' and 'end' are vectors. Any creeper that is above the line, will get reduced to the line's height. The X and Z parameters of the start and end vectors are treated as integers since the map is made of integer cells of creeper. The Y parameter (the height) is a floating point value and will vary smoothing across the line's length. The lineWidth is the radius of the line (so the actual area is twice the lineWidth. A value of 0 for the line width draws a line a single cell in size. A value of 1 is a line that is 3 in size (1 on each side of the center). A value of 2 would be 5 in size (2 on each side of the center).

The affectCreeper and affectAC arguments control whether the clipping is applied to creeper, anticreeper, or both. Note that AC is treated as a positive value. So if you set the max to say 10, then the creeper plus terrain will be limited to a depth of 10. There is no reason to concern yourself with anticreeper's intrinsic negative value.

:WARNING: This API fails to work should the start position be off map. This is not the case for the end position.

Examples

#Don't allow the creeper above a diagonal line from 10,1.5,10 to 50,10,50 with a width of 2 to
ClipCreeperLine (V3(10 1.5 10) V3(50 10 50) 2 true false)

Index