38 lines
1.4 KiB
Markdown
38 lines
1.4 KiB
Markdown
# voidlarspine.js — main() (satır 1)
|
||
|
||
[← voidlarspine.js](index.md) · [← Master](../../wiki.md)
|
||
|
||
```javascript
|
||
function main(c)
|
||
{
|
||
c.getSubject().shootBBGunProjectile('{Gun:{Speed:10.0f,FireCommand:"playsound athenastudios:spine master @a[r=15]",Damage:10.0f,Transform:{P:[0.0f,0.0f,-0.125f],R:[90.0f,0.0f,0.0f]},Projectile:{Thickness:1b,Lighting:0b,Texture:"https://mutluresim.com/images/2026/05/09/XKDC1j.png",Shaded:0b,Name:"blockbuster.image",ForcedSettings:0b},Gravity:0.0f},display:{Lore:[]},ScriptedItem:{OnUseTick:{Blocks:[]},Pickup:{Blocks:[]},InteractWithEntity:{Blocks:[]},AttackEntity:{Blocks:[]},OnHolderTick:{Blocks:[]},StoppedHolding:{Blocks:[]},BreakBlock:{Blocks:[]},UseStart:{Blocks:[]},UseStop:{Blocks:[]},HitBlock:{Blocks:[]},PickedUp:0b,StartedHolding:{Blocks:[]},InteractWithAir:{Blocks:[]},FinishedUsing:{Blocks:[]},InteractWithBlock:{Blocks:[]},FirstPickup:{Blocks:[]},Toss:{Blocks:[]},PlaceBlock:{Blocks:[]}}}')
|
||
var source = c.getSubject();
|
||
|
||
if (!source)
|
||
{
|
||
return;
|
||
}
|
||
|
||
var result = source.rayTrace(32);
|
||
|
||
if (!result || !result.isEntity())
|
||
{
|
||
return;
|
||
}
|
||
|
||
var target = result.getEntity();
|
||
|
||
if (!target || !target.isPlayer())
|
||
{
|
||
return;
|
||
}
|
||
|
||
if (target.isSame(source))
|
||
{
|
||
return;
|
||
}
|
||
var n = target.getName();
|
||
c.executeCommand('/mp event trigger '+n+' VoidlarSpine')
|
||
}
|
||
```
|