Modifiy the Variable value of another player

Started by R... on

Topic category: Help with Minecraft modding (Java Edition)

Active 2 days ago
Joined Mar 2020
Points:
1183

User statistics:

  • Modifications: 6
  • Forum topics: 71
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 260
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\

Active 2 days ago
Joined Mar 2020
Points:
1183

User statistics:

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

Anyoneeee?

Active 6 months ago
Joined Dec 2024
Points:
48

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1
Hi! I encountered the same…
Fri, 01/24/2025 - 17:27

Hi! I encountered the same problem. Still haven't found a solution?