Saleh

make a mod that adds tanks guns and very cool features that might be fun. add IS-7 tank E-100 Tank Waffentrager Tank Obj. 277 tank and the IS-2-II tank that has the double gun.

add some guns like Revolver and AK-47 guns that deal the most damge in the game. add ammo and ad firing functions t the tanks and guns. add reload times for the tanks and reloading animations for the guns. make the mod look realistic. also make the mod version to Neoforge 1.21.1

Kodari AI
KodariNov 7 at 3:17 pm 14
ModernWarfareTanks
Adds realistic World War II and Cold War era tanks including IS-7, E-100, Waffentrager, Obj. 277, and IS-2-II with double-barrel cannon. Features fully functional tank combat with firing mechanics, ammo systems, and realistic reload times. Includes powerful Revolver and AK-47 firearms with reload animations and high damage output. All vehicles and weapons feature realistic models, textures, and sound effects. Built for Neoforge 1.21.1 with immersive combat mechanics and balanced gameplay.
  1. Add the revolver, rifle, ammunition, firing and reloading.

  2. Add the five tanks with their weapons and reload times.

  3. Add models, animations and survival acquisition.

The first implementation will focus on usable firearms and ammunition; the tanks and custom reload animations will need additional work.

Added a revolver, AK-47 and ammunition with firing and shot cooldowns for NeoForge 1.21.1. All three are craftable in survival.

Not yet implemented: the five tanks, magazines and reload mechanics, and reload animations. The project has not been compiled or tested yet.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
15 200
src/main/java/com/kodari/armoredwarfare/ArmoredWarfare.java
package com.kodari.armoredwarfare;

import net.minecraft.world.item.CreativeModeTabs;
import net.minecraft.world.item.Item;
import net.neoforged.bus.api.IEventBus;
import net.neoforged.fml.common.Mod;
import net.neoforged.neoforge.event.BuildCreativeModeTabContentsEvent;
import net.neoforged.neoforge.registries.DeferredItem;
import net.neoforged.neoforge.registries.DeferredRegister;

@Mod(ArmoredWarfare.MOD_ID)
public class ArmoredWarfare {
    public static final String MOD_ID = "armoredwarfare";
    private static final DeferredRegister.Items ITEMS = DeferredRegister.createItems(MOD_ID);
    public static final DeferredItem<Item> AMMUNITION = ITEMS.registerItem("ammunition", Item::new);
    public static final DeferredItem<FirearmItem> REVOLVER = ITEMS.registerItem("revolver",
            properties -> new FirearmItem(properties, 30.0F, 20), new Item.Properties().stacksTo(1));
    public static final DeferredItem<FirearmItem> RIFLE = ITEMS.registerItem("rifle",
            properties -> new FirearmItem(properties, 24.0F, 4), new Item.Properties().stacksTo(1));

    public ArmoredWarfare(IEventBus modBus) {
        ITEMS.register(modBus);
        modBus.addListener(this::addCreativeItems);
    }

    private void addCreativeItems(BuildCreativeModeTabContentsEvent event) {
        if (event.getTabKey().equals(CreativeModeTabs.COMBAT)) {
            event.accept(REVOLVER);
            event.accept(RIFLE);
            event.accept(AMMUNITION);
        }
    }
}