Procedure Help - Spawn item when block is right clicked with a specific item in main hand

Started by CeresAwen on

Topic category: Help with Minecraft modding (Java Edition)

Joined Sep 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Procedure Help - Spawn item when block is right clicked with a specific item in main hand

Hey all,

I'm making a plant mod and right now I'm working on a procedure to farm plants. I have a trigger set to block right clicked. The procedure needs to check for the item bonemeal in the player's main hand, and if so, spawn seeds. 

Here is what my procedure looks like so far:

Procedure

However, nothing at all happens when I tested it. I tried messing with a few different things but now I'm stumped.

I also need it to remove one bonemeal from the player's inventory, but I haven't added that yet.

What am I doing wrong? Any help would be greatly appreciated! Thanks

Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
the global trigger will be …
Tue, 10/04/2022 - 11:38

the global trigger will be "Player Right clicks block" you'll need to scroll down till all the player triggers come 

 

"player right clicks" or  maybe left clicks

Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
you can put the code after…
Tue, 10/04/2022 - 11:39

you can put the code after this