juniel josues

Hasme un mod de vigevani súper realista y que fue de vigilar y que ya que pidiendo ayuda y que aparezcan todos los payasos de betta y te estén persiguiendo y después aparezca arpa con todos sus payasos y se salve

Kodari AI
KodariOct 25 at 3:13 pm 10
VigevaniClownHorror
A survival horror mod where the player is trapped in a realistic vigilante scenario. The player must monitor their surroundings while being hunted by relentless Betta clowns who spawn and chase relentlessly. As tension peaks, Arpa arrives with an army of clowns to rescue the player, triggering a dramatic finale where the player must escape the chaos. Features realistic AI pursuit, dynamic spawn systems, and cinematic rescue sequences.

Plan:

  1. Crear un mod Fabric 26.3 con un silbato de auxilio crafteable.

  2. Al usarlo, hacer que un vigilante y los payasos persigan al jugador; después llegan Arpa y sus aliados para defenderlo.

  3. Añadir modelos visuales de Minecraft, texturas propias y los recursos de supervivencia.

Mod creado: al usar un cuerno de cabra, aparece Vigevani observando y cuatro payasos de Betta empiezan a perseguirte. Tras 30 segundos llegan Arpa y tres payasos aliados para enfrentarlos. El cuerno tiene un enfriamiento de 60 segundos.

En supervivencia, consigue un cuerno haciendo que una cabra embista un bloque y úsalo en la mano principal. Vigevani tiene textura propia; los payasos y Arpa usan por ahora la apariencia vanilla de zombi, así que la parte visual aún no es plenamente realista.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
settings.gradle
Code
15 386
src/main/java/com/kodari/vigevani/VigevaniEncounter.java
package com.kodari.vigevani;

import com.kodari.vigevani.entity.BettaClownZombie;
import com.kodari.vigevani.entity.WatcherZombie;
import net.fabricmc.api.ModInitializer;
import net.fabricmc.fabric.api.event.player.UseItemCallback;
import net.minecraft.server.level.ServerLevel;
import net.minecraft.world.InteractionHand;
import net.minecraft.world.InteractionResult;
import net.minecraft.world.entity.EntitySpawnReason;
import net.minecraft.world.entity.EntityType;
import net.minecraft.world.entity.monster.zombie.Zombie;
import net.minecraft.world.entity.player.Player;
import net.minecraft.world.item.ItemStack;
import net.minecraft.world.item.Items;

public class VigevaniEncounter implements ModInitializer {
	public static final String MOD_ID = "vigevani_encounter";

	@Override
	public void onInitialize() {
		ModEntities.register();
		UseItemCallback.EVENT.register((player, level, hand) -> {
			ItemStack stack = player.getItemInHand(hand);
			if (level.isClientSide() || hand != InteractionHand.MAIN_HAND || !stack.is(Items.GOAT_HORN) || player.getCooldowns().isOnCooldown(stack)) {
				return InteractionResult.PASS;
			}

			if (level instanceof ServerLevel serverLevel) {
				WatcherZombie watcher = spawn(serverLevel, ModEntities.VIGILANTE, player, 8.0, 0.0, 2.0);
				if (watcher != null) {
					watcher.setPermanentlyInvulnerable(true);
					watcher.setTarget(player);
					watcher.startRescueSequence();
				}

				spawnChaser(serverLevel, player, 4.0, 0.0, 0.0);
				spawnChaser(serverLevel, player, -4.0, 0.0, 0.0);
				spawnChaser(serverLevel, player, 0.0, 0.0, 4.0);
				spawnChaser(serverLevel, player, 0.0, 0.0, -4.0);
				player.getCooldowns().addCooldown(stack, 1200);
			}

			return InteractionResult.PASS;
		});
	}

	private static void spawnChaser(ServerLevel level, Player player, double offsetX, double offsetY, double offsetZ) {
		BettaClownZombie clown = spawn(level, ModEntities.BETTA_CLOWN, player, offsetX, offsetY, offsetZ);
		if (clown != null) {
			clown.setTarget(player);
		}
	}

	private static <T extends Zombie> T spawn(ServerLevel level, EntityType<T> type, Player player, double offsetX, double offsetY, double offsetZ) {
		T entity = type.create(level, EntitySpawnReason.SPAWN_ITEM_USE);
		if (entity == null) {
			return null;
		}
		entity.setPos(player.getX() + offsetX, player.getY() + offsetY, player.getZ() + offsetZ);
		level.addFreshEntity(entity);
		return entity;
	}
}