Modifiy the Variable value of another player

Started by Ro... on

Topic category: Help with modding (Java Edition)

Last seen on 00:26, 25. Apr 2024
Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Modifiy the Variable value of another player

Hey, So i have this mod where i want to be able to send money to other players, how can i do that?, (i know its possible in the new version with commands, but i want to do it without commands):
what i want to do should look like that:
(x is the amount of money sent)
([Event/target Entity] is the player who send money)

Set [Global: Money] to (Get [Global: Money] - [x]) for entity: [Event/target Entity]
Set [Global: Money] to (Get [Global: Money]+[x]) for entity: [Name of Player who will recieve Money]

plus, i would like that to be possible with Block NBT Value:

Set [Global: Money] to (Get [Global: Money] - [x]) for entity: [Event/target Entity]
Set [Global: Money] to (Get [Global: Money]+[x]) for entity: [Player who's name is = to [Block text NBT: PlayerRecieve]]

Thanks\

Last seen on 00:26, 25. Apr 2024
Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Anyoneeee?
Thu, 08/25/2022 - 20:04

Anyoneeee?