How to make when you right click with a specific item an specific block to give you item?

Started by Nikola Z on

Topic category: Help with modding (Java Edition)

Last seen on 07:46, 25. Feb 2024
Joined Jan 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make when you right click with a specific item an specific block to give you item?
Sat, 01/27/2024 - 17:38 (edited)

Hello! I want to make a mod for new material ore that when is clicked with a specific item to drop you specific item. But Idk how to make it... xD

Can someone help me? (Sorry I redited it, because I dont say it correcly.)

Edited by Nikola Z on Sat, 01/27/2024 - 17:38
Last seen on 14:31, 13. Apr 2024
Joined Dec 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Just make a procedure. It…
Sat, 01/27/2024 - 17:29

Just make a procedure. It should say something like

WHEN RIGHT CLICKED ON BLOCK:

IF:  Player has "specific item" AND: Player has "specific block"

DO:  Give player "specific item"

 

It's pretty simple stuff. You'll get the hang of it eventually.

Last seen on 07:46, 25. Feb 2024
Joined Jan 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Jgyu.. Sorry, but I say it…
Sat, 01/27/2024 - 17:37

Jgyu.. Sorry, but I say it incorrecly. And I don't understand HOW TO: ""WHEN RIGHT CLICKED ON BLOCK:

IF:  Player has "specific item" AND: Player has "specific block"

DO:  Give player "specific item"

"..... XD