azaer

quiero un mod de cigarros, tenga animacion que se pueda ver como se consume el cigarro en primera y tercera persona, con un crafteo que sea basico y que los cigarros a parescan en el inventario con el nombre de "pucho" y debe de ser compatible con el yes steve model. es para neoforge 21.1.262 y 1.21.1 la vercion de minecraft

Kodari AI
KodariWed at 2:18 am 7
PuchoCigaretteMod
A Minecraft NeoForge mod for version 1.21.1 that adds craftable cigarettes called "Pucho" to the game. Players can craft Puchos using basic ingredients and consume them with a visible smoking animation in both first and third person perspectives. The mod is fully compatible with the Yes Steve Model system, allowing custom player models to display the smoking animation correctly. Puchos appear in the inventory with the name "Pucho" and provide a brief status effect when smoked. The mod includes custom item models, textures, and animation logic that integrates seamlessly with the Yes Steve Model framework for enhanced visual fidelity.
  • Agregaré el pucho con crafteo, humo y una apariencia que cambia mientras se consume.

  • Usaré la animación estándar de la mano para que pueda mostrarse en primera y tercera persona; la integración específica con Yes Steve Model dependerá de cómo ese mod renderice los objetos.

Añadí el pucho con humo y dos etapas visuales al consumirlo. Mantené pulsado el botón de uso para fumarlo.

En supervivencia, fabricás 4 puchos colocando papel encima de alga seca.

Usa la animación estándar de la mano en primera y tercera persona. La compatibilidad visual específica con Yes Steve Model no está verificada; depende de cómo renderice el objeto y la animación.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
14 199
src/main/java/com/kodari/pucho/client/PuchoClient.java
package com.kodari.pucho.client;

import com.kodari.pucho.PuchoItem;
import com.kodari.pucho.PuchoMod;
import net.minecraft.client.renderer.item.ItemProperties;
import net.minecraft.resources.ResourceLocation;
import net.neoforged.api.distmarker.Dist;
import net.neoforged.bus.api.IEventBus;
import net.neoforged.fml.common.Mod;
import net.neoforged.fml.event.lifecycle.FMLClientSetupEvent;

@Mod(value = PuchoMod.MOD_ID, dist = Dist.CLIENT)
public class PuchoClient {
    public PuchoClient(IEventBus modBus) {
        modBus.addListener(this::setup);
    }

    private void setup(FMLClientSetupEvent event) {
        event.enqueueWork(() -> ItemProperties.register(PuchoMod.PUCHO.get(),
                ResourceLocation.fromNamespaceAndPath(PuchoMod.MOD_ID, "consumed"),
                (stack, level, entity, seed) -> entity != null && entity.isUsingItem()
                        && entity.getUseItem() == stack && entity.getTicksUsingItem() >= PuchoItem.USE_DURATION / 2
                        ? 1.0F : 0.0F));
    }
}