
cobble
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—cobblemon-neoforgeServer1.21.1mod
Cobble Gym Server Mod
What was built
- Added a server-only Cobblemon gym experience with the
/gym spawncommand to start construction where the command is run. - Gyms assemble block-by-block with small palette variations to keep runs fresh while keeping the same circular layout and entrance path.
- Each finished gym spawns a Cobblemon NPC trainer on the central podium with a full party set up for battles.
- Approaching a completed gym triggers ambient particles and a notification message so players feel the presence of the arena.
How it works
- Command is restricted to permission level 2; the gym is grounded to the local heightmap and then built gradually from a queued blueprint.
- A gym build clears headroom, lays patterned floors and walls, caps with a layered roof, and decorates with lighting plus an entrance walkway.
- When construction finishes, a trainer NPC is created from the Cobblemon standard preset, given a curated party (Lucario, Milotic, Garchomp, Togekiss, Luxray, Roserade), and placed on the podium ready for challenges.
- Proximity checks run each server tick to send one-time alerts per visit and emit particle bursts near the gym center.
Notes and limitations
- No new items or blocks are registered; everything uses vanilla and Cobblemon-provided content to remain server safe.
- Gyms assume nearby chunks stay loaded during the build; running the command far from players can slow or pause placement.
- Trainer behavior relies on Cobblemon’s NPC systems; ensure Cobblemon is present and loaded on connected clients/servers.