Procedure that gives player something after having 10 certain types of blocks

Started by Mista Dev on

Topic category: Help with modding (Java Edition)

Last seen on 22:39, 24. May 2020
Joined Feb 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Procedure that gives player something after having 10 certain types of blocks

I'm trying to make a procedure that gives a player something after they have ten of something, such as ten diamonds, etc.

I dont know how to implement this using procedures because i cant find the correct things to add. I would appreciate some

help.

Last seen on 14:02, 24. May 2019
Joined Jan 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I think I know how to do…
Wed, 03/27/2019 - 15:15

I think I know how to do this. You would need one procedure that counts the number of said items, then sees if that is greater than 10. It would be easier if you were using a custom item. Lets say the item name you want to count is item 1. you will also need an item that is a copy of item 1. Lets call this one item 2. When you want to craft item 1, you craft item 2. The game then sees if you have item 2, and if so, it increases a global varyible. Then it remove item 2 and give the player item 1. I hope this makes sence.

Sorry for my misspelled words.