777 B
777 B
Darklord.js — spawnDomainFx() (satır 2620)
function spawnDomainFx(world, domain, tick)
{
if (tick % 2 !== 0) return;
var phase = tick * 0.22;
var r = Number(domain.radius || DOMAIN_RADIUS) - 0.8;
var y = Number(domain.y) + 0.25;
for (var i = 0; i < 18; i++)
{
var a = phase + i * Math.PI * 2 / 18;
var x = Number(domain.x) + Math.cos(a) * r;
var z = Number(domain.z) + Math.sin(a) * r;
spawnDbParticle(world, "cloud", x, y, z, 1, 0.03, 0.01, 0.03, 0.002);
}
if (tick % 18 === 0)
{
play(world, "minecraft:block.portal.ambient", domain.x, domain.y + 1.0, domain.z, 0.38, 1.12);
}
}