Player specific for event/target entity

Started by Molonko on

Topic category: Help with Minecraft modding (Java Edition)

Joined May 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Player specific for event/target entity

I want the entity to be the local variable I have, but I can't find a block that fits in there that will set the number of current lives for that local variable that identifies a specific player. If there is a workaround or a block that I have missed that I could have used to do this, please let me know, any help would be greatly appreciated. 

Joined Apr 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
if you want every player to…
Mon, 07/22/2024 - 19:37

if you want every player to have a certain number of lives you can simply store the number in a global variable of type "player_persistent"

Joined May 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hi bo_bo, I understand that…
Mon, 07/22/2024 - 20:27

Hi bo_bo, I understand that and that is what I've done, this procedure is to revive players. You helped me with my previous post where I figured out all of that, with this I want to revive players and give their 10 lives back by players right clicking a block with an item that holds the player username that I have also defined in the local playername variable. That is why I want to set the currentLives to 10 for that player, not the one who is reviving the player as it will by using Event/target entity.

 

Joined May 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Ignore the break effect I…
Mon, 07/22/2024 - 20:35

Ignore the break effect I meant to remove that

Joined Apr 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
oh ok, well I don't really…
Mon, 07/22/2024 - 20:38

oh ok, well I don't really know how to do that, I hope someone else helps

Joined May 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
No worries, you already…
Mon, 07/22/2024 - 21:27

No worries, you already helped me once and that's more than enough, people like you deserve to be paid with quick responses for a fix