Block with sword like 1.8

Started by Nyx on

Topic category: Help with Minecraft modding (Java Edition)

Joined Feb 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Block with sword like 1.8

Hello, I'm working on a mod inspired in Berserk Manga, I would like to add the capacity to block attacks by pressing right-click like older versions of Minecraft. Is there any way to make it? Thanks!

Joined Jun 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Set event trigger to "player…
Wed, 06/01/2022 - 08:22

Set event trigger to "player right clicks with item" 

if item in main-hand of source entity = sword

do get effect of potion: resistance 

and remove specific potion effect when stop

 

i think that's the simpliest way