Ghost

podrias hacer un nuevo objeto de minecraft que diga "Tótem pug" y en una nueva seccion de Permapug

Kodari AI
KodariNov 5 at 1:38 am 4
PermapugTotem
Adds a new Minecraft item called "Tótem pug" (Pug Totem) that functions as a custom totem of undying. When held in the offhand, it prevents death and grants the player a pug-themed effect. The item is integrated into a new "Permapug" section within the game, featuring a custom crafting recipe, unique lore, and a distinctive texture. The mod registers the item through Fabric's item registry, adds a creative tab entry under the Permapug category, and implements the totem's death-prevention mechanic via a custom mixin or event handler.
  1. Crearé un ítem “Tótem pug” con un icono inspirado en la imagen.

  2. Añadiré la pestaña creativa “Permapug” y una receta para obtenerlo en supervivencia.

  3. Configuraré el proyecto Fabric 26.3 desde cero.

Añadí el Tótem pug con un icono inspirado en tu imagen y una nueva pestaña creativa llamada Permapug.

En supervivencia se fabrica con 1 lingote de oro, 1 hueso y 1 cuero en cualquier disposición.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
settings.gradle
Code
10 129
src/main/java/com/permapug/Permapug.java
package com.permapug;

import net.fabricmc.api.ModInitializer;
import net.fabricmc.fabric.api.creativetab.v1.FabricCreativeModeTab;
import net.minecraft.core.Registry;
import net.minecraft.core.registries.BuiltInRegistries;
import net.minecraft.core.registries.Registries;
import net.minecraft.network.chat.Component;
import net.minecraft.resources.Identifier;
import net.minecraft.resources.ResourceKey;
import net.minecraft.world.item.CreativeModeTab;
import net.minecraft.world.item.Item;
import net.minecraft.world.item.ItemStack;

public class Permapug implements ModInitializer {
	public static final String MOD_ID = "permapug";
	private static final ResourceKey<Item> TOTEM_PUG_KEY = ResourceKey.create(Registries.ITEM, Identifier.fromNamespaceAndPath(MOD_ID, "totem_pug"));
	public static final Item TOTEM_PUG = Registry.register(BuiltInRegistries.ITEM, TOTEM_PUG_KEY, new Item(new Item.Properties().setId(TOTEM_PUG_KEY)));
	private static final ResourceKey<CreativeModeTab> PERMAPUG_TAB_KEY = ResourceKey.create(Registries.CREATIVE_MODE_TAB, Identifier.fromNamespaceAndPath(MOD_ID, "permapug"));

	@Override
	public void onInitialize() {
		Registry.register(BuiltInRegistries.CREATIVE_MODE_TAB, PERMAPUG_TAB_KEY,
				FabricCreativeModeTab.builder()
						.title(Component.literal("Permapug"))
						.icon(() -> new ItemStack(TOTEM_PUG))
						.displayItems((parameters, output) -> output.accept(TOTEM_PUG))
						.build());
	}
}