Right Click changes Texture of Item

Started by lamon_damon on

Topic category: Help with modding (Java Edition)

Last seen on 18:50, 23. Feb 2024
Joined Aug 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Right Click changes Texture of Item
Thu, 11/02/2023 - 13:19 (edited)

I wanted to make an item that when it's right-clicked in your main hand, it changes texture and gives you protection from the Wither Effect for 2 minutes, and after it's right clicked it has a countdown that tells you when you can use it again (after another 2 minutes).

Thanks for helping! 

Edited by lamon_damon on Thu, 11/02/2023 - 13:19
Last seen on 15:20, 16. Feb 2024
Joined Sep 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Are you talking about a…
Thu, 11/02/2023 - 19:46

Are you talking about a physical block, or an item you hold in your hand?

If it's a block, you can right click it and have the procedure block "replace block at". Basically, what you would do is create another block the same as the other one but change the texture.  After the replace block, you can put a "wait" function that lasts for 2 minutes( in ticks, so 2400 ticks), and then another replace block, but now change the block it replaces to the one you made first. I'm not too sure about the cooldown function, but I know there is a block in the editor that mentions cooldown (i haven't gotten it to work)

Last seen on 18:50, 23. Feb 2024
Joined Aug 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Yes, it is an item you hold…
Thu, 11/02/2023 - 20:08

Yes, it is an item you hold in your hand... very sorry I had to make you explain all of that for the block...

Last seen on 15:20, 16. Feb 2024
Joined Sep 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
No worries. I just wanted to…
Thu, 11/02/2023 - 20:44

No worries. I just wanted to make sure because I only knew how to do the block version. Sorry about that

Last seen on 18:50, 23. Feb 2024
Joined Aug 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
It's fine, it actually might…
Fri, 11/03/2023 - 10:05

It's fine, it actually might be better if I make a block variant, it seems more interesting, thank you!