How can I make this specific procedure where I can right click to toggle it on/off

Started by Breeze Man on

Topic category: Help with Minecraft modding (Java Edition)

Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How can I make this specific procedure where I can right click to toggle it on/off

Hello Mcreator users,

I have created a want and I want it to do the following:

First right click:
*It will give fire resistance for a infinite amount*

It will place fire blocks continiously (For making it non-spread and stop existing after 5 seconds Ill make it a special block with its procedures)

*It will take 1 damage

 

When I right click a second time:

*It will take my fire resistance

*It will stop putting fire blocks

 

I have made this much so far:
https://cdn.discordapp.com/attachments/646500788541194250/7727427639345…

 

Can someone explain which specific "code blocks" I have to use in order to store right click data?

(I already made the item and its procedure is under right click trigger)