Started by
tylerjava
on
Topic category: Help with Minecraft modding (Java Edition)
So the problem is I cannot get this to work
So they removed entity killed by player for god knows why, and now I'm suffering trying to figure out a work around (Not sure why this isn't natively supported after so many years of this existing).
Upon this specific entity death
- Grab the looting level of the item in the players hand (NOT WORKING)
- Apply it to the local variable (WORKING)
- Roll the looting bonus X times based on local variable (WORKING)
I cannot find any documentation anywhere that resolves this complication.
Any help would be GREATLY appreciated!
Because the only difference between entity dies and player kills is a simply logic of is entity killing = player. All you need to do is check if source_entity = type player. In the global trigger entity dies, source_entity is the entity doing the killing, if there is one, and event/target_entity is the entity being killed.