How can I make this procedure where I use first right click to start and 2nd right click to stop it

Started by Breeze Man on

Topic category: Help with Minecraft modding (Java Edition)

Active 4 years ago
Joined Oct 2020
Points:
650

User statistics:

  • Modifications: 0
  • Forum topics: 7
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 4
How can I make this procedure where I use first right click to start and 2nd right click to stop it

https://cdn.discordapp.com/attachments/646500788541194250/7724658434800…

When I right click on the staff:

*Ill have infinite fire resistance

*It will place non-spreading fires which will go away after 5 seconds (It will continue to place them untill I right-click a second time)

*Damage the tool 25 T

 

hen when I right click again:

*Ill loose fire resistance

*Flames will stop producing

How can I make it like that?

Active 3 years ago
Joined Nov 2019
Points:
872

User statistics:

  • Modifications: 0
  • Forum topics: 8
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 358
use item nbt logic tagto…
Sun, 11/01/2020 - 17:09

use item nbt logic tagto store the item's click status

Active 4 years ago
Joined Oct 2020
Points:
650

User statistics:

  • Modifications: 0
  • Forum topics: 7
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 4
Thanks for the suggestion…
Sun, 11/01/2020 - 17:17

Thanks for the suggestion ahznb