sazac

butterfly knife mod and animasi cs go2 smood butterfly knife

Kodari AI
KodariNov 1 at 2:05 pm 12
ButterflyKnifeAnimator
Adds a realistic butterfly knife with smooth CS:GO 2-style flipping animations to Minecraft Fabric 1.26.2. The mod introduces a craftable butterfly knife weapon with custom first-person and third-person animations, including open, close, flip, and idle poses. Animations are implemented using keyframe interpolation with smooth easing curves for fluid transitions. The knife features a unique attack pattern with higher critical damage when flipped open. Custom sounds replicate the iconic metallic flipping clicks. The mod includes configurable animation speed, damage values, and enchantment compatibility. Renders use a custom item model with animated transforms for authentic flipping motion.

I’ll make a butterfly knife with a smooth opening animation, a survival recipe, and its own 3D model.

Created a 3D butterfly knife with a smooth flourish animation. Right-click to play it.

Survival recipe: Place two iron ingots vertically in the center column, with an iron nugget in each bottom corner. The knife has iron-sword durability and damage.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
manifest.kod
settings.gradle
Code
15 7,723
src/main/java/com/kodari/butterflyknife/ButterflyKnifeMod.java
package com.kodari.butterflyknife;

import net.fabricmc.api.ModInitializer;
import net.fabricmc.fabric.api.creativetab.v1.CreativeModeTabEvents;
import net.minecraft.core.Registry;
import net.minecraft.core.registries.BuiltInRegistries;
import net.minecraft.core.registries.Registries;
import net.minecraft.resources.Identifier;
import net.minecraft.resources.ResourceKey;
import net.minecraft.world.item.Item;
import net.minecraft.world.item.ItemStack;
import net.minecraft.world.item.ToolMaterial;

public class ButterflyKnifeMod implements ModInitializer {
    public static final ResourceKey<Item> KNIFE_KEY = ResourceKey.create(Registries.ITEM,
            Identifier.fromNamespaceAndPath("butterflyknife", "butterfly_knife"));
    public static final Item KNIFE = Registry.register(BuiltInRegistries.ITEM, KNIFE_KEY,
            new ButterflyKnifeItem(new Item.Properties().sword(ToolMaterial.IRON, 3.0F, -2.4F).setId(KNIFE_KEY)));

    @Override
    public void onInitialize() {
        CreativeModeTabEvents.modifyOutputEvent(ResourceKey.create(Registries.CREATIVE_MODE_TAB,
                Identifier.withDefaultNamespace("combat"))).register(output -> output.accept(new ItemStack(KNIFE)));
    }
}