#heat seeking shulker bullets...?

1 messages · Page 1 of 1 (latest)

odd dagger
#

command /seektest:
permission: op
trigger:
set {_p} to player
set {_targets::} to all living entities in radius 20 around {_p}
remove {_p} from {_targets::
}
if size of {_targets::} <= 0:
send "&cNo valid targets nearby." to {_p}
stop
set {_t} to random element out of {_targets::
}
spawn shulker bullet at location 1.5 blocks above {_p}
set {_b} to last spawned entity
wait 1 tick
set target of {_b} to {_t}
send "&a[SeekTest] Target locked."
while {_b} is alive:
if {_t} is not alive:
stop
set target of {_b} to {_t}
wait 1 ticks

gentle plover
odd dagger
#

da faq

#

my goal here is to summon a shulker bullet and it seek out another target

#

but it just falls to my feet eith gravity

gentle plover
#

Well you should have lead with that

#

Also target only works for living entities i think

#

So maybe try spawning an invisible shulker

odd dagger
#

hmmm

#

ok so behind the idea of missles here, im recreating a threadling strand thing from destniy 2, its an ability i can cast that send 2 or 3 of these threadlings out aand seek out targets to attack. if i spawn in an invisable shulker it would be hard to control it too send x amount of projectiles within 5 ticks, is there a better way?

#

i really dont wanna have a shulker sitting around then delete it after x duration

candid tundra
odd dagger
#

they arent working when i summon it thorugh skript tho, and i havent been able to make a shulker spit one and force the bullets target

odd dagger
#

ima just be an over achiever and try recreating the tracking Ai dedicated for the bullet

odd dagger
#

I failed, how can I get the bullet to work like it does normally without a shulker

gentle plover
#

Spawn an invisible shulker and make it target the player maybe

odd dagger
#

yeah but im avoiding those entities being spawned, i want to spawn the bullett make the bullet track an entity and on damage that entity get blown up like a missle

#

command /seekbullet:
permission: op
trigger:
set {_shooter} to player

    set {_targets::*} to all living entities in radius 25 around {_shooter}
    remove {_shooter} from {_targets::*}
    if size of {_targets::*} = 0:
        stop

    clear {_bullets::*}
    clear {_bulletTarget::*}

    loop 1 times:
        set {_target} to random element out of {_targets::*}

        spawn shulker bullet at location 2.5 blocks above and 1 block in front of {_shooter}
        set {_bullet} to last spawned entity

        set name of {_bullet} to "&aThreadling"

        add {_bullet} to {_bullets::*}
        set {_bulletTarget::%uuid of {_bullet}%} to {_target}

    wait 1 tick

    while size of {_bullets::*} > 0:

        loop {_bullets::*}:
            set {_bullet} to loop-value
            set {_target} to {_bulletTarget::%uuid of {_bullet}%}

            if {_target} is not alive:
                delete {_bullet}
                continue
            if {_bullet} is not alive:
                delete {_bullet}
                continue
            # Homing movement
            set {_tloc} to location 1 block above {_target}
            loop all entities in radius 1.3 of {_bullet}:
                if loop-entity is alive:
                    kill {_bullet}
            set {_dx} to x-coordinate of {_tloc} - x-coordinate of {_bullet}
            set {_dy} to y-coordinate of {_tloc} - y-coordinate of {_bullet}
            set {_dz} to z-coordinate of {_tloc} - z-coordinate of {_bullet}
            draw 1 of dust using dustOption(green, 5) at {_bullet}
            set velocity of {_bullet} to vector({_dx} / 12, {_dy} / 10, {_dz} / 12)

        wait 1 tick

heres what i have so far

#

its vectors but it works

#

last thing i need is a working "on hit"
wich i cant seem to figure out

#

{how do i track a death event of a shulker bullet with a name?}

gentle plover
#

Yeah we dont allow ai code here.

odd dagger
#

bruh

#

tell me why cuz honestly that Ai has been more help understanding how shit works than anyone here, probably cuz you are to busy criticly analyzing Ai to actually help.

gentle plover
#

Well, this skript-help is intended to help you learn from mistakes, which is best done through practice instead of getting a robot to do it for you

odd dagger
#

at what point have you actually helped?

fickle hinge
odd dagger
#

... you- you reelize i didnt get told that until the second time i paste somthing right?

odd dagger
odd dagger
#

does my point make sense yet?

gentle plover
gentle plover
odd dagger
#

critics..

#

not what i need

#

understanding and an ally is

fickle hinge
#

its against the rules to post ai code

odd dagger
#

i understand Ai is looked down on, for more reasons than i can list

odd dagger
#

why are you still here.

fickle hinge
#

you are replying to me

gentle plover
#

If you understand that, especially the reasoning being it prevents your personal growth, why use it?

fickle hinge
#

we are having a conversation

odd dagger
odd dagger
fickle hinge
#

that's cool
respect people that wont help you because you use ai

odd dagger
fickle hinge
odd dagger
fickle hinge
#

i use she/her pronouns please

odd dagger
#

holy!

#

a lgtbq person.

#

crazy...

gentle plover
#

No, just a female??

odd dagger
fickle hinge
#

everyone has them ❤️

odd dagger
#

....

#

im not gunna stop using AI. its an incredible tool

fickle hinge
fickle hinge
odd dagger
gentle plover
odd dagger
#

or a snow ball

#

make heatseaking snowballs

#

you guys look at AI in such a dark light

fickle hinge
#

its against the rules

odd dagger
#

i recreated solo leveling with AI

odd dagger
fickle hinge
#

thats cool i think it wont be very good

fickle hinge
odd dagger
#

like rules do anything at this level

#

ITS FUCKING AI!

#

its like a harmless puppy

#

i get it, if used abusivly or exessivly its bad, i say the same thing to a friend

#

but i dont abuse it

#

i use Ai to trouble shoot, and maybe mass build code

#

thats it

#

mostly trouble shooting

odd dagger
#

did i not just explain i understand it CAN be abused

#

how about a subject change? cuz im done arguing wasting my time.

is there a way to get shulker bullets track naturaly? anyone who knows about it?
i have a shity vector pull but i want the natural tracking.

gentle plover
# odd dagger you guys look at AI in such a dark light

No ones denying AI hasn't come a long way or that (in some cases) it can be used as a tool. BUT, there are many cases of AI making mistakes (ie failing simple math questions, not knowing how to spell 'strawberry', etc). You need a basic understanding of the topic you are using ai for to be able to decide, at face value whether the result it generates is in the realm of possibility, and then do more work to make sure it is accurate to a degree enough for your purposes.
This is actually quite relevant to Skript as AI constantly confises Skript for Python, and has very minimal Skript knowledge compared to other languages (Py, C++, Java, etc)

AI should not be used as a replacement for your own growth though. Its the same thing as why cheating in school is bad. If you get your friend to do an assignment for you, when it comes to the next one, you wont have the learning from last time to go off of. Relying on this friend (or AI) for higher and higher knowledge only puts you further behind where you could be with practice and patience

gentle plover
odd dagger
#

i dont want a shulker to exist. is that a requirment tho?

gentle plover
#

i mean why cant you use it? seems like a straight forward solution to me. You havet provided reasoning for why this doesnt fit your needs

odd dagger
#

im summoning multiple its for a rpg setup where you activate the ability.

it scans for entities around you and fires them and tracks individual targets.

#

and a shulker means i need to force it to fire fast enough to get rid of it.
and then again and again

#

on different targets.

#

and i tried this

#

it worked ok(ish)

#

but i have more precise control if i can remove the shulker from the situatioon entirly

#

this is all based on destiny 2 strand subclass. threadlings

gentle plover
#

skript has a way to make a mob target a player. If you need more control, you would have to look into maybe skript-reflect to get the shulker to shoot specifically when and only when you designate.

odd dagger
#

more addons?

gentle plover
#

although, skript-reflect adds a "bit of java stuff" to skript, so you would need a decent prequisite knowledge of base skript

fickle hinge
odd dagger
#

hmmm, i mmight just be stuck with what i have for now ig...

gentle plover
# odd dagger more addons?

Addons are not bad. They add functionality. Only bad thing is downloading outdated/buggy ones, or ones you dont end up using

gentle plover
#

Java.

fickle hinge
#

Minecraft X edition

odd dagger
#

... oh hell

#

also who tf is judge judy!

gentle plover
#

moderator bot

odd dagger
#

nvm

#

wanna bad but fun idea

#

i want to make a void thrasher

#

i floating beast in the end dimension, that fires mini hollow purples

#

hollow purple=begone ball

gentle plover
#

yes, ive seen read jjk

odd dagger
#

im just gunna abandon the threadlings for now, its to stable functional point

#

gg

#

right ima go do that. if i need help understanding somthing complex.... ill figure out weather i wanna deal with people asking if i used ai again...'

gentle plover
odd dagger
#

i recreated fricking dugeons!

#

from solo leveling!

#

nothing could be more gratifying than that!

gentle plover
#

how about the learning behind that, so you can transfer that knowedge towards working on another project?

odd dagger
#

3k lines of over complicating code for variable and precise dungeons with i have great control over, and so many fail safes for smooth game play!