
Inventory Swap
Create a Pokemon gym server-side mod. Add a command called /gym spawn, and then build into the world an intricate Pokemon gym with a trainer in the middle...
00—fabricServer1.21.1mod
Inventory Swap Gym Mod
- Adds the
/gym spawncommand (usable by players) which finds a spot ~8 blocks ahead of the caller, clears space, and assembles a Pokémon-style gym block by block with a randomly selected palette (Cascade/Ember/Tide). - Each gym includes patterned floors, glass walls, lantern-ringed roof, entrance path, and interior columns; construction is paced over several seconds instead of appearing instantly.
- When construction finishes, a themed gym trainer armor stand appears at the center; interacting with them triggers a short battle encounter that spawns a few buffed mobs representing the trainer’s team and targets the challenger.
- Approaching a gym within about 12 blocks plays bell cues, sprays particles, and shows an action bar hint so the structure feels alive even before interacting.
- Multiple gyms can be created; each tracks its trainer spawn and uses cooldowns to reduce interaction spam while still allowing repeat battles.
Known limits / tips
- Battles use vanilla mobs rather than true Pokémon; spawned opponents persist until defeated.
- Gyms overwrite blocks within their footprint (about a 15×15 area and up to ~7 blocks high) to guarantee a clear arena.
- Tuning build speed, particle density, or palettes can be done via the constants in
GymManager/GymStructureif you want a slower or flashier presentation.
Server Validation
✅ Server validation passed - The mod was tested on a real Minecraft server and loaded successfully.