0mar0262

Develop a comprehensive Pokémon-inspired companion system plugin for Minecraft, allowing players to capture, store, summon, and battle with unique creatures called "Monsters." Key features include a capture system using Monster Orbs with visual feedback, a circular Summon Wheel UI for managing captured monsters and energy regeneration, and AI companions that follow players and engage enemies automatically. Implement a diverse range of monster types, each with unique abilities, a leveling system for progression, and a bond mechanic that enhances monster performance. Optimize performance with efficient AI and provide a robust configuration system for fine-tuning gameplay elements. All components must be fully integrated without placeholders, ensuring a seamless and engaging experience.

Kodari AI
KodariJul 3 at 9:58 pm 1

The generation was stopped before any content could be produced.

0mar0262

continue

Kodari AI
KodariJul 4 at 5:34 am 1

The generation was stopped before any content could be produced.

0mar0262

its for fabric 1.20.1 !

Kodari AI
KodariJul 4 at 5:45 am 81

I’ll build a comprehensive Fabric 1.20.1 companion/monster-taming mod.

MonsterTamer
A Pokémon-inspired companion mod for Fabric 1.20.1. Capture wild Monsters with throwable Monster Orbs (health-based catch chance), store up to 6 in a per-player belt, and summon them via a circular Summon Wheel GUI that consumes regenerating energy. Summoned Monsters follow their owner and auto-fight nearby hostiles using unique species abilities (fire bursts, healing waves, chain lightning, wards, regen). Includes XP-based leveling that scales stats, a bond mechanic granting up to +50% stats over time, wild spawning, admin commands, and a JSON config for tuning catch rates, energy, XP, and abilities.

Now creating all project files.

Now the core Java source files.

Core mod complete. Summary:

  • Capture: MonsterOrbItem/MonsterOrbEntity — thrown orb, health-scaled catch chance, particle/sound feedback, storage-full handling.

  • Storage: MonsterStorage/CapturedMonster/MonsterDataManager — 6-slot per-player belt persisted via PlayerEntityMixin NBT hooks, energy regen.

  • Summon Wheel: circular SummonWheelScreen (client) synced via NetworkConstants/ServerNetworking/ClientNetworking packets, G keybind.

  • Monsters: MonsterEntity (TameableEntity-based) with 5 MonsterTypes, unique AbilityType effects via MonsterAbilityGoal, vanilla follow/attack goals, XP leveling, bond stat scaling (+50% max), wild spawning (WildMonsterSpawner).

  • Config: ModConfig — JSON-tunable catch rate, energy, XP, bond, ability cooldowns, wild spawn rates.

  • Commands: /monster storage|giveorb|spawn.

Note: entity/item textures (monster.png, monster_orb item texture) are referenced but not bundled as binary assets — drop PNGs into assets/monstertamer/textures/ to replace the default missing-texture placeholder; all gameplay logic is fully functional without them.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
settings.gradle
Code
34 1,688
src/main/java/com/kodari/monstertamer/MonsterTamerMod.java
package com.kodari.monstertamer;

import com.kodari.monstertamer.command.MonsterCommand;
import com.kodari.monstertamer.config.ModConfig;
import com.kodari.monstertamer.entity.ModEntities;
import com.kodari.monstertamer.entity.MonsterEntity;
import com.kodari.monstertamer.item.ModItems;
import com.kodari.monstertamer.network.ServerNetworking;
import com.kodari.monstertamer.storage.MonsterActions;
import com.kodari.monstertamer.storage.MonsterDataManager;
import com.kodari.monstertamer.storage.MonsterStorage;
import com.kodari.monstertamer.world.WildMonsterSpawner;
import net.fabricmc.api.ModInitializer;
import net.fabricmc.fabric.api.entity.event.v1.FabricDefaultAttributeRegistry;
import net.fabricmc.fabric.api.event.lifecycle.v1.ServerTickEvents;
import net.fabricmc.fabric.api.networking.v1.ServerPlayConnectionEvents;
import net.minecraft.server.network.ServerPlayerEntity;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class MonsterTamerMod implements ModInitializer {
	public static final String MOD_ID = "monstertamer";
	public static final Logger LOGGER = LoggerFactory.getLogger(MOD_ID);

	@Override
	public void onInitialize() {
		ModConfig.load();
		ModItems.register();
		ModEntities.register();
		FabricDefaultAttributeRegistry.register(ModEntities.MONSTER, MonsterEntity.createMonsterAttributes());
		ServerNetworking.register();
		MonsterCommand.register();

		ServerTickEvents.END_SERVER_TICK.register(server -> {
			for (ServerPlayerEntity player : server.getPlayerManager().getPlayerList()) {
				MonsterStorage storage = MonsterDataManager.get(player.getUuid());
				storage.tickEnergyRegen();
			}
			WildMonsterSpawner.tick(server);
		});

		ServerPlayConnectionEvents.DISCONNECT.register((handler, server) -> {
			MonsterActions.recallAllOnDisconnect(handler.player);
		});

		LOGGER.info("MonsterTamer initialized.");
	}
}