Modifiy the Variable value of another player

Started by Ro... on Mon, 08/08/2022 - 00:47

Topic category: Help with modding (Java Edition)

Last seen on 02:36, 3. Oct 2022
Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Modifiy the Variable value of another player
Mon, 08/08/2022 - 00:47

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 02:36, 3. Oct 2022
Joined Mar 2020
Points:

User statistics:

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

Anyoneeee?