How to make the block to make an output when clicked with a specific item

Started by eliav12345 on

Topic category: Help with modding (Java Edition)

Last seen on 12:50, 8. Dec 2020
Joined Jun 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make the block to make an output when clicked with a specific item

I wanna add Shawarma into minecraft for my brother and I wanted that if I click an block with a specific item it will turn into another block state (like with flowers and flower pots)

how to do it?

Right-click trigger:…
Tue, 12/08/2020 - 09:05

Right-click trigger:

Procedure:

if item in main hand == your item

   do your action (probably add block)

 

On a side note, I suggest you check our tutorials collection playlist on our YouTube channel which contains many examples and tutorials that can help you get started with MCreator: https://www.youtube.com/playlist?list=PLAeL-oIFIEngE6jRgFYeFMfuj8WQsO3Ei

Last seen on 12:50, 8. Dec 2020
Joined Jun 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i cant find this variable,…
Tue, 12/08/2020 - 09:37

i cant find this variable, what category is it in?

Last seen on 12:50, 8. Dec 2020
Joined Jun 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i mean i cant find this…
Tue, 12/08/2020 - 09:48

i mean i cant find this procedure