I Need help with 10 diamond triggers

Started by natoralex on

Topic category: Help with Minecraft modding (Java Edition)

Joined Dec 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I Need help with 10 diamond triggers

Im trying to make a quest for the game. I wanted to have a quest where if you help steve find his diamonds then he'l give some reward but i dont know how to triggers if player has diamonds in the inventory or heild in main-hand.

 

My setup is like this, when I tried to test it it doesnt work properly.

Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Are you sure that the player…
Thu, 05/28/2026 - 20:00

Are you sure that the player is not source entity rather than event/target entity, which would be Steve. Also you don't need to check whether a player exists nearby as only a player can right click the entity meaning there must be a player to start the procedure. Also you're sending a message to all players in the game?

You're then checking whether the player has 0 diamonds in their main hand, you should check that they have 4 or more. You should probably also add to remove the 4 diamonds from main hand as well.

Joined Dec 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How would that work though?
Thu, 05/28/2026 - 21:51

How would that work though?

Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
What do you mean how would…
Fri, 05/29/2026 - 13:02

What do you mean how would it work. Change the 0 to a 10 and switch event/target entity to source entity

Joined Dec 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
That wont work.
Fri, 05/29/2026 - 14:04

That wont work.

Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
And why is that
Fri, 05/29/2026 - 14:40

And why is that

Joined Dec 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I have no idea unless…
Fri, 05/29/2026 - 14:42

I have no idea unless something inside the procedures is interfering with that line of code

Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Did you do what I said and…
Fri, 05/29/2026 - 17:42

Did you do what I said and it didn’t work?

Joined Dec 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Yes at first. I've come up…
Fri, 05/29/2026 - 17:50

Yes at first. I've come up with the solution of putting two sepirated procedures one for the start quest one for the end quest and it works. Thank you for the help!

Joined Apr 2026
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
currently it is checking for…
Tue, 06/23/2026 - 14:48

currently it is checking for if Steve has 10 diamonds, not the player