๐
1 file
5,938 chars
๐
pasted-code-1794835086931.txt
txt
269 lines
โถ
pasted-code-1794835086931.txt
txt
269 lines
# PROJECT: Minecraft Command-Controlled AI Players & Assassin System
Build a complete Minecraft Java Edition mod for Minecraft 1.21.1 using Fabric.
IMPORTANT:
This project must work WITHOUT ANY EXTERNAL AI.
NO API KEYS.
NO OPENAI.
NO CHATGPT.
NO GEMINI.
NO CLOUD AI.
NO INTERNET DEPENDENCY.
NO EXTERNAL AI MODELS.
All intelligence must be implemented using Java programming, custom AI logic, Minecraft entity systems, pathfinding, task execution and command parsing.
# 1. MAIN SYSTEM
Create a system that allows players to spawn multiple custom humanoid AI characters directly inside the Minecraft world.
These characters must:
- Exist physically in the 3D world.
- Have player-like humanoid models.
- Walk, run, jump and swim.
- Have independent inventories.
- Equip weapons and armor.
- Fight mobs and other enemies.
- Follow their owner.
- Execute commands.
- Remember their assigned tasks.
- Work independently after receiving instructions.
They must NOT be ordinary villagers.
# 2. COMMAND SYSTEM
Implement commands:
/aiplayer spawn [name]
/aiplayer remove [name]
/aiplayer list
/aiplayer command [name] [instruction]
/aiplayer follow [name]
/aiplayer stop [name]
/aiplayer attack [name] [target]
/aiplayer defend [name]
/aiplayer guard [name]
/aiplayer patrol [name]
/aiplayer teleport [name]
/aiplayer inventory [name]
/aiplayer equip [name]
/aiplayer sethome [name]
/aiplayer return [name]
/aiplayer status [name]
/aiplayer kill [name]
# 3. COMMAND-ONLY INTELLIGENCE
Create an advanced command parser.
Support instructions such as:
- Follow me.
- Stay here.
- Attack zombies.
- Kill all nearby hostile mobs.
- Protect me.
- Guard this location.
- Build a house.
- Collect wood.
- Mine diamonds.
- Find a village.
- Bring me iron.
- Craft armor.
- Equip the strongest sword.
- Return home.
- Explore this area.
Convert recognized instructions into executable Minecraft tasks.
Use command aliases, keyword matching, target detection and predefined task plans.
Do not require external AI to interpret instructions.
Unknown commands must return a helpful error with available commands.
# 4. ASSASSIN NPC CLASS
Create a special NPC class called ASSASSIN.
Spawn command:
/aiplayer spawn Assassin
Assassin characteristics:
- Black assassin outfit.
- Hood and mask.
- Dual swords.
- Advanced combat AI.
- Fast movement.
- Smart target selection.
- Enemy tracking.
- Stealth behavior.
- Dodging and strafing.
- Critical attacks.
- Escape behavior when health is low.
- Automatic weapon selection.
- Hostile mob detection.
- Protection of its owner.
Assassin commands:
/assassin follow
/assassin hunt [target]
/assassin kill [target]
/assassin protect
/assassin stealth
/assassin guard
/assassin patrol
/assassin retreat
/assassin stop
/assassin status
Assassin must physically execute every action inside the Minecraft world.
# 5. COMBAT SYSTEM
Implement:
- Melee combat.
- Ranged combat.
- Weapon selection.
- Armor management.
- Health monitoring.
- Enemy detection.
- Combat movement.
- Attack cooldowns.
- Damage calculations using Minecraft mechanics.
- Target prioritization.
- Boss combat support.
Assassin should be significantly more skilled than ordinary NPCs.
# 6. BUILDER NPC
Create a Builder role.
Features:
- Build houses.
- Place blocks.
- Collect building materials.
- Follow predefined building blueprints.
- Repair structures.
- Build walls and defensive structures.
Commands:
/aiplayer build [name] house
/aiplayer build [name] wall
/aiplayer build [name] tower
# 7. MINER NPC
Features:
- Mine ores.
- Collect resources.
- Avoid lava.
- Use pickaxes.
- Manage inventory.
- Return to owner when inventory is full.
# 8. MULTIPLE NPCS
Allow spawning multiple NPCs with different names and roles.
Each NPC must have:
- Unique identity.
- Independent inventory.
- Individual task queue.
- Individual health.
- Independent equipment.
- Persistent data.
- Owner association.
Allow team cooperation.
# 9. OFFLINE INTELLIGENCE ENGINE
Implement a fully local Java-based behavior engine.
Use:
- Finite State Machines.
- Behavior Trees.
- Goal selectors.
- A* pathfinding.
- Task queues.
- Rule-based decision making.
- Minecraft entity AI goals.
- Event-driven behavior.
- Persistent NPC memory.
Do not simulate intelligence with random actions.
NPCs must make decisions based on their surroundings, health, inventory, enemies, assigned commands and current objectives.
# 10. SERVER SUPPORT
CRITICAL REQUIREMENT:
The mod must work on dedicated Minecraft servers, not just single-player worlds.
Support:
- Fabric dedicated servers.
- Multiple connected players.
- Multiplayer synchronization.
- Server-side NPC movement.
- Server-side combat.
- Persistent NPCs after restart.
- Permission-based commands.
- Owner-only control.
- Configurable NPC limits.
- Server performance optimization.
Ensure NPCs are controlled by the server and visible to all connected players.
# 11. TECHNICAL REQUIREMENTS
Minecraft Java Edition 1.21.1.
Fabric Loader.
Fabric API.
Java 21.
Gradle build system.
Create:
- Custom humanoid entity.
- Custom entity renderer.
- NPC inventory system.
- Command registration.
- Task execution engine.
- Combat engine.
- Navigation system.
- Persistence system.
- Configuration system.
# 12. FINAL REQUIREMENTS
Deliver a complete working Minecraft mod project.
Provide:
- Full source code.
- Correct project structure.
- Gradle configuration.
- Fabric metadata.
- Entity registration.
- All commands implemented.
- Working Assassin.
- Working Builder.
- Working Miner.
- Multiplayer server compatibility.
- Installation instructions.
- Build instructions.
- Compiled JAR.
Do not leave important features as TODOs or placeholders.
Test the mod in an actual Minecraft 1.21.1 Fabric environment.
The final result must allow players to spawn command-controlled humanoid NPCs and control them entirely through Minecraft commands without any external AI or API.
KodariMon at 1:25 pm 1
CommandAICompanions
A Fabric mod for Minecraft 1.21.1 that adds command-controlled humanoid AI companions. Players spawn NPCs via commands, each with unique identities, inventories, and task queues. The local Java-based intelligence engine uses finite state machines, behavior trees, and A* pathfinding to interpret natural-language-style instructions like "follow me" or "mine diamonds" into executable tasks. Includes specialized Assassin, Builder, and Miner roles with advanced combat, building, and resource-gathering capabilities. Fully server-side with multiplayer synchronization and persistent NPC data.
This is a Java server-plugin project, but you asked for a Fabric mod for Minecraft 1.21.1. Kodari has that project type and version available: Fabric 1.21.1 isn't available in Kodari. Fabric versions: 26.3, 26.2, 1.21.11, 1.21.4, 1.20.4, 1.19.4, 1.18.2.
Kodari can make mistakes. Review important code before using.
Files
No files in this session
Code