Help with if player has x # items do this

Started by OtionM on

Topic category: Help with Minecraft modding (Java Edition)

Joined Oct 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Help with if player has x # items do this
Wed, 10/05/2022 - 15:32 (edited)

I am trying to make an item that, when right clicked if the playwr has x emeralds-> do this, else do this.

I have the logic all functional except check players imventory for x number of emeralds. I can check for emeralds but cant figure out how to check for the # of emeralds

It is in 1.16.5 build for forge

Edited by OtionM on Wed, 10/05/2022 - 15:32