How do I make a 1.16.5 Forge modpack detect you in an if-do (the player) in procedure code?

Started by nosogla on Wed, 10/20/2021 - 21:37

Topic category: Help with modding (Java Edition)

Last seen on 20:34, 21. Oct 2021
Joined Jul 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How do I make a 1.16.5 Forge modpack detect you in an if-do (the player) in procedure code?
Wed, 10/20/2021 - 21:37

I'm trying to make a mod that plays a sound where you are when you, only you, no other players, die. I have the basic Global trigger: entity dies. but I don't know what to for for the "if" in the "if-do" loop. I need a little help for this, I already asked about this, and I don't wanna tamper with the code, but if I do, I will. I really wanna do this, this has coursed my mind for a while now, but i never knew how to put it into the game without actual Java coding (I never learnt it, more less Minecraft's stuff). Please, I need help with this.

Last seen on 06:48, 4. Dec 2021
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Entity dies if Event Target…
Wed, 10/20/2021 - 23:51

Entity dies

if Event Target entity is type: Player

do play at X Y Z Sound: SOUND