Files

1.0 KiB
Raw Permalink Blame History

bariskeser_skills.js — boom() (satır 483)

← bariskeser_skills.js · ← Master

function boom(w, x, y, z, r, rgb) {
    if (!rgb) rgb = [1.0, 0.55, 0.15];                 // varsayılan: sıcak patlama rengi
    showHead(w, x, y, z, Math.max(2.5, r * 0.8), 4);   // her patlamada Barış'ın yüzü belirir
    fx(w, "hugeexplosion", x, y, z, Math.max(1, Math.round(r / 3)), 0.1 * r, 0.1 * r, 0.1 * r, 0.04);
    fx(w, "largeexplode",  x, y, z, Math.round(r * 2), 0.4 * r, 0.4 * r, 0.4 * r, 0.05);
    fx(w, "largesmoke",    x, y, z, Math.round(r * 12), 0.4 * r, 0.4 * r, 0.4 * r, 0.04);
    fx(w, "flame",         x, y, z, Math.round(r * 6), 0.3 * r, 0.3 * r, 0.3 * r, 0.05);
    dust(w, x, y, z, rgb, Math.round(r * 6), r * 0.5);                     // temalı renkli toz
    ringDust(w, x, y, z, r * 0.9, rgb, Math.max(12, Math.round(r * 4)));   // temiz renkli şok halkası
    w.playSound("minecraft:entity.generic.explode", x, y, z, Math.min(4, 1 + r * 0.3), 0.9);
}