when the creature is hit, it should be knocked back 10 blocks

Started by Error6664866 on

Topic category: Help with MCreator software

Joined Aug 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
when the creature is hit, it should be knocked back 10 blocks

As I mentioned in the title, how can I make any creature be knocked back 10 blocks when hit with an item called "bedrock_in_staff"?

Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
global trigger: entity…
Sun, 08/18/2024 - 09:45

global trigger: entity attacked, if the item in the main hand is "bedrock_in_staff", set velocity in the direction the player is facing multiplied by a number to get the needed effect.