Files

1.4 KiB
Raw Permalink Blame History

voidlarparcalama.js — main() (satır 1)

← voidlarparcalama.js · ← Master

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.om/images/2026/05/09/XKDC1j.pg",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+' VoidlarParcalama')
}