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

Started by Breeze Man on Mon, 11/02/2020 - 10:55

Topic category: Help with modding (Java Edition)

Last seen on 10:11, 22. Dec 2020
Joined Oct 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How can I make this specific procedure where I can right click to toggle it on/off
Mon, 11/02/2020 - 10:55

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)