#it worked fine but suddenly broke

1 messages · Page 1 of 1 (latest)

worthy sierra
hollow mossBOT
#

<@&1201956957406109788>

Someone will come and help soon!

💬 While you wait, take this time to provide more context and details.

                        🙇 After a while, hit the Summon Helpers button to ping the helper team. They'll be happy to help you


                        
                        ✅ Once your question has been resolved (or you no longer need it), please click Resolve Question or run /resolve
worthy sierra
inland mica
#

You're going to need to provide more information about what you expect to happen vs what is happening, especially for those of us who were not following your previous thread.

worthy sierra
#

ah right sorry its suppose to grab the nearby player UUID store it in storage and then use it in the AngryAt so it will become angry at the nearby player

hollow mossBOT
# hollow moss <@&1201956957406109788>

<@&935561184806060073>

**🙇 Helpers Arise!**

Please note that you still might not immediately get a response since all helpers are human beings and volunteers (and also might be sleeping right now)

shell pebble
# worthy sierra

make it $say summon instead of $summon so you can see if it works as expected, perhaps

worthy sierra
#

it does summon the dog

#

but its not agry at the player

shell pebble
#

yeah it should do but even so the NBT might be formatted wrong, so use $say to debug it

inland mica
shell pebble
worthy sierra
shell pebble
#

that looks fine

worthy sierra
#

it does grab A UUID but idk where it gets that from

#

its not the nearby player uuid

shell pebble
#

oh yeah

#

thats the UUID of the wolf

worthy sierra
shell pebble
#

youre telling it to be angry at itself

worthy sierra
#

hjow tho

#

its executes as @a

shell pebble
#

execute as @e[type=!wolf,tag=!k9_owner,sort=nearest,limit=1] run data modify storage stickfight:dog dog.k9 set from entity @s UUID

#

You're running the command to get the UUID of @s as the wolf

worthy sierra
#

but if i use it with this right and there is a marker nearby

#

will it get mad at the marker?

shell pebble
#

Btw, your current code isn't great lol. you can do it in two commands```ls
execute summon wolf run function some_other_function

in some_other_function

data modify entity @s AngryAt set from entity @p UUID```

shell pebble
worthy sierra
#

none of my code it great tbh xD

shell pebble
#

this might be more optimised than using a macro too because macros arent greatly optimised but it makes no difference anyway

worthy sierra
shell pebble
#

you can change @p to whatever you need it to be

worthy sierra
#

so i can change it to @a[distance=1..5]

shell pebble
#

no bcuz it can only be one entity

worthy sierra
#

then add limt =1

shell pebble
#

and that could return more than one

#

sure if you want

#

up to you

#

@p is nearest player

worthy sierra
#

yeah but wont it target myself?

shell pebble
#

yeah so like

#

tag yourself

#

then do @e[tag=!some_tag,limit=1,sort=nearest] or something

worthy sierra
#

ah

shell pebble
#

if you want to exclude certain types of mobs, you can create an entity types tag and do type=!#namespace:path/to/tag

worthy sierra
#

i did it like this so it only targets players since thats what i want

shell pebble
#

yeah that should work

#

put UUID after it

#

so data modify entity @s AngryAt set from entity @a[tag=!k9_owner,sort=nearest,limit=1] UUID

worthy sierra
#

yeh i did now

#

ill keep it open for now

#

and test it when my friend is back

shell pebble
#

lol

#

you can use a mod to make fake players

#

such as carpet mod

worthy sierra
#

:O

#

wow

shell pebble
#

they will stand still but act like real players

worthy sierra
#

ive been using my friend as a slave

#

xD

#

can i add a name to the wolf?

#

it doesnt work like it did before

#

i think because its in a execute command

#

execute summon wolf run function stickfight:baton_stick/spawn_dog
how does this work does it execute the function as the wolf?

last kettle
#

mb gekke lmao but at least you know how macros work now…

last kettle
#

as for the name, uhhh

#

1st off

#

CustomNameVisible is irrelevant

#

it only does anything on like armor stands n displays like that

last kettle
#

try naming a dog manually and checking the data

#

to compare it

#

cause idk the nbt 100% for sure off top of my head, though yours looks right

#

i think i was just trying to avoid an excess @e command

last kettle
#

though i dont actually know whether another @e or a macro would be less optimized

last kettle
# worthy sierra

speaking of, if you wanted to give it a name even when youre not looking at it, you could make a text display riding it

worthy sierra
worthy sierra
shell pebble
#

the execute summon command can’t have nbt

#

you can data merge the NBT in the function

worthy sierra
#

i was able to do it before tho

shell pebble
#

yeah it does

worthy sierra
#

ah

shell pebble
#

it summons a wolf and executes the function as it

worthy sierra
#

i didnt know that worked liked that

#

thanks

#

like this?

shell pebble
#

yea

worthy sierra
#

dont work xD

shell pebble
#

does it summon the wolf

worthy sierra
#

oh wqait

#

sorta does

#

its not showing all the time

#

only when i hover over it

shell pebble
#

oh yeah make CustomNameVisible set to true then

worthy sierra
#

didnt lion say that that didnt work?

shell pebble
#

he was probs wrong then

#

idk lul

worthy sierra
#

haha

#

lul means something else in my language

last kettle
#

ohhh wait

#

you meant execute summon

#

sorry i thought u just meant like “execute as blank run summon” or smth 💀

worthy sierra
#

noo

#

:P

last kettle
#

nvm then yeah

#

data merge works too

worthy sierra
#

not your fault sila is just a pro

last kettle
#

glad you worked it out

last kettle
shell pebble
#

nah I also thought customanmevisible wouldn’t make a difference

worthy sierra
#

but lion is to since he learned me macros

#

i made this from the macros

#

increase a score for to win

last kettle
#

im 100% sure it used to do nothing, at least…

#

oh wait actually

worthy sierra
#

it is working rn so igg

last kettle
#

nvm no ive only used it on armor stands

#

lol

#

ig it works now, cool

hollow mossBOT
# worthy sierra it is working rn so igg
🎗️ Is your question resolved?

If your question is resolved, that's great to hear! Make sure to run /resolve or click the Resolve Question button. Otherwise, feel free to continue asking for help! :D