Topic category: Help with modding (Java Edition)
I've been toying around with creating a simple shotgun-like ranged item and there is just one problem left for me to tackle:
The Item shoots 8 bullets per attack(1 though the ranged item settings itself and 7 via "on item used"-procedure)I want the item do do most damage at close distance, but any entity only recieves/registers one hit( =only the damage of a single bullet)
This is kind of frustrating because despite the useful bullet spread, common mobs are killed in two hits regardless of dsitance from the player.
Could this be resolved with changes to the ranged item itself, or would there have to be changes to the way any entity handles a damage event(per tick)? Unfortunately this is already beyond my comprehension.
Thank you for any advice