Create a Fabric Minecraft 1.21.11 mod called Totem of Null, inspired by the supernatural/player-like style of Unstable SMP.
TOTEM OF NULL
Add a Totem of Null item using the vanilla Totem of Undying model and texture. It has:
* Permanent purple enchanted glint. * Dark-red name: Totem of Null * Purple lore: “A cursed artifact binding the dark entities of the void to your command.”
The player holding the Totem becomes the Leader.
NULL ARMY
The Totem can summon exactly:
* 1 Null Commander * 50 Null Soldiers * 10 Wraiths
The Null Commander is named ______ (exactly six underscores).
Null Soldiers and the Commander must be custom humanoid/path-aware NPCs, not zombies or normal hostile mobs.
They should look and behave as closely as technically possible to independent Minecraft players:
* Player-style humanoid appearance and animations. * Natural walking, sprinting, jumping, turning and looking around. * Individual randomized identities. * Individual inventories. * Natural independent movement. * No rigid formations. * No synchronized marching. * No constant clumping. * Soldiers spawn naturally scattered around the Leader. * They independently navigate around obstacles and choose their own paths. * They physically interact with the Minecraft world instead of instantly completing tasks. * They remain loyal to their current Leader.
LEADER CONTROL
The player holding the Totem has complete command authority over the army.
The Leader can give commands through normal Minecraft chat, including natural-language commands such as:
“Null, follow me.” “Null, build me a castle.” “Null, get me diamonds.” “Null, collect wood.” “Null, make a storage room.” “Null, defend me.” “Null, attack that player.” “Null, bring these items to me.” “Null, stop.”
The AI should interpret the Leader's natural-language command, create a task plan, divide work between appropriate NPCs, and physically perform the requested actions.
COMMAND PRIORITY
Use this priority system:
- Emergency commands such as “defend me,” “protect me,” or “attack” immediately cancel lower-priority tasks.
- A new Leader command cancels the previous Leader command unless explicitly told to continue.
- Leader safety takes priority if the Leader is attacked or damaged.
- Current assigned tasks continue until completed, cancelled, or replaced.
- Autonomous behavior such as wandering and exploring has the lowest priority.
The Null Commander can coordinate the Soldiers but can never override a direct Leader command.
When the Leader says “stop,” cancel all active tasks and return the NPCs to independent player-like behavior.
PLAYER-LIKE BUILDING
When ordered to build something, the NPCs must physically construct it.
They must:
* Travel to the construction area. * Divide construction work between themselves. * Walk to individual block positions. * Look toward blocks. * Swing their arms. * Break blocks when necessary. * Collect dropped blocks/items. * Place blocks one at a time. * Avoid getting in each other's way. * Work on different sections independently. * Visibly construct the structure in real time.
Do NOT instantly generate the completed structure or teleport the NPCs around.
RESOURCE COLLECTION
When ordered to collect a resource, NPCs should:
* Locate suitable resource blocks. * Navigate to them. * Mine them physically. * Pick up the dropped items. * Store them in their inventories. * Return to the Leader when appropriate. * Deliver the requested resources.
STORAGE
When ordered to create storage, NPCs should physically construct a storage area, place chests, navigate to them, open the containers, and deposit their collected items.
COMBAT AND DEFENSE
When the Leader orders an attack, identify the intended target from the Leader's view/crosshair when possible and assign the army to engage it.
If the Leader is attacked, temporarily prioritize protecting the Leader.
NPCs should navigate independently rather than forming a rigid combat formation.
WRAITHS
Create 10 Wraith NPCs with a distinct mysterious appearance, translucent/shadowy gray player-style skin, independent movement, individual identities, and their own combat behavior.
They should follow the same Leader command system while retaining their own tactical behavior.
AI ARCHITECTURE
Use a central task/command manager with individual AI state for every NPC.
Each NPC should support states such as:
IDLE FOLLOW EXPLORE BUILD COLLECT STORE ATTACK DEFEND RETURN STOPPED
The central system should distribute tasks while allowing every NPC to make independent movement and pathfinding decisions.
Avoid expensive full-world scans every tick. Use optimized asynchronous/background processing where appropriate and never block the Minecraft server thread with web requests or expensive calculations.
IMPORTANT
The goal is for the Null Army to feel like 50+ independent Minecraft players controlled by one Leader, not like 50 ordinary Minecraft mobs.
They should visibly walk around the world independently, make natural movement decisions, perform tasks physically, and respond intelligently to the Leader's commands.
Generate clean, modular Fabric Java source code and compile the complete project into a working Fabric JAR for the requested Minecraft version.
```