Procedure doesnt work and I dont know why

Started by STOF1 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Sep 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Procedure doesnt work and I dont know why

I am new at mcreator
I work at old version of mcreator, 1.12.2.

I wanted player to give my block a diamond, and in return it gives player a sunflower, but nothing happens. 

This procedure below is connected to the button in block's gui.

Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
your procedure should be If…
Thu, 09/23/2021 - 20:03

your procedure should be If get item from slot 0 of the currently opened GUI = Diamond

  do remove 1 from slot 0 of the currently opened GUI

add 1 Sun_Flower to provided player inventory

because with your procedure your basically telling Minecraft, "if there is no items in slot 0 BUT there is a diamond in slot 0, do this"