#### The Codex Automata
Wondrous item, artifact (requires attunement)
---
Written by the Hànz wizard Huang Fei late in the third dynasty of the Xin Empire, the codex automata—*The Book of Machines*—synthesized three thousand years of scholarly thought on the subject of magical constructs and was instantly realized as the definitive work on the subject. Other tomes detail the process of creating a golem, but Fei called this "mere smithery."
Fei's goal was to understand the fundamental magic of animated constructs, and in this he succeeded beyond his wildest dreams. His golem army defended the emperor and secured his dynasty's rule for a thousand years.
*"Now we shall see, Huang Fei! We shall end all debate. Here! Now! Let the scales weigh my power against yours, and the world will know which is greater! Your machine mind...or my supreme sorcery!"*— Cheng Shi, contemporaneous owner of the codex miror***Machine Mind.*** You gain magic resistance.
***Walking Tower.*** Once per year as an action, you can summon a tall square tower made of metal and gears. The tower is 20 feet on a side and 60 feet high, with windows on all sides and a battlement on top. The tower has six mechanical legs, granting it a movement speed of 24 miles per day. The interior is divided into five floors connected by an automated moving staircase on the inner wall. The stairs end at a trapdoor leading to the roof. When summoned, the tower side facing you has a door proportional to your size. The door will only open on your command, which you can speak as a bonus action. Magic of less than 7th level will not open the door.
Each creature in the area where the tower appears must make a DC 13 Dexterity saving throw, taking 13d8 bludgeoning damage on a failed save, or half as much damage on a successful one. All creatures in the area are pushed to an unoccupied space outside but next to the tower. Objects in the area are pushed automatically.
The tower is made of metal. The roof, door, and walls each have 300 hit points, immunity to damage from nonmagical weapons except siege weapons, and resistance to all other damage. It cannot be repaired, but can be dismissed as an action. The next time the tower is summoned, it is complete and free of damage.
An automated ballista protrudes from each wall, granting the tower an Attack: 12, Power: 14 attack in battles.
The tower counts as a tower stronghold, and it grants units defending it +2 Morale.
***Iron Company.*** Once per month, as an action you can summon the The Iron Company, a unit of iron golems. The Iron Company rusts after 1 hour or two battles, whichever comes first.
***Machine Lieutenant.*** By spending 1 week in a laboratory worth at least 1,000 gp, you can produce a **machine lieutenant**. You can only have one lieutenant at a time. It is loyal to you and obeys your commands, but it will not willingly move more than 30 feet away from you. If it is ever more than 30 feet away, the lieutenant shuts down and awaits your return.
***Master of Golems.*** No construct will attack you. As an action, you can make a Command check against a construct within 30 feet by rolling 1d20 and adding your Wisdom bonus + 2. If the result is greater than the construct's Hit Dice, then the construct is yours to command, as though you were its creator.
This control lasts 1 hour, after which the construct is free of your influence and cannot be commanded again in this way.
---
#### The Codex Automata
Wondrous item, artifact (requires attunement)
---
Written by the Hànz wizard Huang Fei late in the third dynasty of the Xin Empire, the codex automata—*The Book of Machines*—synthesized three thousand years of scholarly thought on the subject of magical constructs and was instantly realized as the definitive work on the subject. Other tomes detail the process of creating a golem, but Fei called this "mere smithery."
Fei's goal was to understand the fundamental magic of animated constructs, and in this he succeeded beyond his wildest dreams. His golem army defended the emperor and secured his dynasty's rule for a thousand years.
*"Now we shall see, Huang Fei! We shall end all debate. Here! Now! Let the scales weigh my power against yours, and the world will know which is greater! Your machine mind...or my supreme sorcery!"*— Cheng Shi, contemporaneous owner of the codex miror***Machine Mind.*** You gain magic resistance.
***Walking Tower.*** Once per year as an action, you can summon a tall square tower made of metal and gears. The tower is 20 feet on a side and 60 feet high, with windows on all sides and a battlement on top. The tower has six mechanical legs, granting it a movement speed of 24 miles per day. The interior is divided into five floors connected by an automated moving staircase on the inner wall. The stairs end at a trapdoor leading to the roof. When summoned, the tower side facing you has a door proportional to your size. The door will only open on your command, which you can speak as a bonus action. Magic of less than 7th level will not open the door.
Each creature in the area where the tower appears must make a DC 13 Dexterity saving throw, taking 13d8 bludgeoning damage on a failed save, or half as much damage on a successful one. All creatures in the area are pushed to an unoccupied space outside but next to the tower. Objects in the area are pushed automatically.
The tower is made of metal. The roof, door, and walls each have 300 hit points, immunity to damage from nonmagical weapons except siege weapons, and resistance to all other damage. It cannot be repaired, but can be dismissed as an action. The next time the tower is summoned, it is complete and free of damage.
An automated ballista protrudes from each wall, granting the tower an Attack: 12, Power: 14 attack in battles.
The tower counts as a tower stronghold, and it grants units defending it +2 Morale.
***Iron Company.*** Once per month, as an action you can summon the The Iron Company, a unit of iron golems. The Iron Company rusts after 1 hour or two battles, whichever comes first.
***Machine Lieutenant.*** By spending 1 week in a laboratory worth at least 1,000 gp, you can produce a **machine lieutenant**. You can only have one lieutenant at a time. It is loyal to you and obeys your commands, but it will not willingly move more than 30 feet away from you. If it is ever more than 30 feet away, the lieutenant shuts down and awaits your return.
***Master of Golems.*** No construct will attack you. As an action, you can make a Command check against a construct within 30 feet by rolling 1d20 and adding your Wisdom bonus + 2. If the result is greater than the construct's Hit Dice, then the construct is yours to command, as though you were its creator.
This control lasts 1 hour, after which the construct is free of your influence and cannot be commanded again in this way.
---