User Tools

Site Tools


4rpl:commands:setcreeperinrange

Index
Creeper

SetCreeperInRange

SetCreeperInRange(<-cellX <-cellZ <-radius <-isSquare <-creeperAmt <-dontLower)

Description

Sets the creeper amount in the specified integer map area. A value of 0 means no creeper. A negative value indicates anticreeper. The dontLower argument is a boolean indicating whether the call is allowed to reduce the amount of creeper or anticreeper. If set to true and the amount of creeper in the cell exceeds the amount being set, the call will not affect the creeper. The dontlower argument only affects SetCreeper if a like-type of creeper is being set. For instance if you call setcreeper with a positive amount (creeper) and the destination contains creeper. Or if you call setcreeper with a negative amount (anticreeper) and the destination contains anticreeper. If you call SetCreeper with a positive number (creeper) and anticreeper is at the destination, dontlower has no effect. Similar for anticreeper with creeper at the destination. The amount specified is a floating point number where 1 represents creeper that has a height of 1 terrain unit.

Examples

SetCreeperInRange(42 23 10 false 5 false)

Index

4rpl/commands/setcreeperinrange.txt · Last modified: 2024/02/19 21:46 by durikkan