Started by
EliMCGamerGuy
on
Topic category: Help with Minecraft modding (Java Edition)
For a while now I've wanted to make a Kill feed mod for minecraft 1.12.2 that looks like the kill feed from Valve's games, but not exactly like theirs. I get what the entity was that died just fine, but it's when I need how it died i get stuck. I also need what killed it, if anything, but don't know how to do that, either. for now i'm just taking what i'm getting, putting it together, and throwing it into the chat.
so far I have: whenever anything dies, for instance a skeleton, the mod puts into the chat "Skeleton was slain." but not by who, what, or how.
i really dont know if thats possible, finding it out maybe but actually getting the was killed by fall, killed by fire, or slain by enderman might be slightly beyond the scope of mcreator. but please ask around im still pretty new :)
Yeah, I just don't think it's possible yet seeing how inflexible block-based coding can be, I'll just learn Java.
when you use the global trigger "Entity dies", you get the killed entity as well as the killer entity as passed parameters. the killed entity is "event/target entity", the killer is "source entity".
Now I've returned to MCreator, I'll say that as far as I can see, the 1.12.2 mod generator doesn't support the "source entity" block for both entity attacked and entity killed. Shame as it seems it's not being updated anymore for some unknown reason and I think this kind of mod would be a great idea for multiplayer modpack servers.