How to make a money function?

Started by DatZypher on

Topic category: Help with Minecraft modding (Java Edition)

Active 1 year ago
Joined Feb 2023
Points:
347

User statistics:

  • Modifications: 0
  • Forum topics: 11
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 15
How to make a money function?

How do I make it where I add a custom hud that displays text on how much money you have and it will change depending on when you buy something and regain money when you sell that thing and the text in the hud will change depending on those stuff...

Active 7 months ago
Joined Jul 2022
Points:
421

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 20
Your gonna need to make a…
Sun, 05/14/2023 - 04:46

Your gonna need to make a player persistent number variable money.Then your gonna create a procedure to make the variable to a string in a return procedure.Make a overlay and click on the T shaped button and click on the pencil with a blue background and select the name of the procedure where you have the return block

Active 1 year ago
Joined Feb 2023
Points:
347

User statistics:

  • Modifications: 0
  • Forum topics: 11
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 15
If it is possible can you…
Sun, 05/14/2023 - 04:54

If it is possible can you pls provide any screenshots... thank you

Active 1 year ago
Joined Feb 2023
Points:
347

User statistics:

  • Modifications: 0
  • Forum topics: 11
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 15
Or explain it like more…
Sun, 05/14/2023 - 11:16

Or explain it like more simple cause I a not that advanced

Active 7 months ago
Joined Jul 2022
Points:
421

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 20
Active 7 months ago
Joined Jul 2022
Points:
421

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 20
 copy and paste the link…
Sun, 05/14/2023 - 14:15

 copy and paste the link because its bugged

Active 1 week ago
Joined Jul 2021
Points:
555

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1
 But I don't see the return…
Wed, 03/06/2024 - 23:09

 But I don't see the return Procedure in my mcreator