User Tools

Site Tools


4rpl:commands:getcreeperinrange

Index
Creeper

:!: Available in 2.0.4 and later

GetCreeperInRange

GetCreeperInRange(<-cellX <-cellZ <-radius <-isSquare <-checkCreeper <-checkAnticreeper) ->totalCreeperInRange

Description

Gets the creeper amount in the specified integer map area. A value of 0 means no creeper. A negative value indicates anticreeper. The amount specified is a floating point number where 1 represents creeper that has a height of 1 terrain unit. The checkCreeper and checkAnticreeper boolean arguments control whether or not creeper and anticreeper are tallied. If both are true, the the result will be the sum of all creeper and anticreeper in range. If you only want creeper tallied, set checkCreeper to true and checkAnticreeper to false, etc.

Examples

GetCreeperInRange(42 23 10 false true false) ->creeperAmt

Index

4rpl/commands/getcreeperinrange.txt · Last modified: 2023/09/07 15:30 by buttRcaT