confide213
๐Ÿ“Ž 1 file 3,156 chars
๐Ÿ“„
pasted-code-1777739467210.txt
txt 89 lines
โ–ถ
Create a Minecraft server plugin (Spigot/Paper, latest version) that allows operators to build and generate terrain below bedrock (in the void), includes a customizable skybox system, and prevents players from taking void damage.

Core Features
1. Void Building Toggle
Command: /void build
Toggles the ability for operators to place and break blocks below Y=0 (below bedrock).
When enabled, operators can build freely in the void.
When disabled, normal Minecraft restrictions apply.
Only players with operator permissions can use this command.
2. Void Terrain Generation
Command: /void generate 
Allows operators to generate terrain below bedrock at their current location.
3. Biome Generation
Command: /void generate biome 
Generates a patch of terrain matching the specified biome below bedrock.
Example: /void generate biome plains
Should include:
Appropriate terrain blocks (grass, sand, stone, etc.)
Natural terrain shaping
Optional vegetation (trees, grass, flowers, etc.)
4. Structure Generation
Command: /void generate structure 
Generates a Minecraft structure below bedrock.
Example: /void generate structure village
Should support:
village
mineshaft
stronghold
desert_pyramid
ruined_portal
5. Skybox System (Void Atmosphere)
Create Skybox
Command: /void skybox 
Creates a large spherical or cubic skybox centered on the player below bedrock.
Features:
Simulates a sky using configurable blocks (e.g., light blue stained glass)
Radius defines size
Fully encloses the area
Optional gradient (lighter top, darker bottom)
Does not block player movement inside
Remove Skybox
Command: /void removeskybox
Removes the generated skybox around the player.
Only removes blocks placed by the plugin (must track placements).
6. Void Damage Prevention
All players are immune to void damage (damage caused by falling into the void).
Implement using an event listener (e.g., EntityDamageEvent with cause VOID).
When a player takes void damage:
Cancel the damage event
Optionally:
Teleport player slightly upward OR
Keep them at current position safely
Must not interfere with other types of damage.
7. Placement & Safety Rules
Default generation occurs below bedrock (e.g., Y = -10 or configurable).
Avoid overwriting existing builds unless intended.
Limit:
Biome size
Skybox radius
Ensure structures generate properly aligned and complete.
8. Permissions
void.build
void.generate
void.skybox
void.removeskybox
void.novoiddamage (optional: only players with this permission are immune)
9. Configuration File (config.yml)

Include options such as:

Default void generation Y-level
Maximum skybox radius
Skybox materials
Gradient enabled/disabled
Biome size
Enable/disable void damage prevention
Teleport offset when preventing void damage
10. Code Requirements
Written in Java
Compatible with latest Paper/Spigot API
Clean, modular design
Proper command handling and permission checks
Event listeners for damage prevention
Clear player feedback messages
11. Extra (Optional but Preferred)
Tab completion for commands
Async/batched block placement to reduce lag
Ability to regenerate skybox
Debug logging option in config
Kodari can make mistakes. Review important code before using.
Files

No files in this session

Code