Briefing

AWS Swords: A Minecraft Mod Turning AWS Services into Weapons

ai-dev
by Carlos Cortez 🇵🇪 [AWS Hero] ·

Build the mod with Gradle 8.12, Java 21, and test each AWS sword’s ability in Minecraft 1.21.1.

What to do now

Build the mod, run tests, and verify sword abilities in the game.

Summary

AWS Swords is a Fabric mod for Minecraft 1.21.1 that maps AWS services to in‑game weapons, each with a unique ability that mirrors the real service’s behavior. The Lambda sword summons 1‑3 temporary allies that despawn after a few seconds, the S3 sword absorbs items from the ground and retrieves them later, and the EC2 sword stacks damage and adds random critical hits to simulate auto‑scaling and spot instances. The mod’s architecture follows a microservices pattern: a SwordAbility interface defines the contract, BaseSword handles shared behavior such as cooldowns and tooltips, and each sword implementation (LambdaSword, GreatswordOfLambda, S3Sword, EC2Sword) lives in its own class. The project uses Fabric Loader 0.19.2, Fabric API 0.109.0+1.21.1, Fabric Loom 1.9, Java 21, and Gradle 8.12, and the full source code is available on CurseForge. The mod’s directory structure includes src/main/java/com/awsswords/ with entrypoint, client, entity, and item packages, and src/main/resources/ with fabric.mod.json and assets/awsswords/ for language files, models, and animated textures. The mod demonstrates how AI can assist in coding by having an AI agent generate classes, textures, and animations through conversation.

The mod’s design emphasizes loose coupling and high cohesion, mirroring good microservices practices. Each sword’s ability is implemented via the SwordAbility interface, allowing new weapons to be added without a giant switch statement. The BaseSword class manages Netherite‑tier stats, cooldowns, and particle hooks, while the LambdaMinionManager handles the lifecycle of temporary allies. The project showcases how to integrate AI into a development workflow and provides a concrete example of mapping cloud concepts to game mechanics.

Key changes

  • Lambda sword spawns 1‑3 temporary allies that despawn after a few seconds
  • S3 sword absorbs and retrieves items from the ground
  • EC2 sword stacks damage and adds random critical hits
  • Mod uses Fabric Loader 0.19.2, Fabric API 0.109.0+1.21.1, Fabric Loom 1.9, Java 21, and Gradle 8.12
  • SwordAbility interface defines onUse, onAttack, getCooldownTicks, and getDescription
  • BaseSword handles cooldowns, tooltips, and particle hooks for all swords
  • Each sword implementation lives in its own class under item/sword
  • Full source code is available on CurseForge

Affects

none

Customer impact

Analyzing matches…

Ask about this story

Impact on an agency? Which customers? Compare historically Risks of waiting