#Does anyone know how I can make the skeleton of my data pack fire?

1 messages · Page 1 of 1 (latest)

quaint depot
#

I'm making a data pack that makes the mobs more difficult, one of them the skeleton, I gave him full leather armor dyed red with a bow of power 10, so far so good, but the skeleton doesn't shoot me, someone help me?

high martenBOT
#

<@&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
molten talon
#

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.

quaint depot
molten talon
#

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
quaint depot
molten talon
#

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

quaint depot
#

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.

molten talon
#

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

quaint depot
molten talon
#

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?

quaint depot
#

i should rewrite the code?

molten talon
#

What Minecraft version are you in?

quaint depot
#

1.20.1

quaint depot
molten talon
#

No, your code is fine for that version.

quaint depot
#

so what happens?

quaint depot
molten talon
#

I don't know, I don't have an explanation for the behavior you're describing

quaint depot
molten talon
molten talon
quaint depot
#

maybe something strange here?

quaint depot
#

do you know what is the strangest thing?
It used to work, and something I accidentally changed ruined it, so it did work.

molten talon
quaint depot
molten talon
#

Perhaps another helper will have a better idea

quaint depot
molten talon
#

You can press the summon helpers button near the top of the thread

high martenBOT
# high marten <@&1201956957406109788>

<@&935561184806060073> <@&1202694677766348840>

**🙇 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)

gentle crest
gentle crest
#

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] ...

quaint depot
#

ok ty, i will try

quaint depot
quaint depot
gentle crest
gentle crest
gentle crest
gentle crest
#

That line lol

quaint depot
#

now is okay?

quaint depot
gentle crest
#

And remove that line from that function

quaint depot
#

bro

quaint depot
gentle crest
#

Did you /reload?

quaint depot
#

do you speak spanish?

gentle crest
#

I do not, no. Does the skeleton have the "processed" tag?

gentle crest
gentle crest
gentle crest
# quaint depot 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.

gentle crest
gentle crest
# quaint depot

On line 5, replace the selector with @e[type=skeleton,tag=!processed]

#

Everything above the tag command needs to have tag=!processed, pretty much

quaint depot
#

now it´s okay?

gentle crest
#

Is it?

quaint depot
#

i will check

gentle crest
#

👍

quaint depot
#

he is trying to shoot but he can´t

quaint depot
# gentle crest 👍

it sounds like it's trying to shoot, and when it dies it has the animation of shooting with the bow

gentle crest
gentle crest
# quaint depot

So, shouldn't this run apply_armor_and_bow instead of ..and_sword?

quaint depot
#

I think something is missing

#

bro, guess what

#

it work

#

iit work !!!!!

#

ty man

high martenBOT
# quaint depot iit work !!!!!
🎗️ 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

high martenBOT
# high marten
Question Closed

Your question, #1253778528273436772 (Does anyone know how I can make the skeleton of my data pack fire?), was resolved!

Original Message

#1253778528273436772 message

Duration open

3h51m