๐
1 file
5,913 chars
๐
pasted-code-1772194794241.txt
txt
258 lines
โถ
pasted-code-1772194794241.txt
txt
258 lines
Create a complete production-ready Minecraft Paper plugin for version 1.21.1.
Plugin Name: infstone
Compatibility:
- Paper 1.21.1
- Geyser compatible (Bedrock supported)
- No duplication exploits
- No item glitches
- No cooldown bypass
- Fully optimized
- Must compile without errors
====================================================
CORE CONCEPT
====================================================
infstone is a PvP + PvE progression plugin with collectible ability stones.
Abilities must work on:
- Players
- All mobs
Stones must NEVER drop physically under any condition.
====================================================
STONE SYSTEM
====================================================
Total:
- 12 Common Stones (1 ability each)
- 6 Rare Stones (3 abilities each)
On first join:
- 3 random stones
- 2 Common
- 1 Rare
- Saved permanently
All stones:
- Bound to player
- Cannot be dropped
- Cannot be placed in containers
- Cannot be thrown
- Stored using PersistentDataContainer
====================================================
DEATH TRANSFER SYSTEM
====================================================
If killed by another player:
Death 1 โ 1 Common transfers to killer
Death 2 โ 1 Common transfers
Death 3 โ 1 Rare transfers
Cycle resets after third death.
Natural death (fall, lava, mob, void, etc):
- NO transfer
- NO drop
- NO loss
Fix issue where stones currently drop on natural death.
====================================================
NEW: PLAYER STONE TRANSFER COMMANDS
====================================================
Players must be able to transfer stones voluntarily.
Add commands:
/infstone transfer
- Transfers specific stone to target player
/infstone transferall
- Transfers all stones to target player
Rules:
- Cannot transfer while in combat (configurable)
- Must confirm transfer with clickable chat confirmation
- Cannot duplicate
- Cooldown between transfers (configurable)
====================================================
COOLDOWN SYSTEM (FIX BROKEN COOLDOWNS)
====================================================
Fix issue where some stones cooldown does not work.
Requirements:
- Central CooldownManager
- Separate cooldown per:
Player + Stone + Ability Type
- Prevent bypass via item switching
- Prevent relog bypass
- Prevent world change bypass
- Store cooldowns safely in memory
====================================================
COOLDOWN DISPLAY (IMPROVED UI)
====================================================
Make ActionBar look clean and modern.
Example format:
[๐ฅ 12s] [๐ป 5s] [โก 2m]
Requirements:
- Clean spacing
- Colored formatting
- Auto-scale for many stones
- Smooth updating (every 10 ticks max)
- No spam lag
====================================================
COMMON STONES
====================================================
- 12 total
- 1 ability
- Right Click activation
- Cooldown: 8โ25 seconds
- Balanced PvP + PvE
- Custom particles
====================================================
RARE STONES
====================================================
- 6 total
- 3 abilities each:
โข Right Click
โข Left Click
โข Shift + Right Click
Cooldown range:
- 120โ300 seconds per ability (balanced smaller since 3 abilities exist)
Strong but optimized.
No infinite fly abuse.
No world breaking.
====================================================
NEW: STONE CRAFTING SYSTEM
====================================================
Players must be able to craft stones.
Common Stone Recipe:
- Easy recipe
- Returns RANDOM Common stone
Rare Stone Recipe:
- Harder recipe
- Returns RANDOM Rare stone
Both recipes must be:
- Fully configurable in config.yml
- Materials customizable
- Amounts customizable
- Enable/disable toggle in config
====================================================
GODBLADE
====================================================
Crafting:
- Any 9 stones โ GODBLADE
Stats:
- Diamond Sword
- Sharpness III
- Unbreakable
- Bound item
Abilities:
1. Right Click โ Lightning Storm
2. Left Click โ Explosive Slash
3. Shift + Right Click โ Flight Mode
Passive Effects:
- Jump Boost
- Strength I
- Speed I
- Glowing
- Resistance I
Cooldowns configurable.
====================================================
CONFIGURATION (HIGHLY CUSTOMIZABLE)
====================================================
config.yml must include:
- Enable/Disable each stone
- Cooldown per stone
- Damage values
- Effect duration
- PvP damage multiplier
- PvE damage multiplier
- Transfer system enable/disable
- Combat restriction toggle
- Cooldown display format
- Recipe materials (common & rare)
- Godblade recipe
- Particle toggle
- ActionBar toggle
All values fully editable.
====================================================
ADMIN COMMANDS
====================================================
/infstone give
/infstone remove
/infstone list
/infstone reload
/infstone reset
/infstone deaths
/infstone transfer
/infstone transferall
Add permissions for each command.
====================================================
TECHNICAL STRUCTURE
====================================================
Must include:
- Main class
- StoneManager
- AbilityManager
- CooldownManager (centralized)
- TransferManager
- DeathTransferManager
- CraftingManager
- CombatTagManager
- ParticleUtility
- CommandHandler
- ConfigManager
Provide:
- Full project folder structure
- plugin.yml
- config.yml
- All classes separated
- Fully commented
- Production-ready code
- No missing imports
- No errors
Generate complete working plugin.
KodariFeb 27 at 12:20 pm 100 (v2)
The generation was stopped before any content could be produced.
Kodari can make mistakes. Review important code before using.
Files
No files in this session
Code