--- 📎 Attached 1 file(s):
File: pasted-code-1788131001404.txt
Create a Paper Minecraft plugin targeting version 1.21.11 named RewindSMP.
Core Mechanics & Requirements:
1. Target Version & API:
- Use Paper API version 1.21.11-R0.1-SNAPSHOT compiled with Java 21.
- Set api-version: '1.21' in plugin.yml.
2. Tracking System (Rewind Engine):
- Every 2 ticks (10 snapshots per second), record each online player's current location, health, and velocity vectors.
- Maintain a rolling history buffer up to 8 seconds (80 total snapshots per player). Automatically discard older snapshots.
3. Main Ability - '/rewind' Command:
- Register command /rewind (permission node: rewindsmp.use, default: true).
- Set a per-player cooldown of 90 seconds. If on cooldown, output: "§cRewind is on cooldown! Time remaining: {seconds}s".
- If the player has played for less than 8 seconds (fewer than 80 snapshots recorded), cancel execution and output: "§cNot enough rewind history recorded yet."
- Execution Effects:
* Spawn 30 Particle.PORTAL particles and play Sound.ENTITY_ENDERMAN_TELEPORT at the player's initial location.
* Instantaneously teleport the player to their exact location from 8 seconds ago.
* Restore their exact health value and velocity from 8 seconds ago without modifying any world terrain/blocks.
* Spawn 30 Particle.PORTAL particles and play Sound.ENTITY_ENDERMAN_TELEPORT at the new destination location.
* Send player confirmation message: "§aYou rewound time 8 seconds into the past!"
4. General Event Cleanup:
- Clear player snapshots and active cooldown timers when a player quits the server to prevent memory leaks.
📄
pasted-code-1788131108121.txt
txt
24 lines
▶
Create a Paper Minecraft plugin targeting version 1.21.11 named RewindSMP.
Core Mechanics & Requirements:
1. Target Version & API:
- Use Paper API version 1.21.11-R0.1-SNAPSHOT compiled with Java 21.
- Set api-version: '1.21' in plugin.yml.
2. Tracking System (Rewind Engine):
- Every 2 ticks (10 snapshots per second), record each online player's current location, health, and velocity vectors.
- Maintain a rolling history buffer up to 8 seconds (80 total snapshots per player). Automatically discard older snapshots.
3. Main Ability - '/rewind' Command:
- Register command /rewind (permission node: rewindsmp.use, default: true).
- Set a per-player cooldown of 90 seconds. If on cooldown, output: "§cRewind is on cooldown! Time remaining: {seconds}s".
- If the player has played for less than 8 seconds (fewer than 80 snapshots recorded), cancel execution and output: "§cNot enough rewind history recorded yet."
- Execution Effects:
* Spawn 30 Particle.PORTAL particles and play Sound.ENTITY_ENDERMAN_TELEPORT at the player's initial location.
* Instantaneously teleport the player to their exact location from 8 seconds ago.
* Restore their exact health value and velocity from 8 seconds ago without modifying any world terrain/blocks.
* Spawn 30 Particle.PORTAL particles and play Sound.ENTITY_ENDERMAN_TELEPORT at the new destination location.
* Send player confirmation message: "§aYou rewound time 8 seconds into the past!"
4. General Event Cleanup:
- Clear player snapshots and active cooldown timers when a player quits the server to prevent memory leaks.
Created the RewindSMP Paper plugin with:
Paper
1.21.11-R0.1-SNAPSHOTand Java 21 configuration/rewindcommand with permission and 90-second cooldown80-snapshot rolling history recorded every 2 ticks
Location, health, and velocity restoration
Portal particles and Enderman teleport sounds
Quit cleanup for histories and cooldowns
Plugin metadata and command registration
Create a Paper 1.21.1 plugin named "Eclipsebound" for custom creature abilities with a HUD interface and transformation system.
IMPLEMENT THE FOLLOWING CREATURE SPECIFICATIONS EXACTLY:
=== SYSTEM ARCHITECTURE & HUD ===
- Per-player data tracking selected creature, ability cooldowns, and transformation states.
- Custom Actionbar HUD displaying ability icons and cooldown timers:
* Default State: Shows 2 distinct custom icons: [PASSIVE_ICON] [ACTIVE_ICON]. * Ultimate State: Shows 4 distinct custom icons: [PASSIVE_ICON] [ACTIVE_ICON] [ULTIMATE_ICON] [ULTIMATE_SECONDARY_ICON].
- Cooldowns are individual per player, safe for multiplayer, and scale based on power (weak abilities = 12-15s, strong active abilities = 16-20s, ultimates = 60s+).
- Damage scaling balanced against Minecraft Protection III Diamond Armor (no single ability can 2-hit kill a full HP Prot III player).
=== KEYBIND INPUTS & MECHANICS ===
- Shift + Right-Click: Cast Active Ability
- Key 'F' (Swap Hand Item): Cast Ultimate Transformation
- Shift + Key 'F': Cast Ultimate Secondary Ability
=== CREATURE DEFINITIONS ===
EVIL CREATURES:
- Bloodfang:
- Passive (Bloodlust): Melee hits grant Speed I (3s). Below 40% HP, gains Strength I (3s). - Active (Blood Rush): Rapid forward dash dealing 6 damage + Bleed (Wither II for 3s). Red claw particle trails and roar SFX. Cooldown: 12s. - Ultimate (Crimson Ascension): Transformation granting Strength II and 20% Lifesteal for 20s. Cooldown: 90s. - Ultimate Secondary (Blood Moon): 8-block radial shockwave dealing 10 damage and Weakness I (5s). Cooldown: 120s.
- Gravemaw:
- Passive (Gravity Core): 80% knockback resistance and 50% fall damage reduction. - Active (Gravebreaker): Ground slam within 4 blocks dealing 7 damage and launching enemies 2 blocks up. Block-crack particles and heavy anvil SFX. Cooldown: 16s. - Ultimate (Cataclysm Form): Transformation granting Resistance II, Knockback Resistance, and Strength II for 20s. Cooldown: 90s. - Ultimate Secondary (Earthquake): Large ground eruption (10-block radius) dealing 12 damage and high vertical launch. Cooldown: 120s.
- Emberfiend:
- Passive (Infernal Body): Immune to Fire/Lava. Melee attackers have a 25% chance to ignite for 3s. - Active (Infernal Burst): 5-block frontal cone flame blast dealing 8 fire damage. Flame particles and blaze roar SFX. Cooldown: 14s. - Ultimate (Hellfire Ascension): Transformation granting Fire Aura (damages nearby targets) and Strength II for 20s. Cooldown: 90s. - Ultimate Secondary (Hellstorm): Calls down 5 localized fire explosions dealing 14 area damage. Cooldown: 120s.
- Dreadwing:
- Passive (Aerial Instinct): 50% fall damage reduction and permanent Slow Falling I in air. - Active (Skydive): Forward/upward air-dash diving toward target direction, dealing 7 damage and heavy knockback on impact. Wind particles and phantom flap SFX. Cooldown: 15s. - Ultimate (Dreadwing Ascension): Transformation granting permanent Flight, Speed II, and jump boost for 20s. Cooldown: 90s. - Ultimate Secondary (Shadow Dive): Fast aerial dive creating a 6-block explosion dealing 12 damage on impact. Cooldown: 120s.
- Rotfang:
- Passive (Decaying Presence): Enemies within 3 blocks receive Poison I (2s) every 8 seconds (internal cooldown). - Active (Rot Spread): Creates a 4-block toxic cloud dealing 6 magic damage + Poison I & Weakness I (4s). Dark green particles and slime SFX. Cooldown: 18s. - Ultimate (Plagueborn): Transformation granting Regeneration I and empowering decay aura to Poison II. Cooldown: 90s. - Ultimate Secondary (Plague Storm): Large 10-block spreading cloud applying Wither II and Slowness II for 8s. Cooldown: 120s.
- Voidreaper:
- Passive (Void Step): Gains Speed II in light level < 5 and night. 50% fall damage reduction. - Active (Void Bolt): Fast purple particle projectile dealing 7 damage, Slowness II (3s), and small explosion on hit. Ender SFX. Cooldown: 13s. - Ultimate (Void Ascension): Transformation granting Invisibility (toggleable) and Speed III for 20s. Cooldown: 90s. - Ultimate Secondary (Event Horizon): Creates a gravitational void pulling all entities within 8 blocks to center, then exploding for 12 damage. Cooldown: 120s.
GOOD CREATURES:
- Sunwarden:
- Passive (Radiant Aura): Allies within 5 blocks receive Regeneration I for 3s every 10s. - Active (Solar Guard): Gives self and allies within 5 blocks Resistance II and Absorption I for 5s. Golden particle ring and bell SFX. Cooldown: 20s. - Ultimate (Solar Ascension): Transformation granting Resistance II, Strength I, and continuous team healing. Cooldown: 90s. - Ultimate Secondary (Solar Judgment): Radiant light beam dealing 12 damage to enemies and restoring 6 HP to allies in radius. Cooldown: 120s.
- Frostheart:
- Passive (Frozen Core): Immune to powdered snow/freezing damage and 50% knockback reduction. - Active (Frost Nova): 5-block ice burst dealing 6 damage and Slowness III (4s). Snow/ice particles and glass shatter SFX. Cooldown: 17s. - Ultimate (Eternal Frost): Transformation where attacks freeze enemies in ice blocks for 1.5s. Cooldown: 90s. - Ultimate Secondary (Absolute Zero): 10-block freezing zone dealing 2 damage/sec for 5 seconds and heavy Slowness IV. Cooldown: 120s.
- Thornkeeper:
- Passive (Thorn Armor): Reflects 25% incoming melee damage back to attacker (2s internal cooldown). - Active (Thorn Snare): Summons root particles at target location dealing 6 damage and rooting/slowness IV for 3s. Wood crack SFX. Cooldown: 18s. - Ultimate (Ancient Guardian): Transformation granting Resistance III and Knockback Immunity for 20s. Cooldown: 90s. - Ultimate Secondary (Forest's Wrath): Enormous vine eruption dealing 10 damage and trapping enemies in leaves/vines for 4s. Cooldown: 120s.
- Stormborn:
- Passive (Static Charge): Moving continuously for 4 seconds grants Speed II for 3s. Reset on taking damage. - Active (Thunder Strike): Strikes lightning at targeted location within 15 blocks dealing 8 area damage. Lightning particle + thunder SFX. Cooldown: 16s. - Ultimate (Tempest Ascension): Transformation granting Flight and Speed III with automatic electric arcs to nearby enemies. Cooldown: 90s. - Ultimate Secondary (Stormcall): Localized thunderstorm striking 5 lightning bolts across a 10-block target zone. Cooldown: 120s.
- Dawnwing:
- Passive (Dawn Grace): During day, gains passive Regeneration I and Speed I. - Active (Radiant Dive): Forward burst dash dealing 7 damage and knocking enemies back 4 blocks. Firework particles and chime SFX. Cooldown: 15s. - Ultimate (Celestial Dawn): Transformation granting Flight, Glowing aura, and Speed II. Cooldown: 90s. - Ultimate Secondary (Heavenfall): Vertical dive producing a 8-block light explosion dealing 12 damage and applying Glowing to enemies (10s). Cooldown: 120s.
- Starforged:
- Passive (Star Charge): Land 3 ranged/ability hits to charge. Next active ability deals +50% bonus damage and resets charge. - Active (Starlance): Cosmic projectile dealing 8 damage and Slowness I (2s) with star particle trails. Cooldown: 18s. - Ultimate (Cosmic Ascension): Transformation granting Levitation/Flight and infinite Starlance usage for 10s. Cooldown: 90s. - Ultimate Secondary (Supernova): Cosmic explosion dealing 15 area damage at target location within 20 blocks. Cooldown: 120s.
Ensure clean Java code, efficient particle handling, and full compatibility with Paper 1.21.1.
Inspect the existing project and replace the RewindSMP scaffold with Eclipsebound’s plugin structure.
Implement per-player state, actionbar HUD, cooldowns, keybind detection, and transformation lifecycle.
Implement all 12 creature definitions, passives, actives, ultimates, damage/team rules, and event handling.
Update Paper 1.21.1 build/plugin metadata and perform consistency checks.
Implemented Eclipsebound, a Paper 1.21.1 plugin targeting Java 21.
Added all 12 creature definitions with passive, active, ultimate, and secondary abilities.
Added per-player creature selection and state tracking.
Added cooldown handling for active, ultimate, and secondary abilities.
Added actionbar HUD with distinct passive, active, ultimate, and secondary icons.
Added input handling:
Shift + right-click: active ability
F: ultimate transformation
Shift + F: ultimate secondary ability
Added transformation durations, flight handling, invisibility toggling, regeneration, lifesteal, freezing, knockback effects, team protection, and custom damage.
Added
/eclipsebound select <creature>and/eclipsebound toggle.Added projectile tracking for Starforged’s charge mechanic.
Added quit cleanup and transformation restoration.
Updated build configuration to Paper
1.21.1-R0.1-SNAPSHOT.Updated plugin metadata to
Eclipseboundwithapi-version: '1.21'.
package com.eclipsebound;
import java.util.Objects;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;
import org.bukkit.scheduler.BukkitTask;
public final class Eclipsebound extends JavaPlugin {
private AbilityEngine abilityEngine;
private BukkitTask tickTask;
private BukkitTask hudTask;
@Override
public void onEnable() {
abilityEngine = new AbilityEngine(this);
Objects.requireNonNull(getCommand("eclipsebound")).setExecutor(new EclipseboundCommand(abilityEngine));
Objects.requireNonNull(getCommand("eclipsebound")).setTabCompleter(new EclipseboundCommand(abilityEngine));
Bukkit.getPluginManager().registerEvents(new EclipseboundListener(abilityEngine), this);
tickTask = Bukkit.getScheduler().runTaskTimer(this, abilityEngine::tick, 1L, 1L);
hudTask = Bukkit.getScheduler().runTaskTimer(this, abilityEngine::updateHud, 0L, 5L);
}
@Override
public void onDisable() {
if (tickTask != null) tickTask.cancel();
if (hudTask != null) hudTask.cancel();
if (abilityEngine != null) abilityEngine.shutdown();
}
}