How can I fix the value of cash entered with a command?

Started by Hanseoa on

Topic category: Help with Minecraft modding (Java Edition)

Joined May 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How can I fix the value of cash entered with a command?
Sat, 12/16/2023 - 18:18 (edited)

I am making an economic mod.

My English is not good.

The mod works as follows:

  1. [Player A] use command /givemoney [quantity]
  2. [Player A] receives a check with a numerical value entered in the command.
  3. [Player A] give check to [Player B]
  4. [Player B] uses checks received from [Player A]
  5. [Player B]'s money is increased by the value entered into the check.

There're big problems.

  1. If the command changes the number, it also changes the number of checks that have already been created. 
    (so I used check number example, and give a limit to create check.)

 

This is Modlist

https://www.dropbox.com/scl/fi/b8sn4jv0577319zu8htol/001.modlist.JPG?rlkey=i1zi12i7vz4w0bne1okx52fy9&dl=0

This is procedures when using the /givemoney command

https://www.dropbox.com/scl/fi/f3eluh8zk6lxr1cjtp6kh/002.playergivemoney.JPG?rlkey=4pd4gi7pw240u3trms2hizdmp&dl=0

This is procedures when rightclick 'check' item.

https://www.dropbox.com/scl/fi/rhza9q31h5fqhr24orosz/003.checkrightclick.JPG?rlkey=ea365qhwqmq2n5fcre3i54u13&dl=0

These are used variables (I marked it in a circle.)

https://www.dropbox.com/scl/fi/dsxckf22hlhg1nax7pxzw/004.use-variable.J…

Edited by Hanseoa on Sat, 12/16/2023 - 18:18