#Armor stand

1 messages · Page 1 of 1 (latest)

frosty crow
#

U can use teleport {} to {}
If u want to make clash royale u should use item display as entities

gleaming adder
#

and how i use item display

shell cradle
#

item displays are just entities

#

they work same way as armor stands or pigs

gleaming adder
wild parrot
#

spawn it

#

same way you create an armourstand

shell cradle
frosty crow
#

Item displays will be better because they have interpolation and scale, which will make it much easier to make such a system

gleaming adder
#

so i create a new one every time that get closer

#

well ill just use armor stands and change the location of it with nbt prop

#

or use citizen npc

gleaming adder
#

ill use citizen

#

Move Citizen EffectskRayFall
move citizen %number% to %location% [at speed %number%]
Move citizens by:

ID
Location
Speed
This will make a given NPC pathfind to a location

shell cradle
#

oh no skrayfall

#

well hf

gleaming adder
#

other npcs cnat attack eacother

#

rip

orchid flame
#

Yeah dont use skrayfall

gleaming adder
#

loop diffrence between location of player and {_loc} times:

#

so i want it to loop the amount of blocks in diffrence between the player and location of armor stand

orchid flame
#

Distance. Not difference

#

Dont ping me

gleaming adder
#

sorry

#

i got this now i gotta make it tp towards player

#
    if name of player's tool contains "Skeletons":
        cancel event

        if event-block is not air:
            send action bar "&dElixir: &5%{elixir::%uuid of player%}%" to player
            if {elixir::%uuid of player%} >= 1:
                remove 1 from {elixir::%uuid of player%}
                if {elixir::%uuid of player%} < 0:
                    set {elixir::%uuid of player%} to 0

                

                
                set {_loc} to location above event-block
                add 0, 1, 0 to {_loc}

               
                
                spawn armor stand at {_loc}
                set {armorstand::%uuid of player%} to last spawned armor stand
                #add "{NoGravity:1b,Small:1,Invisible:1,Invulnerable:1,NoBasePlate:1,DisabledSlots:2039583}" to nbt of {armorstand::%uuid of player%}

                loop distance between location of player and {_loc} times:
                    send "%loop-value%" to player



                set {Skeletonsloc::%uuid of player%} to {_loc}```
orchid flame
#

You should format yoru code when you send it on discord

#

also, AI generated code is not allowed in this server

gleaming adder
#

mb i replied

#

!

#

that?

gleaming adder
orchid flame
orchid flame
gleaming adder
gleaming adder
orchid flame
#

there's wikis on the github pages for a bunch of addons, notably skbee

gleaming adder
#

well how do i move it to the player?

#

but not like tp

#

just like move it block by block

#

MB I REPLIED AGAIN

#

so sorry

#

ill stop

#

replying

orchid flame
gleaming adder
#

but like how?

#

i dont see how you get the players location without like tping

orchid flame
gleaming adder
#

ohg mb

orchid flame
gleaming adder
#

i mean like move it

orchid flame
#

push effect then, probably

#

get a vector from them to the player, and then normalise it.
or, maybe skript's push syntax supports towards X as a simpler option

gleaming adder
#

so push entity towards player

orchid flame
gleaming adder
#

ill try

#

like this?

#

every 1 second:
push {armorstand::%uuid of loop-player%} towards loop-player

#

bc i gotta push it towards him every second

#

doesnt work

orchid flame
#

I am not a fan of doing it in a periodical

gleaming adder
#

then how i keep pushing it?

orchid flame
gleaming adder
#

yeah

#

but i thought in every 1 secodn it has to loop players

orchid flame
gleaming adder
#

so it does it

orchid flame
gleaming adder
#

alr

#

hmm

#

hmm

#

it says cant compare a distance with a nunmber

#

tho the number is the distance

#

while distance between player and {armorstand::%uuid of player%} is greather than 1:
push {armorstand::%uuid of player%} towards player

#

and distance between x and x is a condition

orchid flame
#

fyi, that loop will terminate once it reaches the player and wont automatically start up again. I would do something like this:

    wait 1 tick
    if <the distance between them> < 1:
        continue

    <push it>```. note the stuff inside `<>` is not valid syntax
orchid flame
gleaming adder
#

mb

#

so this doesnt work

#

push {armorstand::%uuid of player%} towards player at speed 1

#

saying cant udnerstand condition/effect

orchid flame
#

thats a syntax error

#

means you wrote the line wrong

gleaming adder
#

push player towards player's target at speed 2

#

thats how it is inside the guide place

orchid flame
#

try push {} towards (player's location)

gleaming adder
#

hvae tryed witohut at speed

#

maybe outdated skript

orchid flame
#

Why do you have half of these addons?

#

I think skellet is outdated and skessentials—well im not a fan of essentials

#

And skript-yaml you dont need unless you want to read/write to .YAML files

#

Reflect is a good addon, but a little more advanced

shell cradle
#

man is missing skBee

orchid flame
#

^ true you cant use nbt without

gleaming adder
gleaming adder
#

since it filled too much

#

of chat

orchid flame
#

Well you definitely want to delete some, especially if you have skquery and skrayfall in the list

#

Downloading a bunch of addons just makes things messy—only get the ones you are going to use

gleaming adder
#

so i didnt have to find

orchid flame
#

You only need skript, skbee, and reflect. Maybe skript-particle if you dont want to make your own shapes

gleaming adder
#

k well

#

any guess why that pudh stuff doesnt eork for me

orchid flame
#

Because you likely have outdated addons that are known to cause bugs in code and skript itself.

gleaming adder
#

which should i update

shell cradle
#

everything

#

if you cant update it

#

delete it

gleaming adder
#

is there command to update it?

shell cradle
#

just download it again

#

skript is on github
skbee is on modrynt

gleaming adder
#

should i delete the file and jar file when deleting?

#

or just jar

#

and switch with new version

shell cradle
#

jar obviously

gleaming adder
shell cradle
#

i mean you can
but you dont have to

gleaming adder
#

i fixed

#

set {_v} to vector between {armorstand::%uuid of player%} and player
wait 5 seconds
push {armorstand::%uuid of player%} {_v} at speed 1

#

but

#

it doesnt wait

#

it just instantly does it

orchid flame
#

Show sk info

gleaming adder
#

i fixed it

#

it was just server connecton error

gleaming adder
#

how i fix this?

#

set {nearas::%uuid of player%} to nearest armor stand

orchid flame
#

Nearest to what?

#

What does the syntax look like? That expression is also from skbee so you will need to install that