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
positionIts location.
stonePile.rotation
rotationIts rotation.
stonePile.stones
stonesStones left, where -1 never runs out. You can assign to it.
stonePile.usable
usableWhether players can take stones. You can assign to it.
stonePile.damage
damageDamage at the point of impact, 0 to 1000. You can assign to it.
stonePile.blastRadius
blastRadiusHow far damage reaches, 0 to 10 m. You can assign to it.
stonePile.destroy()
destroy()Removes the pile, firing stonePileDestroy.
stonePile.id
id: numberThe pile's network id.
stonePile.dimension
dimension: numberThe pile's dimension.