Left clicking a block makes it drop an item

Started by Trionsarte on

Topic category: Help with modding (Java Edition)

Last seen on 00:38, 11. Nov 2023
Joined Nov 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Left clicking a block makes it drop an item

Hello!
I'm currently working on a mod, and for one of its main components I need a certain block to drop an item when left clicked. Can anybody please explain how to do this?
I know it has something to do with procedures, I just can't figure out what do I need the procedure to do.

Last seen on 21:38, 22. Apr 2024
Joined Jun 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
When player left click on…
Sat, 11/11/2023 - 09:28

When player left click on block :

      If   is get block at x y z   the same block as  "your block"

      do :  spawn "your item"  at x y z 

Last seen on 17:54, 6. Apr 2024
Joined Apr 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
ofter 2 items are dropped…
Fri, 04/05/2024 - 19:09

ofter 2 items are dropped due to the click lasting more than 1 click