Abolfazl Youtube

Make spider man web shooter mod for Minecraft java 1.20.1forg

Kodari AI
KodariOct 3 at 12:22 pm 2
SpiderWebShooter
Adds a craftable Spider-Man inspired web shooter item to Minecraft 1.20.1 Forge. Players craft the web shooter device and equip it to fire web projectiles that create temporary web blocks on impact, slowing and trapping entities. Features include a web fluid resource system that depletes with each shot and refills from a crafting recipe, right-click aiming with adjustable range, and a cooldown mechanic to prevent spam. Webs dissolve after a configurable duration, and the shooter supports multiple web types including standard, sticky, and swinging variants. Includes full localization, custom item model textures, and configurable balance settings for durability, fluid consumption, and web lifetime.

I’ll create a Forge 1.20.1 mod with a registered web-shooter item, cobweb-rendered projectile, entity slow effect, and a block-hit grapple pull.

Created the Forge 1.20.1 mod. Craft the Web Shooter with iron, string, and redstone; right-click to fire a cobweb projectile. Hitting a mob applies Slowness, while hitting a block pulls the player toward it. The item uses Minecraft’s vanilla crossbow model.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
settings.gradle
Code
14 268
src/main/java/com/kodari/webshooter/SpiderWebs.java
package com.kodari.webshooter;

import com.kodari.webshooter.registry.ModEntities;
import com.kodari.webshooter.registry.ModItems;
import net.minecraftforge.eventbus.api.IEventBus;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext;

@Mod(SpiderWebs.MOD_ID)
public class SpiderWebs {
    public static final String MOD_ID = "webshooter";

    public SpiderWebs() {
        IEventBus modEventBus = FMLJavaModLoadingContext.get().getModEventBus();
        ModItems.ITEMS.register(modEventBus);
        ModEntities.ENTITY_TYPES.register(modEventBus);
    }
}