StonePile

A pile of stones on a battlement, which players throw over the wall with the game's stone throwing. The server counts the stones and decides the damage: full at the point of impact, falling to a quarter at the edge of the radius. Events are stonePileSpawn, stonePileThrow, stoneImpact and stonePileDestroy.

stonePile.spawn()

StonePile.spawn(position, orientation, dimension)

Places a pile with endless stones, usable, with damage 60 and a 1.5 m radius.

stonePile.all()

StonePile.all(dimension)

All piles, or those in one dimension.

stonePile.getById()

StonePile.getById(id)

The pile with this network id, or null.

stonePile.destroyAll()

StonePile.destroyAll(dimension)

Removes all piles, or those in one dimension, and returns how many.

stonePile.position

position

Its location.

stonePile.rotation

rotation

Its rotation.

stonePile.stones

stones

Stones left, where -1 never runs out. You can assign to it.

stonePile.usable

usable

Whether players can take stones. You can assign to it.

stonePile.damage

damage

Damage at the point of impact, 0 to 1000. You can assign to it.

stonePile.blastRadius

blastRadius

How far damage reaches, 0 to 10 m. You can assign to it.

stonePile.destroy()

destroy()

Removes the pile, firing stonePileDestroy.

stonePile.id

id: number

The pile's network id.

stonePile.dimension

dimension: number

The pile's dimension.