QualityArmory
QualityArmory copied to clipboard
[Feature]: Simple Aiming Animation (10 Minutes effort for 200% more quality)
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: