Files

41 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.
# starrr.js — main() (satır 1)
[← starrr.js](index.md) · [← Master](../../wiki.md)
Parça 3/6 · [önceki](main-2.md) · [sonraki](main-4.md)
```javascript
ctx.executeCommand("title " + pName + " times 0 10 0");
ctx.executeCommand('title ' + pName + ' title {"text":"Worldbuster PATLIYOR!!","color":"red","bold":true}');
}
}
// Çift sarmal parçacık efekti dönmeye devam eder
for (var k = 0; k < 6; k++) {
var tFactor = tick + k / 6;
var angle = tFactor * 0.35;
var r = 0.5 + 1.2 * Math.abs(Math.sin(tFactor * 0.08));
var relativeHeight = ((tFactor % 30) / 30) * 2.1;
var py = pos.y + relativeHeight;
var px1 = pos.x + r * Math.cos(angle);
var pz1 = pos.z + r * Math.sin(angle);
spawnFx(ctx, "flame", px1, py, pz1, 1, 0, 0, 0, 0);
spawnFx(ctx, "endRod", px1, py, pz1, 1, 0, 0, 0, 0);
var px2 = pos.x + r * Math.cos(angle + Math.PI);
var pz2 = pos.z + r * Math.sin(angle + Math.PI);
spawnFx(ctx, "flame", px2, py, pz2, 1, 0, 0, 0, 0);
spawnFx(ctx, "endRod", px2, py, pz2, 1, 0, 0, 0, 0);
}
if (tick % 10 === 0) {
ctx.getWorld().playSound("minecraft:entity.experience_orb.pickup", pos.x, pos.y + 1.0, pos.z, 0.6, 1.6);
}
});
})(t);
}
// --- 3. AŞAMA: 10 SANİYE SONRA BÜYÜK PATLAMA ---
```