[SOLVED!] Remove item from main inventory only removes when exact amount is met

Started by DiamondWizard187 on

Topic category: Help with modding (Java Edition)

Last seen on 00:08, 1. Apr 2023
Joined Oct 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
[SOLVED!] Remove item from main inventory only removes when exact amount is met
Fri, 03/31/2023 - 15:26 (edited)

The part of the procedure I need help in: https://imgur.com/a/yAC9nlJ

I am trying to make it take only 20 diamond blocks in that case, when I hold exactly 20 blocks it works, but if I hold more than 21 it doesn't take any and acts like it did, any assistance?

Edited by DiamondWizard187 on Fri, 03/31/2023 - 15:26
Last seen on 11:52, 24. Apr 2024
Joined Aug 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Do it for everynumber after…
Fri, 03/31/2023 - 11:21

Do it for everynumber after 20 up to 64, just make it give you back however many diamond blocks you had. Remember to make 40 & 60 also take them away.