Custom Enchant Cancels Knockback

Started by Prim3D3stroy3r on

Topic category: Help with Minecraft modding (Java Edition)

Joined Sep 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Custom Enchant Cancels Knockback

For some reason, when my weapon has my enchantment on it, it doesn't deal knockback unless I am falling/otherwise dealing a crit.

 

 

The Procedure I am using currently looks like this:

Do I to add knockback in some way in the "do" portion? 

Joined Oct 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
In the item properties there…
Tue, 09/03/2024 - 13:30

In the item properties there is one that says "attack damage (check to enable)", and in the item triggers there is one that says "when living entity is hit with item". Do you use the global trigger to apply damage for something in particular?
I just tried to replicate the conditions (albeit without the enchant) and the knockback applies. Do you have any other procedure that cancels a global trigger? They are somewhat dangerous.