Weapon Swap (Tacz - Lrtactical-SBW)

Quick rating

Community listing page, reviews may not be monitored by the author.

Weapon Swap (Tacz - Lrtactical-SBW)

No reviews yet

This mod improves, just like in Call of Duty, the use of Tacz weapons with LRtactical, SuperbWarfare items (or items from other mods) by creating new slots for grenades and tactical equipment; configurable buttons allow them to be thrown automatically.

Mod Loaders
Minecraft

About

Description

This is the first mod I created a while ago, and I finally think it's ready to be released. It will be part of a collection of mods that recreate Minecraft within Call of Duty.

Two new slots are added to the HUD where any item can be placed—either from the inventory or via commands. This feature is designed primarily for grenades or throwable objects from any mod, allowing the player to simply press a configurable key to automatically throw the item after a preset delay.

In the case of LRtactical, the mod respects the original animations; if the key is held down, the item is kept ready until the key is released. This is particularly useful for "cookable" grenades.

It also adds a key binding for weapon cycling—like in CoD—so that simply pressing that button is enough to switch hotbar slots.

And a proximity alert for items—such as grenades or flashbangs—; it warns you if they are very close, turning red if they are within damage range and gray if they are obstructed by a block.

Commands:
/weaponswap set (player) (slot 1/2) (item) (quantity) - gives the specified item to the chosen player.
/weaponswap clear (player) (slot 1/2) - removes the item from the chosen player's slot.
/weaponswap sethand (slot 1/2) (player) - assigns the item currently in your hand to the chosen player's slot.
/weaponswap sprintthrow (player) false/true - toggles whether the player can throw items while sprinting or will walk while throwing.
/weaponswap throwdelay (ticks) - sets the delay before the item is thrown (20 ticks = 1 sec).

With the Konig settings, you can control various things—specifically, whether the items in the slots reappear every time you respawn.

I hope you enjoy this mod. I have other Call of Duty mods in the works and will be releasing them soon. These will recreate game modes, the HUD, scorestreaks/killstreaks, and much more. If you have any suggestions for improvement, I’ll be keeping an eye on the comments.

NEW UPDATE: Bug fixes and consumable compatibility: the system now automatically detects consumable items, even those from an add-on. If it fails to detect one, you can add it manually by its ID, or by holding the item in your hand and running the command `/weaponswap holditems addhand`.

New Commands:

  • /weaponswap holditems add <id> adds an item by ID, with autocomplete. Accepts modid:item, #modid:tag, modid:*, or the ID of an lrtactical consumable, for example stimshot:adrenaline_stim.

  • /weaponswap holditems addhand adds the item you are currently holding in your hand.

  • /weaponswap holditems remove <id>, removehand, list, and clear perform their expected functions.

  • /weaponswap holditems auto true|false enables or disables automatic detection of lrtactical consumables, which is enabled by default. If it doesn't work properly for you, set it to false and use the list only.

  • The list is saved in weaponswap-common.toml, under [throwing] → hold_until_used.

How an item on the list behaves

  • A single tap equips it and simulates holding the use button until the item finishes being used.

  • Afterward, your weapon is restored. If you cancel by right-clicking or switching slots, your weapon is also restored.

  • It does not use the throwing delay, which was causing the stim to be interrupted halfway through its use.

  • Works with any item that is used by holding right-click (food, potions, medkits from other mods), not just lrtactical items.

A quick look at my upcoming mods that recreate Call of Duty in Minecraft, featuring killstreaks, a configurable HUD, field upgrades/specialists, a minimap, game modes, and more. All of this took a long time to develop, so I would appreciate your support.

I invite you to check out my other projects that improve the TACZ mod in Minecraft.

description_7392cffb-cc58-4d25-9665-3b65811016c5.jpeg