I need help making a money mod

Started by UpStageDuck86 on

Topic category: Help with modding (Java Edition)

Last seen on 21:56, 18. May 2024
Joined Jul 2021

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I need help making a money mod

Hello, I hope you are very well. I already have some experience with mcreator so I'll get straight to the point. I am creating a mod that contains money (Currently it only has 1 dollar and 1 cent but I will add more denominations later), I already have a variable made and an Overlay that marks how much money I have in the inventory but therein lies the problem: I am trying to make a procedure that means that when I have a coin or bill in my inventory (the slot does not matter), it marks the amount in the overlay but when I go to the game and when I have money in the inventory it does not mark it (it stays at $0.00). I looked for help on many forums but I haven't found what I'm looking for. I leave you some images of the procedure I did. I hope you can help me, I want to know what I'm doing wrong. I already assigned numerical variables to the money by the way ($1.00 for the bill and $0.01 for the cent respectively). Also include in the same images the procedure for when you do not have the money in inventory, the overlay number goes down.

One Dollar Procedure: https://imgur.com/LNMusnt

One Cent Procedure: https://imgur.com/gbohyU7


The Overlay: https://imgur.com/GgYI5Pi

Sorry if I put the images as links, it's the first time I've made a mcreator forum and I didn't know how to put the images directly.