mcmonkeyprojects / Sentinel

Combat NPCs for Spigot!
MIT License
167 stars 84 forks source link

WeaponMechanics Support #390

Closed CJCrafter closed 1 year ago

CJCrafter commented 1 year ago

Hello,

I am one of the developers for WeaponMechanics. WeaponMechanics is a fully-featured replacement for CrackShot, and is quite simply better. I've had quite a few requests to add sentinels support.

The plugin is quite similar to CrackShot. One of the changes that you may care about is that ANY entity (not just players) can shoot a weapon.

Here are some of our helpful API methods:

  1. Generate a weapon
  2. Shoot a weapon from config
  3. MythicMobs shooting weapons

I don't mind making a PR if you point me in the right direction. Thanks!

mcmonkey4eva commented 1 year ago

If you don't mind writing the code for it yourself, you might prefer to write the integration on your side rather than into Sentinel.

The entirety of Sentinel-Crackshot support is this one class: https://github.com/mcmonkeyprojects/Sentinel/blob/master/src/main/java/org/mcmonkey/sentinel/integration/SentinelCrackShot.java

You might prefer to reference QualityArmory's work: https://github.com/ZombieStriker/QualityArmory/blob/master/src/main/java/me/zombie_striker/qg/npcs_sentinel/SentinelQAHandler.java They started from the crackshot example too and took it further

API docs @ https://github.com/mcmonkeyprojects/Sentinel#integrating-your-plugin-with-sentinel

CJCrafter commented 1 year ago

Thanks for the suggestions! The issue is now tracked at 255