Shielding Overlay

Started by Starexify on

Topic category: Help with Minecraft modding (Java Edition)

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. 

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 :/

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 

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

Joined Apr 2020
Points:

User statistics:

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

thx anyway 😁