TossObject

Docs Behaviors

Effect

Throw an object.


Attributes

  • child (string[]): children that will be tossed (separated by a coma)
  • targeted (bool, default false): will aim at nearest player
  • range (double, default 0): range at which the entity will be tossed (if targeted, player has to be in this area to throw)
  • angle (double?, default null): angle at which entity will be tossed (if targeted, this is useless)
  • count (int, default 1): amount of entities that will be tossed
  • probability (double, default 1): chance that entity will be tossed
  • coolDown (CoolDown)
  • coolDownOffset (int, default 0)
  • minRange (double?, default null): minimum range it'll throw at (is useless if targeted, overrides range
  • maxRange (double?, default null): maximum range it'll throw at (is useless if targeted, overrides range
  • maxDensity (int?, default null): doesn't toss if entities within area excedes this amount
  • region (TileRegion): finds the nearest region to toss at
  • invis (bool, default false): disables particle effects of toss
  • center (bool, default false): centers object on tile

Examples