#it worked fine but suddenly broke
1 messages · Page 1 of 1 (latest)
<@&1201956957406109788>
💬 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
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.
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
<@&935561184806060073>
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)
make it $say summon instead of $summon so you can see if it works as expected, perhaps
yeah it should do but even so the NBT might be formatted wrong, so use $say to debug it
Okay, and what is happening instead?
- Is the UUID not getting to the storage?
- Is the UUID not getting to the mob's AngryAt tag?
- Is the UUID correctly getting to the mob's AngryAt tag, but it isn't attacking?
that looks fine
it does grab A UUID but idk where it gets that from
its not the nearby player uuid
youre telling it to be angry at itself
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
but if i use it with this right and there is a marker nearby
will it get mad at the marker?
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```
oh wait yeah i misread it
none of my code it great tbh xD
this might be more optimised than using a macro too because macros arent greatly optimised but it makes no difference anyway
wont this make it made at the summoner itself?
you can change @p to whatever you need it to be
so i can change it to @a[distance=1..5]
no bcuz it can only be one entity
then add limt =1
and that could return more than one
sure if you want
up to you
@p is nearest player
yeah but wont it target myself?
yeah so like
tag yourself
then do @e[tag=!some_tag,limit=1,sort=nearest] or something
ah
if you want to exclude certain types of mobs, you can create an entity types tag and do type=!#namespace:path/to/tag
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
they will stand still but act like real players
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?
i think i forgot that modifying data directly from another entity works for a second 😭
mb gekke lmao but at least you know how macros work now…
but yeah youd still have to use @a :P
as for the name, uhhh
1st off
CustomNameVisible is irrelevant
it only does anything on like armor stands n displays like that
that should make no difference
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
(for the macro)
though i dont actually know whether another @e or a macro would be less optimized
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
when i put {} behind the summon wolf it gives a error
haha yeh was thinking the same i still used macros somewhere
the execute summon command can’t have nbt
you can data merge the NBT in the function
i was able to do it before tho
sand this?
and*
yeah it does
ah
it summons a wolf and executes the function as it
yea
dont work xD
does it summon the wolf
oh yeah make CustomNameVisible set to true then
didnt lion say that that didnt work?
ohhh wait
you meant execute summon
sorry i thought u just meant like “execute as blank run summon” or smth 💀
not your fault sila is just a pro
glad you worked it out
real
nah I also thought customanmevisible wouldn’t make a difference
but lion is to since he learned me macros
i made this from the macros
increase a score for to win
did they actually make it functional?
im 100% sure it used to do nothing, at least…
oh wait actually
it is working rn so igg
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