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

Started by Error6664866 on

Topic category: Help with MCreator software

Active 1 year ago
Joined Aug 2024
Points:
67

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 0
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"?

Active 8 hours ago
Joined Nov 2019
Points:
880

User statistics:

  • Modifications: 0
  • Forum topics: 13
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 336
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.