s3renitiy

Make me a minecraft datapack that lets a OP spawn fake players like in unstable smp with custom shields and armor trims that the OP can controll to fight/patrol etc. Also make a option for them to be invisible and have random names like the null army in unstable. Also make this datapack based on unstable smp armoes

Kodari AI
KodariToday at 12:09 pm 3
UnstableArmySpawner
An OP-controlled datapack that spawns fake players with custom shields and armor trims, inspired by Unstable SMP. OPs can command these NPCs to fight, patrol, or stand guard. Includes an invisibility toggle and a random-name generator for a "Null Army" effect. Players are summoned with configurable gear, AI behaviors, and team assignments. Commands allow spawning, despawning, and controlling movement patterns. The datapack uses scoreboard-based state machines and custom loot tables for armor customization, providing a fully server-side NPC army system without mods.
  • Create armored, randomly named zombie soldiers as a vanilla-compatible stand-in for fake players.

  • Add operator functions for spawning, fighting, patrolling, invisibility, and removal.

Created an Unstable SMP-inspired army datapack. Vanilla datapacks can’t spawn actual fake players, so these soldiers are armored zombies with random names, trimmed netherite armor and named shields. The shields are cosmetic; zombies don’t block with them.

Install: Download the ZIP using the export button, extract unstable_army into world/datapacks/, run /reload, then check /datapack list.

Operator commands:

  • /function unstable_army:spawn — spawn a soldier.

  • /function unstable_army:patrol — make the nearest soldier within 12 blocks patrol.

  • /function unstable_army:fight — restore its normal hostile zombie AI.

  • /function unstable_army:invisible or visible — toggle body invisibility; armor remains visible.

  • /function unstable_army:remove — remove the nearest soldier within 12 blocks.

Fight mode uses normal zombie targeting, so soldiers can attack players, including operators.

s3renitiy

Make it a fake player not a zombie

Kodari AI
KodariToday at 12:09 pm 1

Vanilla datapacks can’t create real fake-player entities or control them like players. They can only approximate them with existing entities, and you’ve ruled out zombies.

Kodari can build this as a server plugin using player-like NPCs instead. Switch to a server plugin

s3renitiy

ok give me the file

Kodari AI
KodariToday at 12:10 pm 1

To download the current datapack, use the export button in the project files. It contains zombie soldiers, not fake players.

For actual player-like NPCs, use a server plugin project.

Kodari can make mistakes. Review important code before using.
Files
unstable_army
Code
13 44
unstable_army/data/unstable_army/function/setup.mcfunction
tag @s remove ua_new
execute store result score @s ua_name run random value 1..8
execute if score @s ua_name matches 1 run data merge entity @s {CustomName:'{"text":"Null","color":"dark_gray"}'}
execute if score @s ua_name matches 2 run data merge entity @s {CustomName:'{"text":"Vex","color":"dark_gray"}'}
execute if score @s ua_name matches 3 run data merge entity @s {CustomName:'{"text":"Shade","color":"dark_gray"}'}
execute if score @s ua_name matches 4 run data merge entity @s {CustomName:'{"text":"Echo","color":"dark_gray"}'}
execute if score @s ua_name matches 5 run data merge entity @s {CustomName:'{"text":"Phantom","color":"dark_gray"}'}
execute if score @s ua_name matches 6 run data merge entity @s {CustomName:'{"text":"Cipher","color":"dark_gray"}'}
execute if score @s ua_name matches 7 run data merge entity @s {CustomName:'{"text":"Hollow","color":"dark_gray"}'}
execute if score @s ua_name matches 8 run data merge entity @s {CustomName:'{"text":"Void","color":"dark_gray"}'}
item replace entity @s armor.head with minecraft:netherite_helmet[trim={material:"minecraft:amethyst",pattern:"minecraft:spire"}]
item replace entity @s armor.chest with minecraft:netherite_chestplate[trim={material:"minecraft:amethyst",pattern:"minecraft:spire"}]
item replace entity @s armor.legs with minecraft:netherite_leggings[trim={material:"minecraft:amethyst",pattern:"minecraft:spire"}]
item replace entity @s armor.feet with minecraft:netherite_boots[trim={material:"minecraft:amethyst",pattern:"minecraft:spire"}]
item replace entity @s weapon.mainhand with minecraft:netherite_sword
item replace entity @s weapon.offhand with minecraft:shield[custom_name='{"text":"Null Guard","color":"dark_purple","italic":false}']
data merge entity @s {ArmorDropChances:[0.0f,0.0f,0.0f,0.0f],HandDropChances:[0.0f,0.0f]}