Block with sword like 1.8

Started by Nyx on Wed, 05/18/2022 - 20:35

Topic category: Help with modding (Java Edition)

Last seen on 18:42, 26. May 2022
Joined Feb 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Block with sword like 1.8
Wed, 05/18/2022 - 20:35

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!

Last seen on 20:27, 26. Jun 2022
Joined Jun 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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