tModLoader

tModLoader

197 ratings
Ammo Tool
3
2
   
Award
Favorite
Favorited
Unfavorite
Mod Side: Client
tModLoader Version: 1.4.3, 1.4.4
Language: English
File Size
Posted
Updated
112.330 KB
18 Oct, 2022 @ 9:39pm
25 Apr @ 8:30am
11 Change Notes ( view )

Subscribe to download
Ammo Tool

Description
Ammo Tool is a utility mod that allows players to attach ammo types to specific weapons while in the inventory; simply right click on a weapon while holding a valid ammo item on your cursor.

Any ammo items that match a weapon's attached types will be prioritized on use, and can be cycled using a bindable hotkey (Left-Shift by default).

General compatibility with modded ammo and weapon items is included.
Originally posted by tModLoader AmmoTool:
Developed By QuestionMark
Popular Discussions View All (1)
2
3 May, 2024 @ 11:50am
Weapon Enchantments/Vacuum Bags Incompatability
andro951
60 Comments
QuestionMark  [author] 16 May @ 5:27am 
Right click the item without holding ammo
Silvia 15 May @ 3:20pm 
Can you unassign ammo?
QuestionMark  [author] 26 Apr @ 3:00pm 
Glad to hear!
Rhoenicx 26 Apr @ 1:54pm 
With the latest version (v1.0.5) it works as intended, perfect!
QuestionMark  [author] 25 Apr @ 7:19am 
I probably wasn't aware of the hook at the time of writing. Thanks for pointing that out!
Rhoenicx 24 Apr @ 7:43pm 
Addition to my comment below: Looked through the code and I see you increase stack size by 1 inside the global RightClick hook. Is there a reason ConsumeItem hook was not used?
Rhoenicx 24 Apr @ 7:37pm 
Fellow mod creator here. When I right click my weapons with ammo the stack size of the item is increased by 1 (which shouldn't happen because maxStack is 1). I have ConsumeItem hook return false. I expect this mod does some kind of countermeasure to not have the item consumed? For example +1 on the stack?
QuestionMark  [author] 1 Apr @ 1:56pm 
The mod might fail if you have any other mods affecting inventory right-click behaviour or ammo consumption mechanics. If that's the case, there's not much I can do
Mr_N 1 Apr @ 4:37am 
Not to be rude but the mod is not fucking working. I tried shit with vanilla guns and ammo but no it doesn't work. I looked everywhere to make this work but I guess my ranger calamity loadout idea is fucked.
Love you, Ace 14 Dec, 2024 @ 7:42pm 
bro said fuck no in the nicest way possible : ( )