ScriptCraft

ScriptCraft

14.6k Downloads

how do I make an explosion?

x13machine opened this issue ยท 4 comments

commented

I tried self.world.makeExplosion(). It gave me some weird error.

commented

Try this instead (to create an explosion at your own location):

var loc = self.location;
var yield = 2.5; // standard yield for primed TNT
self.world.makeExplosion(self, loc.x, loc.y, loc.z, 2.5, true);

http://docs.visualillusionsent.net/CanaryLib/1.2.0/net/canarymod/api/world/World.html#makeExplosion(net.canarymod.api.entity.Entity,%20double,%20double,%20double,%20float,%20boolean)

commented

good way to crash the server

commented

Hi @x13machine , can you elaborate? I tried the above code myself and the server did not crash.

commented

explosion of 10,000 crashes the server