so... how can i give tipped arrows to a skeleton by using commands? i need a command to give every deafult skeleton an arrow of infesting. for java 1.21.10 pls, help me please guys!
* Upvote this comment if this is a good quality post that fits the purpose of r/Minecraft
* Downvote this comment if this post is poor quality or does not fit the purpose of r/Minecraft
* Downvote this comment *and report the post* if it breaks the [rules](https://www.reddit.com/r/Minecraft/wiki/rules)
----
(*Vote has already ended*)
Okklania2025-11-17 11:29
Java or bedrock? Commands are very different on those versions
Okklania2025-11-17 11:35
On Java, you could do:
/execute as @e[type=skeleton] at @s run give @s
minecraft:tipped_arrow{Potion:"minecraft:infesting"} 64
If the effect is called infesting. If not, replace infesting with the exact effect name.
Replace 64 with the number of arrows you want to give.
I hope this works, it's just my command knowledge and I haven't tried it, but I think it will work
Okklania2025-11-17 11:39
If you want to apply to all skeletons (even newly spawned), set up a repeating command block with
/execute as @e[type=skeleton] at @s unless entity @s[nbt={Inventory:[{id:"minecraft:tipped_arrow{Potion:"minecraft:infesting"}"}]}] run give @s minecraft:tipped_arrow{Potion:"minecraft:infesting"}
If that doesn't work, use
/execute as @e[type=skeleton] at @s unless entity @s[nbt={Inventory:[{id:"minecraft:tipped_arrow"}]}] run give @s minecraft:tipped_arrow{Potion:"minecraft:infesting"}
Commentaires
* Downvote this comment if this post is poor quality or does not fit the purpose of r/Minecraft
* Downvote this comment *and report the post* if it breaks the [rules](https://www.reddit.com/r/Minecraft/wiki/rules)
----
(*Vote has already ended*)
/execute as @e[type=skeleton] at @s run give @s
minecraft:tipped_arrow{Potion:"minecraft:infesting"} 64
If the effect is called infesting. If not, replace infesting with the exact effect name.
Replace 64 with the number of arrows you want to give.
I hope this works, it's just my command knowledge and I haven't tried it, but I think it will work
/execute as @e[type=skeleton] at @s unless entity @s[nbt={Inventory:[{id:"minecraft:tipped_arrow{Potion:"minecraft:infesting"}"}]}] run give @s minecraft:tipped_arrow{Potion:"minecraft:infesting"}
If that doesn't work, use
/execute as @e[type=skeleton] at @s unless entity @s[nbt={Inventory:[{id:"minecraft:tipped_arrow"}]}] run give @s minecraft:tipped_arrow{Potion:"minecraft:infesting"}