Implemente neste projeto um mod de terror completo para Minecraft Java 1.20.4 usando Fabric, em Java, conforme a solicitação do usuário (descrita em português). O projeto foi recém-criado e está vazio; examine sua estrutura e siga as convenções/configurações já presentes. Não tente compilar.

Requisitos funcionais: 1) Adicione uma criatura chamada Mímico, com aparência de jogador: copie visualmente a skin e o nome do jogador-alvo existente no mundo. A skin e o nome devem corresponder ao jogador escolhido e continuar corretos caso a entidade seja renderizada no cliente; use a infraestrutura de perfil/skin de Minecraft/Fabric apropriada em vez de uma skin fixa. Escolha/altere o alvo com segurança, priorizando o jogador vivo mais próximo. Em singleplayer e multiplayer, evite crashes e sincronize para os clientes nome/UUID/skin do alvo. A criatura precisa ser uma entidade real do jogo, não somente uma imagem local. 2) IA de perseguição/stalking: comportamento convincente em terreno, aproximação cautelosa e observação à distância, ocasionalmente seguir escondido atrás de árvores/blocos, perseguir quando apropriado e conseguir navegar em cavernas. Quando o jogador olha diretamente para o Mímico, escolha uma reação variável: desaparecer, fugir ou correr/saltar como um jogador. Não atacar ou causar dano sem necessidade: foco é terror e stalking. Evite teleporte frustrante ou spawn diretamente na frente do jogador. O Mímico deve ter spawn raro, com chance/peso maior em cavernas e à noite, mas também possibilidade razoável, menor, durante o dia; limitar quantidade ativa por jogador/mundo e impedir spawn em locais inválidos. 3) Terror ambiental: ocasionalmente toque sons de passos próximos ao jogador sem entidade visível/fonte óbvia, com distância e intervalo limitados para não ficar repetitivo. Adicione aparições breves/visuais do Mímico em florestas atrás de árvores/blocos e principalmente em cavernas, com desaparecimento/fuga adequado. Respeite distância e contexto, sem spammar mensagens/efeitos. 4) Mensagens: o Mímico pode enviar mensagens assustadoras no chat, em português, com frases variadas, raras e direcionadas ao jogador quando aplicável; limitar frequência, evitar chat spam e evitar divulgar eventos de outro jogador para todos quando possível. 5) Vestígios no mundo: gerar pequenos acampamentos de início de aventura compostos de exatamente uma bancada de trabalho e uma ou duas fornalhas juntas, como se um jogador tivesse passado por ali. Frequência baixa, não em grande quantidade; gerar apenas em lugares seguros/adequados e sem substituir blocos importantes. Implementar geração de mundo/estrutura de forma apropriada para Fabric 1.20.4 e impedir repetição excessiva.

Qualidade e entrega:

  • Registrar entidade, atributos, renderer/client setup, itens/blocos/sons/geração necessários nos entrypoints corretos; respeitar separação client/server e não acessar classes client no servidor.
  • O mod deve carregar sem depender de assets ausentes: criar recursos JSON/texturas/modelos/sons se forem necessários, ou usar recursos Minecraft existentes de forma compatível. Incluir tradução PT-BR (e, se viável, en_us), descrição e instruções básicas de como encontrar/experimentar as mecânicas.
  • Implementar sincronização cliente-servidor necessária, limites anti-spam e tratamento de jogador desconectado/morto/entidade removida. Não inventar APIs: consulte as dependências/versões configuradas no projeto.
  • Mantenha o escopo viável e integre o conjunto coerentemente. Ao concluir, relate brevemente recursos e arquivos principais; não alegue que compilou ou verificou build.
Kodari AI
KodariOct 4 at 7:23 am 4
MimicStalker
Minecraft Fabric 1.20.4 horror mod featuring a Mimic entity that copies player skins and names for stalking behavior. Implements rare spawning weighted toward caves and night, environmental terror effects including footsteps and brief appearances, Portuguese chat messages, and adventure camps with crafting tables and furnaces. Features client-server synchronization, anti-spam limits, and safe targeting of nearest living player.
  1. Crio o esqueleto Fabric 1.20.4 e registro da entidade Mímico.

  2. Implemento perseguição furtiva, sustos limitados e vestígios seguros no carregamento de chunks.

  3. Adiciono renderer com skin/nome sincronizados do jogador-alvo e traduções PT-BR/inglês.

Implementei o mod Fabric 1.20.4 O Mímico.

  • A entidade real escolhe o jogador vivo mais próximo e sincroniza seu nome e UUID. O renderer cliente usa a skin recebida para esse jogador, com fallback caso ela ainda não esteja disponível.

  • A IA segue e observa sem atacar; quando é encarada, pode desaparecer, fugir ou correr e saltar. Há também passos ocasionais sem fonte visível e mensagens raras, enviadas apenas ao jogador seguido.

  • Acampamentos pequenos e incomuns podem surgir ao carregar chunks, somente em posições seguras e substituíveis.

  • Adicionei configuração Fabric, entrypoints separados para servidor e cliente, traduções PT-BR/inglês e instruções em README.md. Para experimentar, use /summon mimic:mimic.

Não compilei o projeto, conforme solicitado.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
README.md
settings.gradle
Code
11 526
src/main/java/com/kodari/mimic/MimicMod.java
package com.kodari.mimic;

import com.kodari.mimic.entity.MimicEntity;
import net.fabricmc.api.ModInitializer;
import net.fabricmc.fabric.api.object.builder.v1.entity.FabricDefaultAttributeRegistry;
import net.fabricmc.fabric.api.event.lifecycle.v1.ServerChunkEvents;
import net.fabricmc.fabric.api.event.lifecycle.v1.ServerTickEvents;
import net.minecraft.block.Blocks;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityType;
import net.minecraft.entity.SpawnGroup;
import net.minecraft.entity.attribute.EntityAttributes;
import net.minecraft.entity.mob.MobEntity;
import net.minecraft.registry.Registries;
import net.minecraft.registry.Registry;
import net.minecraft.server.network.ServerPlayerEntity;
import net.minecraft.server.world.ServerWorld;
import net.minecraft.sound.SoundCategory;
import net.minecraft.sound.SoundEvents;
import net.minecraft.util.Identifier;
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.math.ChunkPos;
import net.minecraft.world.Heightmap;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Random;
import java.util.UUID;

public final class MimicMod implements ModInitializer {
    public static final String MOD_ID = "mimic";
    public static final EntityType<MimicEntity> MIMIC = Registry.register(
            Registries.ENTITY_TYPE,
            new Identifier(MOD_ID, "mimic"),
            EntityType.Builder.create(MimicEntity::new, SpawnGroup.MONSTER)
                    .setDimensions(0.6F, 1.8F)
                    .maxTrackingRange(10)
                    .trackingTickInterval(2)
                    .build("mimic")
    );

    private static final Map<UUID, Long> NEXT_AMBIENT_STEP = new HashMap<>();

    @Override
    public void onInitialize() {
        FabricDefaultAttributeRegistry.register(MIMIC, MobEntity.createMobAttributes()
                .add(EntityAttributes.GENERIC_MAX_HEALTH, 20.0)
                .add(EntityAttributes.GENERIC_MOVEMENT_SPEED, 0.28)
                .add(EntityAttributes.GENERIC_FOLLOW_RANGE, 48.0));
        ServerTickEvents.END_WORLD_TICK.register(MimicMod::tickWorld);
        ServerChunkEvents.CHUNK_LOAD.register(MimicMod::onChunkLoad);
    }

    private static void tickWorld(ServerWorld world) {
        long time = world.getTime();
        List<ServerPlayerEntity> players = world.getPlayers();
        for (ServerPlayerEntity player : players) {
            scheduleAmbientStep(world, player, time);
        }
        if (time % 20L != 0L) {
            return;
        }

        List<MimicEntity> active = new ArrayList<>(world.getEntitiesByType(MIMIC, Entity::isAlive));
        if (active.size() >= 3) {
            return;
        }

        long dayTime = Math.floorMod(world.getTimeOfDay(), 24000L);
        boolean night = dayTime >= 13000L && dayTime <= 23000L;
        for (ServerPlayerEntity player : players) {
            if (!player.isAlive()) {
                continue;
            }
            boolean alreadyFollowing = false;
            for (MimicEntity mimic : active) {
                if (mimic.distanceTo(player) < 64.0F) {
                    alreadyFollowing = true;
                    break;
                }
            }
            if (alreadyFollowing) {
                continue;
            }

            boolean cave = player.getY() < 50.0;
            int rarity = cave ? 500 : night ? 1400 : 3600;
            if (world.getRandom().nextInt(rarity) == 0) {
                MimicEntity mimic = trySpawnMimic(world, player, cave);
                if (mimic != null) {
                    active.add(mimic);
                    if (active.size() >= 3) {
                        return;
                    }
                }
            }
        }
    }

    private static MimicEntity trySpawnMimic(ServerWorld world, ServerPlayerEntity player, boolean cave) {
        for (int attempt = 0; attempt < 12; attempt++) {
            double angle = world.getRandom().nextDouble() * Math.PI * 2.0;
            int distance = 12 + world.getRandom().nextInt(9);
            int x = (int) Math.floor(player.getX() + Math.cos(angle) * distance);
            int z = (int) Math.floor(player.getZ() + Math.sin(angle) * distance);
            BlockPos feet;
            if (cave) {
                int y = (int) Math.floor(player.getY()) + world.getRandom().nextInt(5) - 2;
                feet = new BlockPos(x, y, z);
            } else {
                feet = world.getTopPosition(Heightmap.Type.WORLD_SURFACE, new BlockPos(x, 0, z));
            }

            BlockPos head = feet.add(0, 1, 0);
            BlockPos floor = feet.down();
            if (!world.getBlockState(feet).isAir() || !world.getBlockState(head).isAir()
                    || !world.getBlockState(floor).isSolidBlock(world, floor)) {
                continue;
            }

            MimicEntity mimic = new MimicEntity(MIMIC, world);
            mimic.refreshPositionAndAngles(x + 0.5, feet.getY(), z + 0.5,
                    world.getRandom().nextFloat() * 360.0F, 0.0F);
            if (player.canSee(mimic)
                    || player.getRotationVec(1.0F).dotProduct(mimic.getPos().subtract(player.getPos()).normalize()) > 0.2) {
                continue;
            }
            mimic.setTarget(player);
            if (mimic.canSpawn(world) && world.spawnEntity(mimic)) {
                return mimic;
            }
        }
        return null;
    }

    private static void scheduleAmbientStep(ServerWorld world, ServerPlayerEntity player, long time) {
        Long next = NEXT_AMBIENT_STEP.get(player.getUuid());
        if (next == null) {
            NEXT_AMBIENT_STEP.put(player.getUuid(), time + 1000L + world.getRandom().nextInt(1800));
            if (NEXT_AMBIENT_STEP.size() > 512) {
                NEXT_AMBIENT_STEP.clear();
            }
            return;
        }
        if (time < next) {
            return;
        }

        playAmbientStep(world, player);
        NEXT_AMBIENT_STEP.put(player.getUuid(), time + 1200L + world.getRandom().nextInt(2400));
    }

    private static void playAmbientStep(ServerWorld world, ServerPlayerEntity player) {
        boolean cave = player.getY() < 50.0;
        for (int attempt = 0; attempt < 8; attempt++) {
            double angle = world.getRandom().nextDouble() * Math.PI * 2.0;
            int distance = 5 + world.getRandom().nextInt(5);
            int x = (int) Math.floor(player.getX() + Math.cos(angle) * distance);
            int z = (int) Math.floor(player.getZ() + Math.sin(angle) * distance);
            BlockPos step;
            if (cave) {
                int y = (int) Math.floor(player.getY()) + world.getRandom().nextInt(5) - 2;
                step = new BlockPos(x, y, z);
            } else {
                step = world.getTopPosition(Heightmap.Type.WORLD_SURFACE, new BlockPos(x, 0, z));
            }
            BlockPos floor = step.down();
            if (!world.getBlockState(step).isAir() || !world.getBlockState(floor).isSolidBlock(world, floor)) {
                continue;
            }
            world.playSound(null, step.getX() + 0.5, step.getY(), step.getZ() + 0.5,
                    cave ? SoundEvents.BLOCK_STONE_STEP : SoundEvents.BLOCK_GRASS_STEP,
                    SoundCategory.BLOCKS, 0.48F, 0.78F + world.getRandom().nextFloat() * 0.35F);
            return;
        }
    }

    private static void onChunkLoad(ServerWorld world, net.minecraft.world.chunk.WorldChunk chunk) {
        ChunkPos chunkPos = chunk.getPos();
        long seed = world.getSeed() ^ (long) chunkPos.x * 341873128712L ^ (long) chunkPos.z * 132897987541L;
        Random random = new Random(seed);
        if (random.nextInt(280) != 0) {
            return;
        }

        BlockPos column = new BlockPos(chunkPos.x * 16 + random.nextInt(16), 0,
                chunkPos.z * 16 + random.nextInt(16));
        BlockPos camp = world.getTopPosition(Heightmap.Type.WORLD_SURFACE, column);
        int furnaces = 1 + random.nextInt(2);
        int direction = random.nextBoolean() ? 1 : -1;
        for (int index = 0; index <= furnaces; index++) {
            BlockPos position = camp.add(index * direction, 0, 0);
            BlockPos floor = position.down();
            if (!world.getBlockState(position).isReplaceable()
                    || !world.getBlockState(floor).isSolidBlock(world, floor)) {
                return;
            }
        }