Started by
bfdia finished…
on
Topic category: Help with Minecraft modding (Java Edition)
Hello, I would like to make advancements for killing 25 zombies, 25 endermen, 25 creakings, etc for all mobs in the game and my mod. How?
Topic category: Help with Minecraft modding (Java Edition)
Hello, I would like to make advancements for killing 25 zombies, 25 endermen, 25 creakings, etc for all mobs in the game and my mod. How?
Make a number variable for each mob. Use global trigger: entity dies, then check if event/target entity is one of these mobs and source entity is type player, add 1 to the respective variable of source entity. Then on a seperate procedure on global trigger: player tick update. Check if player has variable 1,2,3...etc =25. If all =25 add advancement.
You could also potentially use scoreboards but I have no knowledge of them.