WeaponMechanics | Guns in Minecraft | 1.21.4 icon

WeaponMechanics | Guns in Minecraft | 1.21.4 -----

A New Age of Weapons in Minecraft



v4.0.0
  • Dropped support for anything below 1.21.4
  • Added 1.21.4 support
  • New Recoil System
    • This works off of "forces" instead of static increments
    • The experience is much smoother, and prevents infinite climb
    • Mimics how AAA FPS handle recoil
  • New Durability system
    • Works off of the durability item component now
    • Shows durability bar
    • Automatically removes durability from the weapon after shooting
  • Dropped support for ProtocolLib... Use PacketEvents instead.
  • New item components:
    • Tool - Good for preventing damage, like in adventure mode, with weapons
    • Food - Good for making your AK-47 taste REALLY good
    • Equippable - Will be great for ArmorMechanics.... stay tuned..
  • We now support all attributes
    • Attributes now support "groups" instead of slots
    • Attributes can now take an "operation"
  • Configs now support "tags", like #wool to target all wool blocks, #planks for all planks, etc.
  • A bunch of optimizations, internal changes, etc.

Use with caution! This is a huge update, involving ~50,000 lines of code changed. That is approximately 1/3 the size of all of Minecraft's java code. There are definitely bugs that I have not found in testing.


Here is an example of that new Recoil system:

Code (YAML):
   Recoil:
      Mean_X
: 0.3             # Slight horizontal pull
      Mean_Y
: 1.6             # Stronger vertical recoil
      Variance_X
: 0.3         # Some randomness left/right
      Variance_Y
: 0.3         # Some randomness up/down
      Speed
: 3.0             # Fairly snappy kick
      Damping
: 0.1           # Prevents infinite climb
      Damping_Recovery
: 0.15 # Steady recover toward center
      Smoothing
: 0.4         # Smooth out big jolts
      Max_Accumulation
: 15.0 # Caps max climb
----------, Jan 15, 2025
Resource Information
Author:
----------
Total Downloads: 93,219
First Release: Feb 10, 2022
Last Update: Jan 21, 2025
Category: ---------------
All-Time Rating:
90 ratings
Find more info at github.com...
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings