Описание
***
# Reign of Nether – **Boobcat Edition**
## Overview
Born from the original _Reign of Nether_ codebase and personally maintained by an early contributor (Boobcat), this edition emphasizes stability, extensibility, and creative control:
* Maintains full gameplay of the classic **Villagers vs Piglins vs Monsters** factions.
* Seamlessly integrates with modpacks, datapacks, and custom biome/resource systems.
* Major systems rewritten for **A\*** pathfinding (now supporting **multithreaded performance**), configurable resources, optimized fog, and mapmaker command tools.
* Includes a **fully reworked orthographic camera system** for smoother, more responsive RTS controls.
***
## Core Enhancements
| Category |Feature |Description |
| ------------------------ |-------------------------------------- |--------------------------------------------------------------------------------------------------------------------------------------------- |
| Resource & Mod Support |Configurable Resource Values |Easily define and customize base resource types, gather rates, costs, and mod-specific resources via JSON configs. |
| |Ore Regeneration on Reset |Trigger full Nether ore & resource respawn using /rts-reset—ideal for replayable maps and timed rounds. |
| Performance & Visuals |Reworked Fog System |Optimized chunk-based occlusion and rendering logic reduce lag, support larger RTS scales, and ensure client/server consistency. |
| |Fog Anti-Cheat |Prevent unnatural sight (X-ray, tunneling, map hacks) by validating viewport visibility from both client and server sides. |
| |Orthographic Camera Rewrite |Complete overhaul for smoother zooming, panning, and edge-scrolling—built for RTS precision. |
| Navigation & Pathfinding |A*-Based Unit Movement (Multithreaded) |Grid-aware A*-pathfinding with flow-field smoothing and multithreaded execution delivers smarter, faster, and more predictable army control. |
| |Bridge Reload Fix |Preserves temporary bridge links across reloads—units no longer fall through structures when the server restarts mid-match. |
| Map & Scenario Tools |Mapmaker Commands |Create, modify, and control match flow with powerful commands (structures, ownership, resets, win/loss). Works in-game or via Command Blocks. |
***
## 🛠 Mapmaker Commands (v1.2+)
Use powerful RTS Mapmaker commands to design custom maps, reset matches, manage structures, and define victory conditions.
### Command Categories
#### General Controls
* `/rts-reset` & `/rts-regenerateores` — Restore all resources, respawn ores, and reset match states.
* `/rts-placebridge ` — Build a temporary bridge; now persists through reloads.
#### Unit Management
* `/rts-setunitowner byid `
* `/rts-setunitowner byarea [unitType]`
* `/rts-setunitowner bytype `
#### Building & Structures
* `/rts-createbuilding [rotation]`
* `/rts-destroybuilding bypos `
* `/rts-setbuildingowner byarea [buildingType]`
#### Game Control
* `/rts-win ` — Force a player win condition.
* `/rts-lose ` — Force a player loss condition.
### Usage Summary
```
# Reset the map and respawn ores
/rts-reset
# Place a durable bridge between two points
/rts-placebridge 0 65 0 10 65 10
# Create a monster stronghold with 180° rotation
/rts-createbuilding stronghold 150 64 150 MonstersAI 180
# Change all villager units in area to Player2
/rts-setunitowner byarea -10 60 -10 10 70 10 Player2 villager
# Declare Player1 as the winner
/rts-win Player1
```
#### Command Block Integration
* All Mapmaker commands are allowed from command blocks (no OP check), enabling:
* Automated scripted scenarios (timed base spawns, unit conversion, win triggers)
* Dynamic triggers (e.g. redstone pressure plate spawns)
* Chained logic via conditional blocks or function tags
#### Limits & Safeguards
* Area commands capped at 1000×1000×1000 blocks.
* Owner/player validity checked (invalid names return error).
* World bounds enforcement (Y height limits, spawn radius).
* Resource resets must be triggered server-side or in singleplayer worlds.
***
## Installation
1. Install **Forge or Fabric for Minecraft 1.20.x+**
2. Place `reignofnether-boobcat-.jar` in your `mods/` folder.
3. Optional: Modify `config/reignofnether-boobcat.json` to customize resource values.
4. To guarantee bridge stability, ensure server saves on shutdown.
5. `/rts-help` in-game lists all commands and syntax.
***
## Known Issues & Roadmap
* Switching `/rts-fog` mid-match may permit brief desyncs; recommend enabling fog before match start.
* Bridge API persists on world loads, but broken tread only resets if `/rts-reset` is called.
* Pathfinding recomputes when terrain changes (e.g. pistons move); a fallback defaults to simpler navigation if blocked.
* UIs currently only support vanilla factions; custom factions require explicit config overrides.
* **Upcoming:** Custom faction builder UI, dynamic visuals for commands (e.g. bridge ghost preview).
***
## Credits
* Original _Reign of Nether_ authored by **solegendary** under GPL v3.
* _Boobcat Edition_ maintained and expanded by **Boobcat**—core A\* movement (now multithreaded), fog rewrite, orthographic camera overhaul, resource modding, and scenario commands.
* Thanks to the Reign of Nether Discord community for ongoing testing and map support.
***
## Feature Summary
* Modular, JSON-driven resource system
* Ore regen and reset support
* Optimized fog with anti-cheat
* Persistent temporary bridges
* Smart A\* pathfinding (multithreaded)
* Orthographic camera rewrite
* Robust mapmaker command suite
* Full compatibility with modes like Classic, Wave Survival, King of Beacon
***
> Sponsored by **[BattleforgePC.com](https://battleforgepc.com/)** – A modern fork of _Reign of Nether_, enhanced with mod-friendly configs, optimized systems, and new builder tools for scenario creators.
***