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

Started by CeresAwen on Fri, 09/09/2022 - 23:55

Topic category: Help with modding (Java Edition)

Last seen on 12:27, 21. Nov 2022
Joined Sep 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Procedure Help - Spawn item when block is right clicked with a specific item in main hand
Fri, 09/09/2022 - 23:55

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

Last seen on 12:27, 21. Nov 2022
Joined Sep 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
(No subject)
Fri, 09/09/2022 - 23:58

Procedure

Last seen on 11:34, 9. Oct 2022
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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

Last seen on 11:34, 9. Oct 2022
Joined May 2022
Points:

User statistics:

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

you can put the code after this