QualityArmory icon indicating copy to clipboard operation
QualityArmory copied to clipboard

[Feature]: Simple Aiming Animation (10 Minutes effort for 200% more quality)

Open JaHollTV opened this issue 1 year ago • 5 comments

Confirmations

  • [X] There isn't any other PR or issue regarding this.
  • [X] This feature does not exist in the latest version.

What is your request about?

New mechanic

Description

Add NBT-Value "Charged: true" to aimed weapons.

Proof of concept: ` @EventHandler public void onUnScopeEvent(WeaponInteractEvent event) {

    Bukkit.getLogger().info("WeaponInteractEvent called: " + event.getType().toString());

    ItemStack loadedCrossbow = event.getGun().getItemStack();
    NBTItem nbtItem = new NBTItem(loadedCrossbow);
    nbtItem.setBoolean("Charged", true);
    event.getPlayer().getInventory().addItem(nbtItem.getItem());

`

Then you got a great aiming animation: image

JaHollTV avatar Dec 31 '23 10:12 JaHollTV