Started by
Matt The Banana
on
Topic category: Help with Minecraft modding (Java Edition)
I am making an advancements mod and I want to add an advancement that is given when the player gets 100 kills with a bow. Unfortunately, I do not know how to detect if the player killed the mobs with a bow and if the player is the same, and not a different player. If I could get some help on this, it would be appreciated greatly!
Edited by Matt The Banana on Mon, 03/02/2020 - 00:36
Nevermind I found out how to do it.
This sounds like it could be useful to me as well, would you mind sharing how you did it?
What I did to solve the issue was I detected what the player was holding when they killed something. Since it was a bow for me, I checked if they had a bow in their main hand, off hand, or both.
Yeah thats what I figured ^u^; I have an identical procedure in my mod too XD