Difference between revisions of "Effect.explosion"
From Runsafe
(Created page with "== Details == ''Arguments'' * '''worldName''' (String) - The name of the world which this explosion occurs. [Required] * '''x''' (Double) - The X co-ordinate of this explosion...") |
(→Details) |
||
Line 5: | Line 5: | ||
* '''y''' (Double) - The Y co-ordinate of this explosion. [Required] | * '''y''' (Double) - The Y co-ordinate of this explosion. [Required] | ||
* '''z''' (Double) - The Z co-ordinate of this explosion. [Required] | * '''z''' (Double) - The Z co-ordinate of this explosion. [Required] | ||
− | * '''power''' ( | + | * '''power''' (Integer) - The power of the explosion. [Required] |
* '''breakBlocks''' (Boolean) - Should the explosion break blocks? [Required] | * '''breakBlocks''' (Boolean) - Should the explosion break blocks? [Required] | ||
* '''fire''' (Boolean) - Should the explosion set fire to things? [Required] | * '''fire''' (Boolean) - Should the explosion set fire to things? [Required] |
Latest revision as of 04:35, 4 June 2013
Details
Arguments
- worldName (String) - The name of the world which this explosion occurs. [Required]
- x (Double) - The X co-ordinate of this explosion. [Required]
- y (Double) - The Y co-ordinate of this explosion. [Required]
- z (Double) - The Z co-ordinate of this explosion. [Required]
- power (Integer) - The power of the explosion. [Required]
- breakBlocks (Boolean) - Should the explosion break blocks? [Required]
- fire (Boolean) - Should the explosion set fire to things? [Required]
Returns
- Nothing.
Usage
-- Create an explosion at 42, 42, 42 with a 10 TNT power that sets fire and breaks blocks. engine.effect.explosion('world', 42, 42, 42, 10, true, true);
Notes
- The power value should be kept low to avoid server lag.
- The fire flag may cause lag with larger explosions.