Skip to content

Maeiro/custom-random-spawn

Repository files navigation

Custom Random Spawn

NeoForge mod for Minecraft 1.21.1 that randomizes the first spawn position per player within a configurable radius from world center.

Features

  • Random first spawn within a configurable radius from (0,0).
  • Safe drop: player is teleported to Y=320 (or max build height - 1) with Slow Falling.
  • Per-world persistence: each player is randomized only once per world.
  • Server-side config.

Configuration

File: config/customrandomspawn-server.toml

[spawn]
    # Maximum distance from world center (0,0) for the first spawn.
    radius = 1000

Development

Requirements:

  • JDK 21
  • Gradle (wrapper included)

Commands:

.\gradlew build
.\gradlew runClient
.\gradlew runServer

Mod Info

  • Mod ID: customrandomspawn
  • Minecraft: 1.21.1
  • NeoForge: 21.1.218

About

Minecraft mod to set a custom random spawn

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages