How to set the damage in a procedure to player's damage?

Started by myxical on Sat, 10/09/2021 - 20:50

Topic category: Help with modding (Java Edition)

Last seen on 17:06, 14. Oct 2021
Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How to set the damage in a procedure to player's damage?
Sat, 10/09/2021 - 21:11 (edited)

What I mean is when an entity dies to some custom damage I want to set who killed the entity.
Example: player performs a special aoe attack and deals custom damage to surrounding mobs, but mob kills don't count as player kills (doesn't show in statistics that you killed that mob in statistics, no player kill only loot dropped, no experience dropped)

How do I do that?

Oh also I noticed when you first hit the mob and then deal the custom damage the localization changes to death.attack.name.player. How do I force it to always be .player?

Edit: How do I also make it so it doesn't pass through armor?

Scratch all of that. I found out there's a death.attack.player in vanilla. How do I apply it to my procedure? I don't see it on the list.

Edited by myxical on Sat, 10/09/2021 - 21:11
Last seen on 17:06, 14. Oct 2021
Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Not what I'm looking for…
Sun, 10/10/2021 - 08:55

Not what I'm looking for. Also rude.
I know how custom death messages and custom damage works. I just want it to be from a player, so it's a player kill (xp drops, kill counts in statistics)

Last seen on 05:37, 21. Oct 2021
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
well get Source entity
Sun, 10/10/2021 - 16:07

well get Source entity

Last seen on 17:06, 14. Oct 2021
Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
You're not being very…
Mon, 10/11/2021 - 16:31

You're not being very helpful.

Last seen on 05:37, 21. Oct 2021
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
I'm sorry, but that is what…
Mon, 10/11/2021 - 16:36

I'm sorry, but that is what I thought you needed

Last seen on 17:06, 14. Oct 2021
Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
It's fine. Anyone else has…
Thu, 10/14/2021 - 17:08

It's fine. Anyone else has the answer?

Last seen on 05:37, 21. Oct 2021
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
there is a procedure block…
Thu, 10/14/2021 - 17:26

there is a procedure block called Deal Custom Damage type: death.attack.YOUR_DAMAGE

basically to make it you need to go to Location Tab and make a new death.attack.NAME

and on the second bar make something like PLAYER_CODE died from NAME

Last seen on 05:37, 21. Oct 2021
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
okay scratch that too, just…
Thu, 10/14/2021 - 17:32

okay scratch that too, just re-read the thing, basically what you want is for example, PlayerA killed PlayerB from DAMAGE right?