Files

54 lines
1.8 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# gojo_skills.js — cast_blue() (satır 232)
[← gojo_skills.js](index.md) · [← Master](../../wiki.md)
Parça 1/3 · [sonraki](cast_blue-2.md)
```javascript
function cast_blue(c) {
var p = c.getPlayer();
if (!p) return;
if (onCooldown(p, "blue")) return;
setCooldown(p, "blue");
var world = c.getWorld();
var pPos = p.getPosition();
var eyeH = p.getEyeHeight();
var look = p.getLook();
var basis = lookBasis(look);
// Hedef merkez
var bx = pPos.x + look.x * 5;
var by = pPos.y + eyeH + look.y * 5;
var bz = pPos.z + look.z * 5;
// Blockbuster image morph — URL teksturu doğrudan billboard olarak çizilir
var blueCoreMorph = orbMorph("https://share.bariskeser.com/gojo/limitless_blue.png");
var blueGlowMorph = mappet.createMorph('{Name:"block",Block:"minecraft:sea_lantern"}');
p.sendTitleDurations(1, 18, 6);
p.sendTitle("§9§lAO");
world.playSound("minecraft:entity.lightning.thunder", bx, by, bz, 1.2, 1.6);
world.playSound("minecraft:block.portal.trigger", bx, by, bz, 1.0, 1.4);
world.playSound("minecraft:entity.elder_guardian.curse", bx, by, bz, 0.6, 1.5);
spawnFx(world, "largeexplode", bx, by, bz, 1, 0, 0, 0, 0);
spawnFx(world, "endRod", bx, by, bz, 60, 0.8, 0.8, 0.8, 0.4);
var totalTicks = 30;
var t = 0;
function loop(ctx) {
var w = ctx.getWorld();
var caster = ctx.getPlayer();
if (t >= totalTicks) {
// Final patlama
w.playSound("minecraft:entity.generic.explode", bx, by, bz, 2.0, 0.9);
spawnFx(w, "hugeexplosion", bx, by, bz, 3, 0, 0, 0, 0.1);
spawnFx(w, "largesmoke", bx, by, bz, 80, 1.5, 1.5, 1.5, 0.05);
shockRing(w, basis, bx, by, bz, 3.5, blueGlowMorph, 6, 0);
return;
```