Shielding Overlay

Started by Starexify on

Topic category: Help with modding (Java Edition)

Last seen on 19:40, 15. Apr 2024
Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Shielding Overlay

How can I make an overlay that when I'm right clicking with a sword/item, protects me for like 5 seconds? And you can see that overlay it's passing and after that it can't work for 5 seconds after being used?

Pls help. 

Last seen on 08:14, 28. Nov 2023
Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
not a Minecraft code wizard…
Sat, 10/03/2020 - 10:11

not a Minecraft code wizard but i think you could make a custom shield by making an item that extends ShieldItem or something, not sure... and on trigger "on player stopped using item", cooldown provided item for like 5 seconds.

 

in my case tho, i can't find any custom 1.14 - 1.15 shield tutorials (all the results i get are about shield w/ banner patterns) and the Forge forums just seem stagnant, it's not even funny :/

Last seen on 19:40, 15. Apr 2024
Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
yes but i want a Overlay…
Sat, 10/03/2020 - 13:09

yes but i want a Overlay that shows when he's protected like the armor bar but decaying and the shield a sword without making the player slower when right clicking but thx anyway

If u want to help more, just think about the Asgard Shields mod from Hexxit that's what i want to do but with swords insead of shields 

Last seen on 08:14, 28. Nov 2023
Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
oh, you mean the shield…
Sat, 10/03/2020 - 13:37

oh, you mean the shield blocking action type on swords, just like on old vanilla Minecraft (which sadly got removed) except without giving slowness?

i can't really offer help on that but best of luck to you

Last seen on 19:40, 15. Apr 2024
Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
thx anyway 😁
Sat, 10/03/2020 - 13:53

thx anyway 😁