sonicers06-ui
📎 1 file 7,104 chars
📄
pasted-code-1793808963068.txt
txt 237 lines
▶
# GOLAMC CUSTOM ITEMS – COMPLETE PLUGIN

Create a complete, production-ready Minecraft Paper 1.21.11 plugin named **GolaMC**.

## TECHNICAL REQUIREMENTS

- Minecraft: Paper 1.21.11
- Java: 21
- Build system: Maven
- Output: GolaMC.jar
- Main package: pl.golamc
- Plugin must be fully functional.
- Use official Paper API.
- Avoid NMS and unsupported server internals.
- Use PersistentDataContainer for unique item identification.
- Integrate with ItemsAdder for custom textures, models and resource pack generation.
- Support optional integrations with FancyNpcs, DecentHolograms, WorldGuard, Vault and PlaceholderAPI.
- Handle missing optional dependencies gracefully.

## MAIN COMMAND

Create the command:

/golamc

It opens a custom inventory GUI containing item categories:

1. Candy
2. Magical Items
3. Portals
4. Exploration
5. Utility Items
6. Event Items
7. Collectibles

Every item must have:
- Unique identifier.
- Custom name.
- Custom description.
- Custom texture.
- Optional 3D model.
- Custom recipe.
- Configurable cooldown.
- Custom usage behavior.
- Acquisition method.

## CUSTOM ITEMS

Implement the following non-combat items:

### 1. Writer's Apple
- Custom golden apple texture with a quill.
- Eating it gives the player a special writable book.
- The player can select an item from a configurable whitelist.
- Example: iron.
- One item is awarded per selection.
- Cooldown: 50 seconds.
- Prevent arbitrary commands and invalid item names.

### 2. Portal
- Custom item showing two connected glowing spheres.
- Creates a pair of linked portal locations.
- Players can travel between the two locations.
- Configurable activation time, default 5 seconds.
- Prevent teleportation into protected or invalid locations.

### 3. Devil Crystal
- Discoverable inside naturally generated amethyst geodes.
- Configurable discovery chance: 25%.
- Unique texture and model.
- Record discoveries per player.

### 4. Angel Crystal
- Discoverable in a special mountain structure.
- Create a small hidden room near cloud level.
- Place a cross and the crystal inside.
- Players can discover and collect it.
- Add administrator commands to configure discovery locations.

### 5. Spark Candy
- Custom orange and yellow glowing candy.
- Summons a small animated spark particle entity.
- The spark searches for nearby lava.
- If the player is in lava, the item can safely convert nearby lava into obsidian.
- Do not overwrite protected blocks.
- Reusable item with configurable cooldown.

### 6. Droplet Candy
- Custom blue water droplet appearance.
- Summons a small water particle effect.
- Can remove or lower a configured lava source.
- Protect the surrounding terrain.
- Make the affected area configurable.

### 7. Thorn Event Item
- Creates ten decorative layers of thorn structures around the activation location.
- One special harmless thorn is hidden among them.
- Finding and removing it grants a Thorn Berry.
- Make the visual appearance configurable.

### 8. Thorn Berry
- Custom purple berry texture.
- Restores half of the player's missing health.
- Formula:

  healing = (maxHealth - currentHealth) / 2

- Never exceed maximum health.

### 9. Portable Bridge Builder
- Custom 3D tool model.
- Automatically searches for four suitable anchor blocks.
- Maximum search distance: 50 blocks.
- Player does not manually select anchor locations.
- Creates a temporary bridge between valid anchors.
- Player can select an allowed bridge material, such as slime blocks.
- Prevent construction inside protected regions or through existing structures.
- Add configurable expiration time.

### 10. AFK Cage
- Custom item used to mark two opposite corners.
- Right-click selects the first corner.
- Left-click selects the second corner.
- Displays a hologram containing the owner's name.
- Integrates with DecentHolograms.
- Supports configurable AFK rewards.
- Keep the two-life feature configurable until its exact rules are defined.

### 11. Guide NPC
- Use FancyNpcs integration.
- Players purchase a Guide Ticket.
- Opening the ticket displays a tutorial GUI.
- Include tutorials for sugar cane farms, chorus farms, iron farms and food farms.
- NPC walks to designated building positions.
- Sends instructions through private messages.
- The player places the blocks manually.
- The NPC checks whether each step is completed.
- Save tutorial progress.

### 12. Space Basketball Collectible
- Original space-basketball themed appearance.
- Provide a Book and Memes collectible.
- Allow them to be combined in a configurable collection interface.
- Leave the final combination effect configurable.

## GUI SYSTEM

Create a polished custom inventory GUI.

Requirements:
- Category navigation.
- Item previews.
- Item descriptions.
- Recipe display.
- Discovery information.
- Cooldown information.
- Pagination.
- Back button.
- Close button.
- No accidental item movement.
- Configurable inventory titles and colors.

## ADMIN COMMANDS

/golamc
/golamc give  
/golamc reload
/golamc debug
/golamc iteminfo 
/golamc recipe 
/golamc discovery set 
/golamc discovery remove 

Add appropriate permissions using LuckPerms-compatible permission nodes.

## CONFIGURATION

Create separate YAML configuration files:

config.yml
items.yml
recipes.yml
gui.yml
cooldowns.yml
discoveries.yml
afk.yml
tutorials.yml
messages.yml

All item IDs, names, lore, recipes, cooldowns and discovery chances must be configurable.

## ITEMSADDER INTEGRATION

Create an ItemsAdder content pack using namespace:

golamc

Organize textures into separate directories.

Every custom item must have:
- Its own PNG texture.
- Stable namespaced identifier.
- Correct model definition.
- Correct item model mapping for Minecraft 1.21.11.

Generate installation instructions and explain how to run /iazip.

Use the current official ItemsAdder Java API. Wait for ItemsAdderLoadDataEvent before accessing custom item registries.

## DATA STORAGE

Use SQLite for:
- Player discoveries.
- Tutorial progress.
- AFK cage ownership.
- Persistent item-related data.
- Cooldown timestamps.

Data must survive server restarts.

## IMPORTANT DEVELOPMENT RULES

- Do not generate pseudocode.
- Do not leave unfinished classes.
- Do not use obsolete Minecraft item model syntax.
- Do not assume an API method exists without checking its documentation.
- Handle missing dependencies.
- Add error handling.
- Avoid memory leaks and unnecessary repeating tasks.
- Use configurable messages in Polish.
- Include installation and compilation instructions.
- Compile the entire project and resolve all compilation errors.
- Include a complete project structure.
- Generate the final GolaMC.jar.
- Do not claim the plugin is finished unless it successfully compiles.

Deliver the complete project, all source files, configuration files, ItemsAdder content and build instructions.
Kodari AI
KodariNov 4 at 4:27 pm 6
GolaMC
GolaMC is a comprehensive custom items plugin for Paper 1.21.11 that adds 12 unique non-combat items including Writer's Apple, linked Portals, Devil and Angel Crystals, Spark and Droplet Candies, Thorn event items, Portable Bridge Builder, AFK Cage, Guide NPC tutorials, and Space Basketball collectibles. Features a polished category-based GUI system with pagination, item previews, recipes, cooldowns, and discovery info. Integrates with ItemsAdder for custom textures/models, plus optional FancyNpcs, DecentHolograms, WorldGuard, Vault, and PlaceholderAPI. Uses SQLite for persistent player data, cooldowns, discoveries, and tutorial progress. Includes full admin commands, 10 configurable YAML files, Polish messages, and ItemsAdder content pack.
  1. Set up the Maven/Paper base, configuration, SQLite persistence, item identity, and ItemsAdder integration.

  2. Add the /golamc command, admin actions, categorized GUI, recipes, and pagination.

  3. Implement item behaviors, portals, protection checks, discoveries, and persistent cooldowns.

  4. Add tutorial/AFK and optional-plugin integrations, then the remaining configs and installation guidance.

[Generation stopped]

sonicers06-ui
📎 1 file 18,262 chars
📄
pasted-code-1793809765136.txt
txt 625 lines
▶
# GOLAMC – COMPLETE CUSTOM ITEMS, BOSSES AND RPG SYSTEM

You are an autonomous senior Minecraft plugin developer. Your task is to create a complete, working Minecraft plugin named GolaMC for my Minecraft server.

IMPORTANT: YOU MUST CREATE THE ENTIRE PROJECT YOURSELF. I do not want to write code, create Java files manually, or complete missing features.

## 1. TECHNICAL REQUIREMENTS

Server:
- Minecraft Paper 1.21.11
- Java 21
- Plugin name: GolaMC
- Main package: pl.golamc
- Build system: Gradle ONLY.
- Use Gradle Wrapper.
- DO NOT use Maven.
- DO NOT create pom.xml.
- Create gradlew.bat and the complete Gradle Wrapper files.
- Output a compiled GolaMC.jar.
- Use the official Paper API.
- Use PersistentDataContainer for custom item identifiers.
- Use SQLite for persistent player data.
- Support ItemsAdder integration for textures, models and resource packs.

The project must be independently buildable on Windows.

## 2. FINAL DELIVERABLES

Create:

1. Complete Java source code.
2. Complete Gradle project.
3. Complete plugin.yml.
4. All configuration files.
5. All custom item definitions.
6. Original PNG textures.
7. Custom item models.
8. ItemsAdder resource pack.
9. Boss configurations.
10. Custom recipes.
11. Complete installation guide in Polish.
12. Compiled GolaMC.jar.

Put the final JAR here:

dist/GolaMC.jar

The plugin must not contain unfinished classes, pseudocode, empty methods or fake implementations.

## 3. MAIN COMMAND AND GUI

Create:

/golamc

This command opens a custom inventory GUI.

Categories:

- Candy
- Magic
- Portals
- Utility Items
- Traps
- Event Items
- Boss Items
- Collectibles
- Special Items

Every item must have:
- A unique identifier.
- A custom name.
- Custom lore.
- Custom texture.
- Optional 3D model.
- Custom recipe.
- Custom acquisition method.
- Custom cooldown.
- Configurable behavior.

Clicking an item should display:
- Description.
- Recipe.
- Acquisition method.
- Cooldown.
- Usage instructions.

Players must not be able to exploit the GUI or obtain unlimited restricted items.

## 4. CUSTOM ITEMS

Implement the following items.

### ATOMIC CANDY

- Original colorful candy texture.
- On consumption, applies Poison to nearby opponents within 3 blocks for 10 seconds.
- The user receives Slowness and Strength II for 20 seconds.
- Configurable effects and radius.

### WRITER'S APPLE

- Custom golden apple texture with a feather and handwritten text.
- Consuming it gives the player a special writable book.
- The player enters an item name.
- The item must be selected from a configurable whitelist.
- Example: iron.
- Award the selected item.
- Cooldown: 50 seconds.
- Include a configurable TNT entry, with the exact behavior and 10-second activation period adjustable in configuration.
- Prevent arbitrary command execution.

### PORTAL

- Custom texture showing two connected glowing spheres.
- Creates a linked pair of portal locations.
- Players can travel between the two locations.
- Add activation effects and particles.
- Configurable five-second activation period.
- Save portal locations.
- Prevent teleportation into protected regions and unsafe locations.

### DEVIL CRYSTAL

- Original dark red and purple crystal texture.
- Discoverable inside naturally generated amethyst geodes.
- Discovery probability: 25%.
- Record player discoveries.
- Crystal can be used in a crafting recipe surrounded by sticks.

#### DEVIL CAMPFIRE

- Created from Devil Crystal and sticks.
- When activated, creates a red magical cloud.
- The cloud attracts nearby players downward.
- Maximum vertical attraction range: 30 blocks.
- Integrate with land protection and optional raid permissions.

### ANGEL CRYSTAL

- Original white and cyan glowing texture.
- Discoverable on a special generated mountain.
- Create a small hidden room near cloud level.
- Put a cross and the Angel Crystal inside.
- The room must be discoverable through exploration.

#### ANGEL CAMPFIRE

Created using Angel Crystal and sticks.

It has two uses:

FIRST USE:
- Sacrifice a mob.
- Randomly select a reward.
- Possible rewards include diamonds, iron and other configurable items.
- Configure reward probabilities.

SECOND USE:
- Activate the angelic effect.
- Launch the player high into the air.

### SPARK CANDY

- Original orange and yellow candy texture.
- Reusable item.
- Summons a small animated magical spark.
- The spark searches for nearby lava.
- If the user is inside lava, convert surrounding lava into obsidian to rescue the player.
- Add visual and sound effects.
- Protect player-owned terrain.

### DROPLET CANDY

- Original blue droplet candy texture.
- Reusable item.
- Summons a small water droplet.
- Absorbs lava and lowers its level by one.
- Make the affected area configurable.
- Support an optional 3x3 area effect.
- Prevent destruction of protected structures.

### BALLOON BOMB

- Original colorful magical bubble candy texture.
- After consumption, creates a large enclosed sphere around the activation area.
- Duration: 3 minutes.
- Players inside receive Slowness.
- The activating player can heal and prepare inside.
- Escaping from inside should be difficult.
- Players outside can destroy the sphere through a configurable breaking mechanic.
- The sphere must use protected temporary blocks or a reversible structure system.
- It must never permanently destroy existing terrain.
- Save and restore the original blocks.

### THORNS

- Event item available to ordinary players.
- Creates ten visual layers of magical thorns around the activation area.
- Thorn structures appear dynamically as the player moves.
- One special harmless thorn must be hidden among the dangerous-looking thorns.
- Breaking the special thorn rewards the player with a Thorn Berry.
- Make the layout and visual effects configurable.

### THORN BERRY

- Original purple magical berry texture.
- Heals exactly 50% of the player's missing health.

Formula:

healing = (maximum health - current health) / 2

Do not exceed maximum health.

Support custom maximum-health attributes.

### THUNDER TRAP

- Original item texture consisting of four glowing torches arranged in an X.
- Player places and arms the trap.
- It detects an activated Balloon Bomb.
- Summons a lightning effect.
- Can destroy the Balloon Bomb.
- Include a separate configurable block-interaction mode.
- Prevent unwanted fire and permanent terrain destruction.

### MOLE MOUND

- Custom dirt mound and mole model.
- Two mounds are placed 5 blocks apart.
- Create a detection zone between them.
- Detect players entering the zone, including flying players.
- A mole emerges.
- The mole knocks the detected player back by 3 blocks.
- It performs its special attack.
- Damage is configurable; proposed default is 50% of maximum health.
- Protect nonparticipating players in land raid systems.

### AFK CAGE

- Rare special item.
- Right-click selects the first corner.
- Left-click selects the opposite corner.
- Displays a hologram with the cage owner's name.
- Integrate with DecentHolograms.
- Support AFK reward pools.
- Keep the two-life feature configurable because its exact rules are not fully defined.
- Save cage ownership and configuration.

### ZIPLINE GUN

- Custom 3D model.
- Funny double-hook gun appearance.
- First hook attaches forward.
- Second hook attaches backward.
- Each hook has a maximum range of 50 blocks.
- The line must be straight.
- Both hooks search for valid surfaces.
- The player attaches to the line and travels along it.
- Add visual rope effects and sound.
- Prevent invalid attachment points.

### PORTABLE BRIDGE BUILDER

- Original custom 3D model.
- Player does not manually select anchor locations.
- Automatically searches for four suitable anchor blocks.
- All anchors must be within 50 blocks.
- Creates a bridge between valid anchors.
- Player can select bridge materials, including slime blocks.
- Support temporary bridges.
- Support safe use while falling.
- Do not overwrite protected structures.
- Add special configurable interaction rules with Balloon Bombs:
  - Within 20 blocks of the bomb center, do not rescue the user through the bridge.
  - Between 20 and 60 blocks, the bridge follows the user's specified opponent-rescue rule.
- Keep these distance rules configurable.

### PORTABLE AQUARIUM

- Original 3D glass aquarium item model with water and fish.
- Reward associated with Bandelabandy.
- Activating it creates a magical aquarium effect.
- When a player hits a target, a water stream pushes that target in the selected direction.
- Support left, right, forward and backward directional pushing.
- Allow interaction with boss movement mechanics.
- Create particle and sound effects.

### ECHO ORB

- Original glowing magical sphere texture.
- Create a system that records a successful initial attack's enchantment effects and related data.
- When the player performs another hit within 10 seconds, replay the stored enchantment effects.
- The replay can activate automatically even if the player no longer holds the orb or the original sword.
- Make the recorded effects and activation rules configurable.
- Save the required state safely and clear expired recordings.
- Do not invent additional effects beyond the configured system.

### SPACE BASKETBALL COLLECTIBLE

- Original cosmic basketball-themed item design.
- Inspired by space basketball fantasy.
- Do not copy official film images, logos or artwork.
- Include a Book collectible and a Memes collectible.
- Allow the two collectibles to be combined.
- Keep the resulting ability configurable because its exact effect has not yet been specified.

## 5. GUIDE NPC

Create a Guide NPC system.

Use FancyNpcs integration if available.

Players purchase a Guide Ticket at spawn.

Using it opens a tutorial GUI.

Available tutorial examples:

- Sugar cane farm.
- Chorus farm.
- Iron farm.
- Food farm.

Behavior:
1. NPC appears beside the player.
2. NPC walks to the next construction position.
3. NPC shows the required block.
4. NPC sends an instruction through a private message.
5. Player places the block manually.
6. NPC checks whether the correct block has been placed.
7. NPC proceeds to the next step.
8. Save tutorial progress.

Use predefined build layouts and configuration files. Do not require external Internet access during gameplay.

## 6. CUSTOM BOSSES

Create the following bosses.

### WASZKA

- Rare flying green swamp boss.
- Primarily spawns in swamp biomes.
- Very rarely spawns in other biomes.
- Has wings and a distinctive eye mechanic.
- When a player looks directly into its eyes, Waszka remembers that player and focuses on them.
- Include special target-selection behavior.
- Add interaction with Guma Bąblowa, which can trap and slow the boss.
- Custom model, textures, animations, sounds and loot.

### OGR

- Forest boss resembling a magical druid.
- Uses a unique weapon called Łuk Sierpowy.
- Create an original crescent-shaped 3D bow model.
- Has a special attack system.
- At 50% health, changes phase.
- In the second phase, fights using twelve arms.
- Add custom animations, attacks and sounds.
- Support interactions with Portable Aquarium.

### THE ONE OF CHAMBERS

- Mysterious boss with a small special cave.
- Has relatively low health but difficult mechanics.
- Holds a special orb.
- Attacks players with the orb.
- The orb stores information about player health and damage inflicted by the boss.
- Boss can enter cave walls and disappear for 5 seconds.
- During disappearance, the player remains under attack.
- Boss can return underneath the player.
- Gold apples are useful for surviving the fight.
- Players can use configurable bombs to break parts of the cave.
- Thunder Trap can be used as a special trap.
- The boss must have original animations, textures and sounds.

### BANDELABANDY – KING OF THE SEAS

Create a large aquatic boss.

#### Ticket crafting

- Player must defeat an Elder Guardian four times.
- Track the number of kills.
- Crafting center: paper.
- Surrounding slots: four special Elder Guardian-related items.
- Four corners: beacon-related fragments.
- Reward: Bandelabandy Ticket.

Keep the exact names of the four Guardian ingredients configurable because they need final confirmation.

#### Portal

- The ticket is consumed when activating the special portal.
- Portal transports players to the boss arena.
- Save arena locations.
- Support multiplayer boss sessions.

#### Arena

- Large glass chamber.
- Players stand on an elevated platform above the water.
- Bandelabandy remains underwater.
- Its head stays submerged.
- Fish swim outside and around the glass chamber.

#### Boss fight

1. Bandelabandy opens its mouth.
2. Glass walls begin to crack.
3. Powerful water streams emerge.
4. Streams push players away.
5. Players must dodge the water.
6. Players place glass blocks in suitable positions to reflect the water toward the boss.
7. Boss receives damage when the water is correctly reflected.

Create the entire encounter as a staged boss fight with animations and configurable stages.

#### Reward

Portable Aquarium.

## 7. LAND RAID INTEGRATION

The server has a Survival plot system.

Players can voluntarily enable participation in plot raids.

Create a general protection integration:

- Only raid participants can be affected by raid-specific mechanics.
- Check plot ownership and permissions.
- Prevent custom items from bypassing plot protection.
- Protect nonparticipating players.
- Prevent unauthorized block modification.
- Keep all rules configurable.

## 8. CUSTOM ITEMS AND RECIPES

All items must have:
- Unique namespaced IDs.
- Unique original PNG textures.
- Custom models where appropriate.
- Custom lore in Polish.
- Custom crafting recipes.
- Custom sounds.
- Particles and animations.
- Configurable cooldowns.
- Persistent data identification.

Create recipes in separate YAML files.

Never identify an item by its display name alone.

## 9. ITEMSADDER RESOURCE PACK

Create a complete ItemsAdder content pack using namespace:

golamc

Organize files into:

- textures/item
- models/item
- textures/entity
- models/entity
- sounds

Generate original pixel-art textures.

Generate item models for custom items.

Use the correct modern Minecraft 1.21.11 item model format.

Prepare the resource pack so the administrator can generate it using ItemsAdder.

Create a README explaining installation and resource pack generation.

## 10. OPTIONAL INTEGRATIONS

Support these plugins:

- ItemsAdder
- MythicMobs
- FancyNpcs
- DecentHolograms
- WorldGuard
- WorldEdit
- Vault
- LuckPerms
- PlaceholderAPI
- Multiverse-Core

Use optional integration where possible.

The plugin must not crash if an optional integration is missing.

## 11. CONFIGURATION FILES

Create:

config.yml
items.yml
recipes.yml
bosses.yml
gui.yml
cooldowns.yml
discoveries.yml
afk.yml
tutorials.yml
portals.yml
traps.yml
messages.yml
database.yml

All messages must be in Polish.

Every major mechanic must be configurable.

## 12. ADMIN COMMANDS

/golamc
/golamc give  
/golamc reload
/golamc debug
/golamc iteminfo 
/golamc recipe 
/golamc boss spawn 
/golamc boss remove
/golamc boss info
/golamc discovery set 
/golamc discovery remove 

Add permission nodes compatible with LuckPerms.

## 13. CODE QUALITY

- Use modular Java architecture.
- Use clean event listeners.
- Use proper task cancellation.
- Prevent memory leaks.
- Avoid unnecessary repeating tasks.
- Use asynchronous SQLite operations where appropriate.
- Keep Bukkit world modifications on the main server thread.
- Validate every item interaction.
- Validate player permissions.
- Protect against item duplication.
- Handle server restarts.
- Save persistent player data.
- Add useful debug logs.
- Avoid unsupported NMS unless absolutely necessary.
- Verify all APIs before using them.
- Use proper error handling.

For any mechanic whose exact behavior is not completely specified:
- Do not silently invent complex mechanics.
- Implement a configurable default only when safe.
- Document the unresolved behavior in README.
- Keep the affected feature modular so it can be completed later.

## 14. BUILDING – NO MAVEN

This project MUST use Gradle, not Maven.

Create:
- build.gradle
- settings.gradle
- gradlew
- gradlew.bat
- gradle/wrapper/gradle-wrapper.properties
- gradle/wrapper/gradle-wrapper.jar

Do not create pom.xml.

The build command on Windows must be:

.\gradlew.bat clean build

The final compiled plugin must be copied to:

dist/GolaMC.jar

## 15. FINAL TESTING

Before declaring the project finished:

1. Inspect the entire source code.
2. Compile the project.
3. Fix all compilation errors.
4. Verify plugin.yml.
5. Verify all configuration files.
6. Verify resource pack file paths.
7. Verify custom item identifiers.
8. Verify all commands are registered.
9. Verify all listeners are registered.
10. Verify database initialization.
11. Verify optional dependencies.
12. Test the plugin on Paper 1.21.11 whenever an available server test environment permits.

Do not claim successful in-game testing if you only performed compilation.

## 16. FINAL DELIVERY

I want:

- The complete GolaMC source project.
- All textures and models.
- Complete ItemsAdder content pack.
- All YAML configurations.
- Complete documentation in Polish.
- Final GolaMC.jar in the dist folder.

Do not stop after creating the project structure.

Do not return only code snippets.

Do not ask me to create missing files.

Do not leave unfinished placeholder methods.

Create the complete project and compile it yourself.

The primary goal is a working GolaMC.jar for my Paper 1.21.11 server.
Kodari AI
KodariNov 4 at 4:30 pm 1
  1. Check the existing project scaffold and build setup.

  2. Implement a working plugin core, then add requested mechanics in focused batches.

  3. Add Polish configuration/documentation and verify references; call out anything blocked by unavailable asset-generation tools.

Custom textures, models, and animations require Kodari Studio, which is currently disabled for this project. Enable it via Settings → Generation, or at https://kodari.ai/settings?tab=features.

[Generation stopped]

sonicers06-ui
📎 1 file 18,262 chars
📄
pasted-code-1793809839682.txt
txt 625 lines
▶
# GOLAMC – COMPLETE CUSTOM ITEMS, BOSSES AND RPG SYSTEM

You are an autonomous senior Minecraft plugin developer. Your task is to create a complete, working Minecraft plugin named GolaMC for my Minecraft server.

IMPORTANT: YOU MUST CREATE THE ENTIRE PROJECT YOURSELF. I do not want to write code, create Java files manually, or complete missing features.

## 1. TECHNICAL REQUIREMENTS

Server:
- Minecraft Paper 1.21.11
- Java 21
- Plugin name: GolaMC
- Main package: pl.golamc
- Build system: Gradle ONLY.
- Use Gradle Wrapper.
- DO NOT use Maven.
- DO NOT create pom.xml.
- Create gradlew.bat and the complete Gradle Wrapper files.
- Output a compiled GolaMC.jar.
- Use the official Paper API.
- Use PersistentDataContainer for custom item identifiers.
- Use SQLite for persistent player data.
- Support ItemsAdder integration for textures, models and resource packs.

The project must be independently buildable on Windows.

## 2. FINAL DELIVERABLES

Create:

1. Complete Java source code.
2. Complete Gradle project.
3. Complete plugin.yml.
4. All configuration files.
5. All custom item definitions.
6. Original PNG textures.
7. Custom item models.
8. ItemsAdder resource pack.
9. Boss configurations.
10. Custom recipes.
11. Complete installation guide in Polish.
12. Compiled GolaMC.jar.

Put the final JAR here:

dist/GolaMC.jar

The plugin must not contain unfinished classes, pseudocode, empty methods or fake implementations.

## 3. MAIN COMMAND AND GUI

Create:

/golamc

This command opens a custom inventory GUI.

Categories:

- Candy
- Magic
- Portals
- Utility Items
- Traps
- Event Items
- Boss Items
- Collectibles
- Special Items

Every item must have:
- A unique identifier.
- A custom name.
- Custom lore.
- Custom texture.
- Optional 3D model.
- Custom recipe.
- Custom acquisition method.
- Custom cooldown.
- Configurable behavior.

Clicking an item should display:
- Description.
- Recipe.
- Acquisition method.
- Cooldown.
- Usage instructions.

Players must not be able to exploit the GUI or obtain unlimited restricted items.

## 4. CUSTOM ITEMS

Implement the following items.

### ATOMIC CANDY

- Original colorful candy texture.
- On consumption, applies Poison to nearby opponents within 3 blocks for 10 seconds.
- The user receives Slowness and Strength II for 20 seconds.
- Configurable effects and radius.

### WRITER'S APPLE

- Custom golden apple texture with a feather and handwritten text.
- Consuming it gives the player a special writable book.
- The player enters an item name.
- The item must be selected from a configurable whitelist.
- Example: iron.
- Award the selected item.
- Cooldown: 50 seconds.
- Include a configurable TNT entry, with the exact behavior and 10-second activation period adjustable in configuration.
- Prevent arbitrary command execution.

### PORTAL

- Custom texture showing two connected glowing spheres.
- Creates a linked pair of portal locations.
- Players can travel between the two locations.
- Add activation effects and particles.
- Configurable five-second activation period.
- Save portal locations.
- Prevent teleportation into protected regions and unsafe locations.

### DEVIL CRYSTAL

- Original dark red and purple crystal texture.
- Discoverable inside naturally generated amethyst geodes.
- Discovery probability: 25%.
- Record player discoveries.
- Crystal can be used in a crafting recipe surrounded by sticks.

#### DEVIL CAMPFIRE

- Created from Devil Crystal and sticks.
- When activated, creates a red magical cloud.
- The cloud attracts nearby players downward.
- Maximum vertical attraction range: 30 blocks.
- Integrate with land protection and optional raid permissions.

### ANGEL CRYSTAL

- Original white and cyan glowing texture.
- Discoverable on a special generated mountain.
- Create a small hidden room near cloud level.
- Put a cross and the Angel Crystal inside.
- The room must be discoverable through exploration.

#### ANGEL CAMPFIRE

Created using Angel Crystal and sticks.

It has two uses:

FIRST USE:
- Sacrifice a mob.
- Randomly select a reward.
- Possible rewards include diamonds, iron and other configurable items.
- Configure reward probabilities.

SECOND USE:
- Activate the angelic effect.
- Launch the player high into the air.

### SPARK CANDY

- Original orange and yellow candy texture.
- Reusable item.
- Summons a small animated magical spark.
- The spark searches for nearby lava.
- If the user is inside lava, convert surrounding lava into obsidian to rescue the player.
- Add visual and sound effects.
- Protect player-owned terrain.

### DROPLET CANDY

- Original blue droplet candy texture.
- Reusable item.
- Summons a small water droplet.
- Absorbs lava and lowers its level by one.
- Make the affected area configurable.
- Support an optional 3x3 area effect.
- Prevent destruction of protected structures.

### BALLOON BOMB

- Original colorful magical bubble candy texture.
- After consumption, creates a large enclosed sphere around the activation area.
- Duration: 3 minutes.
- Players inside receive Slowness.
- The activating player can heal and prepare inside.
- Escaping from inside should be difficult.
- Players outside can destroy the sphere through a configurable breaking mechanic.
- The sphere must use protected temporary blocks or a reversible structure system.
- It must never permanently destroy existing terrain.
- Save and restore the original blocks.

### THORNS

- Event item available to ordinary players.
- Creates ten visual layers of magical thorns around the activation area.
- Thorn structures appear dynamically as the player moves.
- One special harmless thorn must be hidden among the dangerous-looking thorns.
- Breaking the special thorn rewards the player with a Thorn Berry.
- Make the layout and visual effects configurable.

### THORN BERRY

- Original purple magical berry texture.
- Heals exactly 50% of the player's missing health.

Formula:

healing = (maximum health - current health) / 2

Do not exceed maximum health.

Support custom maximum-health attributes.

### THUNDER TRAP

- Original item texture consisting of four glowing torches arranged in an X.
- Player places and arms the trap.
- It detects an activated Balloon Bomb.
- Summons a lightning effect.
- Can destroy the Balloon Bomb.
- Include a separate configurable block-interaction mode.
- Prevent unwanted fire and permanent terrain destruction.

### MOLE MOUND

- Custom dirt mound and mole model.
- Two mounds are placed 5 blocks apart.
- Create a detection zone between them.
- Detect players entering the zone, including flying players.
- A mole emerges.
- The mole knocks the detected player back by 3 blocks.
- It performs its special attack.
- Damage is configurable; proposed default is 50% of maximum health.
- Protect nonparticipating players in land raid systems.

### AFK CAGE

- Rare special item.
- Right-click selects the first corner.
- Left-click selects the opposite corner.
- Displays a hologram with the cage owner's name.
- Integrate with DecentHolograms.
- Support AFK reward pools.
- Keep the two-life feature configurable because its exact rules are not fully defined.
- Save cage ownership and configuration.

### ZIPLINE GUN

- Custom 3D model.
- Funny double-hook gun appearance.
- First hook attaches forward.
- Second hook attaches backward.
- Each hook has a maximum range of 50 blocks.
- The line must be straight.
- Both hooks search for valid surfaces.
- The player attaches to the line and travels along it.
- Add visual rope effects and sound.
- Prevent invalid attachment points.

### PORTABLE BRIDGE BUILDER

- Original custom 3D model.
- Player does not manually select anchor locations.
- Automatically searches for four suitable anchor blocks.
- All anchors must be within 50 blocks.
- Creates a bridge between valid anchors.
- Player can select bridge materials, including slime blocks.
- Support temporary bridges.
- Support safe use while falling.
- Do not overwrite protected structures.
- Add special configurable interaction rules with Balloon Bombs:
  - Within 20 blocks of the bomb center, do not rescue the user through the bridge.
  - Between 20 and 60 blocks, the bridge follows the user's specified opponent-rescue rule.
- Keep these distance rules configurable.

### PORTABLE AQUARIUM

- Original 3D glass aquarium item model with water and fish.
- Reward associated with Bandelabandy.
- Activating it creates a magical aquarium effect.
- When a player hits a target, a water stream pushes that target in the selected direction.
- Support left, right, forward and backward directional pushing.
- Allow interaction with boss movement mechanics.
- Create particle and sound effects.

### ECHO ORB

- Original glowing magical sphere texture.
- Create a system that records a successful initial attack's enchantment effects and related data.
- When the player performs another hit within 10 seconds, replay the stored enchantment effects.
- The replay can activate automatically even if the player no longer holds the orb or the original sword.
- Make the recorded effects and activation rules configurable.
- Save the required state safely and clear expired recordings.
- Do not invent additional effects beyond the configured system.

### SPACE BASKETBALL COLLECTIBLE

- Original cosmic basketball-themed item design.
- Inspired by space basketball fantasy.
- Do not copy official film images, logos or artwork.
- Include a Book collectible and a Memes collectible.
- Allow the two collectibles to be combined.
- Keep the resulting ability configurable because its exact effect has not yet been specified.

## 5. GUIDE NPC

Create a Guide NPC system.

Use FancyNpcs integration if available.

Players purchase a Guide Ticket at spawn.

Using it opens a tutorial GUI.

Available tutorial examples:

- Sugar cane farm.
- Chorus farm.
- Iron farm.
- Food farm.

Behavior:
1. NPC appears beside the player.
2. NPC walks to the next construction position.
3. NPC shows the required block.
4. NPC sends an instruction through a private message.
5. Player places the block manually.
6. NPC checks whether the correct block has been placed.
7. NPC proceeds to the next step.
8. Save tutorial progress.

Use predefined build layouts and configuration files. Do not require external Internet access during gameplay.

## 6. CUSTOM BOSSES

Create the following bosses.

### WASZKA

- Rare flying green swamp boss.
- Primarily spawns in swamp biomes.
- Very rarely spawns in other biomes.
- Has wings and a distinctive eye mechanic.
- When a player looks directly into its eyes, Waszka remembers that player and focuses on them.
- Include special target-selection behavior.
- Add interaction with Guma Bąblowa, which can trap and slow the boss.
- Custom model, textures, animations, sounds and loot.

### OGR

- Forest boss resembling a magical druid.
- Uses a unique weapon called Łuk Sierpowy.
- Create an original crescent-shaped 3D bow model.
- Has a special attack system.
- At 50% health, changes phase.
- In the second phase, fights using twelve arms.
- Add custom animations, attacks and sounds.
- Support interactions with Portable Aquarium.

### THE ONE OF CHAMBERS

- Mysterious boss with a small special cave.
- Has relatively low health but difficult mechanics.
- Holds a special orb.
- Attacks players with the orb.
- The orb stores information about player health and damage inflicted by the boss.
- Boss can enter cave walls and disappear for 5 seconds.
- During disappearance, the player remains under attack.
- Boss can return underneath the player.
- Gold apples are useful for surviving the fight.
- Players can use configurable bombs to break parts of the cave.
- Thunder Trap can be used as a special trap.
- The boss must have original animations, textures and sounds.

### BANDELABANDY – KING OF THE SEAS

Create a large aquatic boss.

#### Ticket crafting

- Player must defeat an Elder Guardian four times.
- Track the number of kills.
- Crafting center: paper.
- Surrounding slots: four special Elder Guardian-related items.
- Four corners: beacon-related fragments.
- Reward: Bandelabandy Ticket.

Keep the exact names of the four Guardian ingredients configurable because they need final confirmation.

#### Portal

- The ticket is consumed when activating the special portal.
- Portal transports players to the boss arena.
- Save arena locations.
- Support multiplayer boss sessions.

#### Arena

- Large glass chamber.
- Players stand on an elevated platform above the water.
- Bandelabandy remains underwater.
- Its head stays submerged.
- Fish swim outside and around the glass chamber.

#### Boss fight

1. Bandelabandy opens its mouth.
2. Glass walls begin to crack.
3. Powerful water streams emerge.
4. Streams push players away.
5. Players must dodge the water.
6. Players place glass blocks in suitable positions to reflect the water toward the boss.
7. Boss receives damage when the water is correctly reflected.

Create the entire encounter as a staged boss fight with animations and configurable stages.

#### Reward

Portable Aquarium.

## 7. LAND RAID INTEGRATION

The server has a Survival plot system.

Players can voluntarily enable participation in plot raids.

Create a general protection integration:

- Only raid participants can be affected by raid-specific mechanics.
- Check plot ownership and permissions.
- Prevent custom items from bypassing plot protection.
- Protect nonparticipating players.
- Prevent unauthorized block modification.
- Keep all rules configurable.

## 8. CUSTOM ITEMS AND RECIPES

All items must have:
- Unique namespaced IDs.
- Unique original PNG textures.
- Custom models where appropriate.
- Custom lore in Polish.
- Custom crafting recipes.
- Custom sounds.
- Particles and animations.
- Configurable cooldowns.
- Persistent data identification.

Create recipes in separate YAML files.

Never identify an item by its display name alone.

## 9. ITEMSADDER RESOURCE PACK

Create a complete ItemsAdder content pack using namespace:

golamc

Organize files into:

- textures/item
- models/item
- textures/entity
- models/entity
- sounds

Generate original pixel-art textures.

Generate item models for custom items.

Use the correct modern Minecraft 1.21.11 item model format.

Prepare the resource pack so the administrator can generate it using ItemsAdder.

Create a README explaining installation and resource pack generation.

## 10. OPTIONAL INTEGRATIONS

Support these plugins:

- ItemsAdder
- MythicMobs
- FancyNpcs
- DecentHolograms
- WorldGuard
- WorldEdit
- Vault
- LuckPerms
- PlaceholderAPI
- Multiverse-Core

Use optional integration where possible.

The plugin must not crash if an optional integration is missing.

## 11. CONFIGURATION FILES

Create:

config.yml
items.yml
recipes.yml
bosses.yml
gui.yml
cooldowns.yml
discoveries.yml
afk.yml
tutorials.yml
portals.yml
traps.yml
messages.yml
database.yml

All messages must be in Polish.

Every major mechanic must be configurable.

## 12. ADMIN COMMANDS

/golamc
/golamc give  
/golamc reload
/golamc debug
/golamc iteminfo 
/golamc recipe 
/golamc boss spawn 
/golamc boss remove
/golamc boss info
/golamc discovery set 
/golamc discovery remove 

Add permission nodes compatible with LuckPerms.

## 13. CODE QUALITY

- Use modular Java architecture.
- Use clean event listeners.
- Use proper task cancellation.
- Prevent memory leaks.
- Avoid unnecessary repeating tasks.
- Use asynchronous SQLite operations where appropriate.
- Keep Bukkit world modifications on the main server thread.
- Validate every item interaction.
- Validate player permissions.
- Protect against item duplication.
- Handle server restarts.
- Save persistent player data.
- Add useful debug logs.
- Avoid unsupported NMS unless absolutely necessary.
- Verify all APIs before using them.
- Use proper error handling.

For any mechanic whose exact behavior is not completely specified:
- Do not silently invent complex mechanics.
- Implement a configurable default only when safe.
- Document the unresolved behavior in README.
- Keep the affected feature modular so it can be completed later.

## 14. BUILDING – NO MAVEN

This project MUST use Gradle, not Maven.

Create:
- build.gradle
- settings.gradle
- gradlew
- gradlew.bat
- gradle/wrapper/gradle-wrapper.properties
- gradle/wrapper/gradle-wrapper.jar

Do not create pom.xml.

The build command on Windows must be:

.\gradlew.bat clean build

The final compiled plugin must be copied to:

dist/GolaMC.jar

## 15. FINAL TESTING

Before declaring the project finished:

1. Inspect the entire source code.
2. Compile the project.
3. Fix all compilation errors.
4. Verify plugin.yml.
5. Verify all configuration files.
6. Verify resource pack file paths.
7. Verify custom item identifiers.
8. Verify all commands are registered.
9. Verify all listeners are registered.
10. Verify database initialization.
11. Verify optional dependencies.
12. Test the plugin on Paper 1.21.11 whenever an available server test environment permits.

Do not claim successful in-game testing if you only performed compilation.

## 16. FINAL DELIVERY

I want:

- The complete GolaMC source project.
- All textures and models.
- Complete ItemsAdder content pack.
- All YAML configurations.
- Complete documentation in Polish.
- Final GolaMC.jar in the dist folder.

Do not stop after creating the project structure.

Do not return only code snippets.

Do not ask me to create missing files.

Do not leave unfinished placeholder methods.

Create the complete project and compile it yourself.

The primary goal is a working GolaMC.jar for my Paper 1.21.11 server.
Kodari AI
KodariNov 4 at 5:36 pm 89
  1. Build the plugin foundation: Gradle setup, Paper entry point, commands, GUI, configuration, and SQLite persistence.

  2. Add persistent custom items, recipes, and their configurable behaviors.

  3. Implement portals, discoveries, traps, and protection-aware world mechanics.

  4. Add configurable bosses, rewards, and optional integrations.

  5. Add tutorials, ItemsAdder assets, and Polish installation documentation.

A substantial GolaMC project is in place, including the Paper plugin foundation, Polish configuration files, SQLite persistence, the inventory GUI, custom-item IDs and recipes, raid participation, WorldGuard checks, world mechanics, boss commands, tutorials, and AFK cages.

It is not yet the complete delivery you requested. Kodari Studio ran out of asset credits after generating six item textures. The ItemsAdder pack currently includes those six; other items use vanilla-looking fallbacks. No 3D models or animations were generated, and I can’t confirm a compiled JAR or in-game test result. The README files document these limits and the behaviors that still need server-owner decisions.

The project’s Gradle build is configured to copy a successful build to dist/GolaMC.jar, but the Gradle Wrapper files and JAR have not been produced here. To build and download the JAR in Kodari:

  1. Click Compile in the desktop top bar, or on phone tap ⋮ → Compile Project.

  2. Click Compile in the window that opens.

  3. When it succeeds, click Download on that build, or the Download GolaMC.jar button in chat.

Kodari can make mistakes. Review important code before using.
Files
itemsadder
src
build.gradle
manifest.kod
README.md
settings.gradle
Code
48 7,404
src/main/java/pl/golamc/GolaMCPlugin.java
package pl.golamc;

import org.bukkit.ChatColor;
import org.bukkit.plugin.java.JavaPlugin;
import pl.golamc.command.GolaCommand;
import pl.golamc.boss.BossManager;
import pl.golamc.afk.AfkCageManager;
import pl.golamc.config.ConfigManager;
import pl.golamc.database.DatabaseManager;
import pl.golamc.gui.GUIListener;
import pl.golamc.gui.GUIManager;
import pl.golamc.gui.GolaMenus;
import pl.golamc.item.CustomItemManager;
import pl.golamc.listener.PlayerDataListener;
import pl.golamc.protection.ProtectionManager;
import pl.golamc.tutorial.TutorialManager;
import pl.golamc.world.DiscoveryManager;
import pl.golamc.world.PortalManager;
import pl.golamc.world.TemporaryBlockManager;
import pl.golamc.world.UtilityMechanicsManager;
import pl.golamc.world.WorldMechanicsManager;

import java.sql.SQLException;
import java.util.Objects;

public final class GolaMCPlugin extends JavaPlugin {
    private ConfigManager configManager;
    private DatabaseManager databaseManager;
    private GUIManager guiManager;
    private GolaMenus menus;
    private CustomItemManager customItemManager;
    private ProtectionManager protectionManager;
    private TemporaryBlockManager temporaryBlockManager;
    private PortalManager portalManager;
    private DiscoveryManager discoveryManager;
    private WorldMechanicsManager worldMechanicsManager;
    private UtilityMechanicsManager utilityMechanicsManager;
    private BossManager bossManager;
    private TutorialManager tutorialManager;
    private AfkCageManager afkCageManager;
    private boolean debugEnabled;

    @Override
    public void onEnable() {
        configManager = new ConfigManager(this);
        configManager.load();
        debugEnabled = configManager.get("config.yml").getBoolean("debug", false);

        databaseManager = new DatabaseManager(this, configManager);
        try {
            databaseManager.initialize();
        } catch (SQLException exception) {
            getLogger().severe("Nie można uruchomić bazy SQLite: " + exception.getMessage());
            getServer().getPluginManager().disablePlugin(this);
            return;
        }

        guiManager = new GUIManager();
        menus = new GolaMenus(this, guiManager);
        protectionManager = new ProtectionManager(this);
        temporaryBlockManager = new TemporaryBlockManager(this);
        temporaryBlockManager.loadAndRestore();
        portalManager = new PortalManager(this, protectionManager);
        portalManager.load();
        discoveryManager = new DiscoveryManager(this, protectionManager);
        customItemManager = new CustomItemManager(this);
        customItemManager.registerRecipes();
        worldMechanicsManager = new WorldMechanicsManager(this, protectionManager, temporaryBlockManager);
        worldMechanicsManager.load();
        utilityMechanicsManager = new UtilityMechanicsManager(this, protectionManager, temporaryBlockManager,
                worldMechanicsManager);
        bossManager = new BossManager(this, protectionManager);
        bossManager.load();
        tutorialManager = new TutorialManager(this);
        tutorialManager.load();
        afkCageManager = new AfkCageManager(this);
        afkCageManager.load();
        getServer().getPluginManager().registerEvents(new GUIListener(guiManager), this);
        getServer().getPluginManager().registerEvents(new PlayerDataListener(this), this);
        getServer().getPluginManager().registerEvents(customItemManager, this);
        getServer().getPluginManager().registerEvents(portalManager, this);
        getServer().getPluginManager().registerEvents(discoveryManager, this);
        getServer().getPluginManager().registerEvents(worldMechanicsManager, this);
        getServer().getPluginManager().registerEvents(utilityMechanicsManager, this);
        getServer().getPluginManager().registerEvents(bossManager, this);
        getServer().getPluginManager().registerEvents(tutorialManager, this);
        getServer().getPluginManager().registerEvents(afkCageManager, this);

        GolaCommand command = new GolaCommand(this);
        Objects.requireNonNull(getCommand("golamc"), "Brak komendy golamc w plugin.yml")
                .setExecutor(command);
        Objects.requireNonNull(getCommand("golamc"), "Brak komendy golamc w plugin.yml")
                .setTabCompleter(command);

        getLogger().info("GolaMC został uruchomiony.");
    }

    @Override
    public void onDisable() {
        if (portalManager != null) {
            portalManager.close();
        }
        if (bossManager != null) {
            bossManager.close();
        }
        if (tutorialManager != null) {
            tutorialManager.close();
        }
        if (afkCageManager != null) {
            afkCageManager.close();
        }
        if (utilityMechanicsManager != null) {
            utilityMechanicsManager.close();
        }
        if (worldMechanicsManager != null) {
            worldMechanicsManager.close();
        }
        if (temporaryBlockManager != null) {
            temporaryBlockManager.close();
        }
        if (databaseManager != null) {
            databaseManager.close();
        }
    }

    public void reloadSettings() {
        configManager.reload();
        debugEnabled = configManager.get("config.yml").getBoolean("debug", false);
        customItemManager.registerRecipes();
        portalManager.reload();
        worldMechanicsManager.reload();
        tutorialManager.reloadGuideNpc();
    }

    public void setDebugEnabled(boolean debugEnabled) {
        this.debugEnabled = debugEnabled;
        getConfig().set("debug", debugEnabled);
        saveConfig();
    }

    public String message(String key) {
        String message = configManager.get("messages.yml").getString("messages." + key, key);
        return ChatColor.translateAlternateColorCodes('&', message);
    }

    public void debug(String message) {
        if (debugEnabled) {
            getLogger().info("[DEBUG] " + message);
        }
    }

    public ConfigManager getConfigManager() {
        return configManager;
    }

    public DatabaseManager getDatabaseManager() {
        return databaseManager;
    }

    public GolaMenus getMenus() {
        return menus;
    }

    public CustomItemManager getCustomItemManager() {
        return customItemManager;
    }

    public ProtectionManager getProtectionManager() {
        return protectionManager;
    }

    public TemporaryBlockManager getTemporaryBlockManager() {
        return temporaryBlockManager;
    }

    public PortalManager getPortalManager() {
        return portalManager;
    }

    public DiscoveryManager getDiscoveryManager() {
        return discoveryManager;
    }

    public WorldMechanicsManager getWorldMechanicsManager() {
        return worldMechanicsManager;
    }

    public UtilityMechanicsManager getUtilityMechanicsManager() {
        return utilityMechanicsManager;
    }

    public BossManager getBossManager() {
        return bossManager;
    }

    public TutorialManager getTutorialManager() {
        return tutorialManager;
    }

    public AfkCageManager getAfkCageManager() {