Started by
WatermelonFrogy
on
Topic category: Help with Minecraft modding (Java Edition)
I'm making a mod that adds advancements.
I want to make an advancement that you get from killing the ender dradon without killing anything else.
How would i check if a player had killed any mobs so i can add this?
Must be good at proceduring but this can be done
Entity dies if is source entity player then set NBT "name" to Get nbt "name" + 1
When kill ender dragon if NBT "name" = 0 then add advancements
while that would work, NBT can cause a lot of problems, you might want to make a global variable player_persistent
also nbts reset when you die, so use variables
how would i use varibles? i've never attempted because I've never needed to.
Also i want the mod to work in multiplayer if that changes anything.
If you need to learn how to use Variables just check forum and tutorials.
I made this but it only sets it to 1 and never goes higher.
https://imgur.com/gallery/IQPm5Yc
after staring at it for a couple minutes i can confirm i am retarded.
you accidentally put event target entity
everything should be source entity.