Files

28 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.
# pirt3.js — runProjectile() (satır 166)
[← pirt3.js](index.md) · [← Master](../../wiki.md)
Parça 4/6 · [önceki](runProjectile-3.md) · [sonraki](runProjectile-5.md)
```javascript
}
}
}
}
}
// Merkezde gerçek bir yıldırımı tetikle
world.spawnEntity("minecraft:lightning_bolt", hitPos.x, hitPos.y, hitPos.z);
// Hasar uygula ve Blockbuster uyuma morphu uygula
var hitEntities = world.getEntities(cx, cy, cz, SPELL_CONFIG.DAMAGE_RADIUS * 1.0);
if (hitEntities !== null) {
for (var e = 0; e < hitEntities.size(); e++) {
var ent = hitEntities.get(e);
if (ent !== null && ent.getUniqueId() !== shooterUUID) {
try {
var sleepMorph = mappet.createMorph('{Pose:"sleeping",CustomPose:{Size:[0.6f,0.4f,0.2f],Poses:{right_arm:{P:[-17.5f,-2.0f,0.09375f],R:[0.0f,0.0f,-15.0f],F:1b},left_leg:{P:[16.15625f,-24.625f,-1.75f],R:[0.0f,0.0f,15.0f]},right_armwear:{P:[0.0f,-4.0f,0.0f]},outer:{P:[0.0f,4.0f,0.0f]},left_legwear:{P:[0.0f,-6.0f,0.0f]},body:{P:[0.0f,8.0f,0.0f]},bodywear:{P:[0.0f,-6.0f,0.0f]},head:{P:[0.0f,14.75f,0.0f],R:[0.0f,0.0f,-15.0f]},left_arm:{P:[22.71875f,9.0625f,-0.375f],R:[0.0f,0.0f,15.0f],F:1b},right_leg:{P:[-2.0f,-31.03125f,-1.46875f],R:[0.0f,0.0f,-15.0f],F:1b},right_legwear:{P:[0.0f,-6.0f,0.0f]},anchor:{P:[0.0f,2.0f,0.0f],R:[-90.0f,0.0f,0.0f],C:16777215},left_armwear:{P:[0.0f,-4.0f,0.0f]}}},Settings:{Hands:0b,Speed:0.1f,Action:"null",ShadowOption:0,Abilities:[],Updates:1b,HP:200,Attack:"null",BetterLightsShadow:1b,Hostile:1b},Name:"blockbuster.fred_3d",ForcedSettings:1b}');
ent.setMorph(sleepMorph);
} catch(err) {
```