#Does anyone know how I can make the skeleton of my data pack fire?
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
As long as it has a bow it should have no problem shooting players that are in survival
So you may have something else going on.
What could be wrong?
Off the top of my head:
- You may not be in survival
- You may be on the same team as the skeleton with friendly fire disabled
- The skeleton may have a low follow range attribute
All of these would be things that you'd have to have intentionally done, though you may not have realized the impacts of
I think it's because of the second, I'm on the same team as him, how do I change that?
With the team command 🙂
/team leave ... for either yourself or the skeleton. Depending on how you or it are being added to the team, you may just need to remove that functionality from your data pack
i will try
It still doesn't work, I already did /team leave. I don't think it's the range because the skeleton follows me, but it doesn't shoot or hit.
what else?
You're positive it isn't being automatically re-added to the team? How was it added in the first place?
Oh also, make sure the bow is in its mainhand, not its offhand
I'm not sure, look at the code please :
You certainly are putting the bow in the mainhand, so that's good. There isn't anything here that adds it to a team though, so I ask again, how did it get added to a team in the first place?
Apparently he wasn't on any team.
i should rewrite the code?
What Minecraft version are you in?
1.20.1
I think that's why it's wrong, maybe that code is not for that version
No, your code is fine for that version.
so what happens?
?
I don't know, I don't have an explanation for the behavior you're describing
do you speak Spanish?
I think I know why it could be the error
I do not
Feel free to share
maybe something strange here?
check it pls
do you know what is the strangest thing?
It used to work, and something I accidentally changed ruined it, so it did work.
No, enlighten me
Nothing in this image has anything to do with why a skeleton would not shoot
Do you know anyone who might know what's going on?
Perhaps another helper will have a better idea
present me some pls
You can press the summon helpers button near the top of the thread
<@&935561184806060073> <@&1202694677766348840>
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)
You are constantly replacing the skeletons bow, so I think every time it gets replaced the skeleton needs to reset the cooldown since it thinks it picked up a new bow.
where?
item replace entity @e[type=skeleton] ...
That's line 7.
||@quaint depot||
I recommend you remove the tag command from the function in the 2nd screenshot you send, and make the command in the 1st screenshot be item replace entity @e[type=skeleton,tag=!processed] ...
ok ty, i will try
line 7, first screenshot?
Could you put it in full please?
Just replace the beginning of the current item command you have with that, I'm on mobile right now.
okay wait
like this:
No. Sorry, I meant the first function, where you are giving the skeleton a bow.
in the first screenshot?
Yes
now is okay?
oh ty
And remove that line from that function
why the skeleton isn´t shooting me ? i did everything
Did you /reload?
yes, but the skeleton doesn't shoot, but it sounds like he's trying to equip himself something
do you speak spanish?
I do not, no. Does the skeleton have the "processed" tag?
Actually, can you send screenshots of your current functions?
sure
yep
Also, Rule 5 of the server is "except for the #🌍┃german channels, speak English."
oh, ok sorry
It's good, just wanted to remind you. If you have a conversation in Spanish, then most people here won't be able to help you and the moderators won't know if you're breaking the rules or not.
yeah, i know
take a look
Can you send the inside of "modify_skeleton"?
On line 5, replace the selector with @e[type=skeleton,tag=!processed]
Everything above the tag command needs to have tag=!processed, pretty much
now it´s okay?
Is it?
i will check
👍
he is trying to shoot but he can´t
it sounds like it's trying to shoot, and when it dies it has the animation of shooting with the bow
Are there any other /data or /item commands you are doing on the skeleton that don't have tag=!processed?
this, it is tick.mcfunction
So, shouldn't this run apply_armor_and_bow instead of ..and_sword?
I changed it, because I confused it with something else I was doing, too.
I think something is missing
bro, guess what
it work
iit work !!!!!
ty man
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
Your question, #1253778528273436772 (Does anyone know how I can make the skeleton of my data pack fire?), was resolved!
#1253778528273436772 message
3h51m