Djonatan Souza Rodrigues

Um mod que quando eu coloco uma ferramenta encantada junto com um livro normal, todos os encantamentos é transferido para o livro virando um livro encantado com tal encantamento

Kodari AI
KodariYesterday at 6:21 am 3
EnchantTransfer
A Fabric mod that allows transferring enchantments from any enchanted tool or weapon to a normal book by placing both items together. When an enchanted item and a plain book are combined in a crafting grid, all enchantments from the tool are extracted and applied to the book, converting it into an enchanted book with those exact enchantments and levels. The original tool loses its enchantments in the process, creating a balanced and useful mechanic for reorganizing or preserving enchantments without requiring an anvil. The mod integrates seamlessly with vanilla crafting mechanics and supports all vanilla enchantments.
  • Adicionar uma receita de fabricação sem formato.

  • Transferir todos os encantamentos para o livro e devolver a ferramenta sem encantamentos.

Na grade de fabricação, coloque um livro normal junto de uma ferramenta encantada. Você receberá o livro com todos os encantamentos e a ferramenta será devolvida sem eles.

Também funciona com outros itens encantados, como armas e armaduras.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
settings.gradle
Code
7 153
src/main/java/com/kodari/transferencia/TransferenciaEncantamentos.java
package com.kodari.transferencia;

import net.fabricmc.api.ModInitializer;
import net.minecraft.core.Registry;
import net.minecraft.core.registries.BuiltInRegistries;
import net.minecraft.resources.Identifier;

public class TransferenciaEncantamentos implements ModInitializer {
    @Override
    public void onInitialize() {
        Registry.register(BuiltInRegistries.RECIPE_SERIALIZER,
                Identifier.fromNamespaceAndPath("transferencia_encantamentos", "transferir"),
                TransferRecipe.SERIALIZER);
    }
}