Started by
lamon_damon
on
Topic category: Help with Minecraft modding (Java Edition)
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
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)
Yes, it is an item you hold in your hand... very sorry I had to make you explain all of that for the block...
No worries. I just wanted to make sure because I only knew how to do the block version. Sorry about that
It's fine, it actually might be better if I make a block variant, it seems more interesting, thank you!