Applying player looting to killed entities (HELP)

Started by tylerjava on

Topic category: Help with Minecraft modding (Java Edition)

Joined May 2026
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Applying player looting to killed entities (HELP)

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!

Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Because the only difference…
Tue, 05/19/2026 - 10:10

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.