Started by
SevPpl
on
Topic category: Help with Minecraft modding (Java Edition)
https://mcreator.net/plugin/103469/bettercombat-api
Theres this old plugin, but its been abandoned and is incompatible with modern mcreator versions.
How can one go about implementing better combat?
You can have basic better combat support by creating your weapons with a registry name that includes a keyword. Things like 'spear' 'cutlass' and 'rapier' have built-in support on better combat's side, and you can change the display name of the item to something different. Such as iron_cutlass registry name, and Iron Saber as the display name, to use the built-in cutlass attack range and animation.
I don't know how to implement custom attack ranges, animations, and two-handed status.
The full list is accessible from a link from better combat's mod page, but I don't remember the exact link.
What are registry names?
The internal name that includes item name and mod id. For example, if you have a mod called Sword Expansion (mod id: sword_expansion), and you add in a new diorite sword, you put DioriteSword into the tool creation interface, and MCreator sets the registry name to sword_expansion:diorite_sword
If you were to create an item and input DioriteCutlass, the registry name would be sword_expansion:diorite_cutlass which would then use cutlass-type attack settings with better combat.
The display name (Diorite Sword or Diorite Cutlass in the examples), can be changed from the tool editing interface, while the registry name is only set when you create the tool, as changing it can break things.
Ah, I was pretty sure that's what it was, but I wasn't sure. Thanks!
No problem
I found the list of keywords: https://github.com/ZsoltMolnarrr/BetterCombat/tree/1.21.1/common/src/ma…