Leon Meier

With 5 lives you have 10 hearts, with 4 lives 8 hearts, with 3 lives 6, with 2 4, with 1 2, and if you have no hearts left you become a ghost and can only be revived at the spawn with a resurrection eye or a command. As a ghost, you can only be about 20 blocks away from spawn, appear on the tap list, and your hearts are visible above your head. whit an texturepack taht downloads whit the plugin.

Kodari AI
KodariSep 12 at 10:51 pm 2
GhostLivesSystem
Implements a life-based health system where players have 5 lives, each granting 2 hearts. Losing all lives turns the player into a ghost, restricted to a 20-block radius from spawn, visible on the tab list with hearts displayed above their head. Ghosts can be revived at spawn using a resurrection eye item or a command. Includes a bundled texture pack that downloads automatically with the plugin, providing custom ghost visuals and heart indicators.

I’ll create a Paper plugin with:

  1. Persistent lives and max-health scaling.

  2. Ghost mode at zero lives with spawn-radius enforcement and tab/nameplate visibility.

  3. Resurrection Eye and admin revive commands.

  4. Configurable resource-pack delivery on join.

  5. Gradle, plugin metadata, and default configuration.

Created the LifeHearts Paper plugin with:

  • Five configurable starting lives, where each life grants two hearts.

  • Persistent player lives stored in players.yml.

  • Ghost mode at zero lives with:

    • Spectator mode

    • Resurrection-spawn restriction within 20 blocks

    • Damage, building, inventory, and interaction restrictions

    • Visible ghost name and heart count

  • Resurrection Eye item and spawn-based revival.

  • /lives info

  • /lives revive <player> [lives]

  • /lives set <player> <lives>

  • Configurable resource-pack delivery on join.

  • Gradle build files, plugin metadata, and default configuration.

Set resource-pack.enabled: true and replace the example URL in config.yml with your hosted texture-pack ZIP URL.

Leon Meier

i wannt it dowload

Kodari AI
KodariSep 13 at 10:49 am 1

Minecraft clients can only download a resource pack from a public http:// or https:// URL. The plugin cannot make the client download a ZIP directly from inside the plugin JAR.

Set this in src/main/resources/config.yml:

YAML
resource-pack:
  enabled: true
  url: "https://your-domain.com/lifehearts.zip"

Then:

  1. Create the texture pack as lifehearts.zip.

  2. Upload it to a publicly accessible HTTPS URL.

  3. Replace the example URL in config.yml.

  4. Rebuild and restart the server.

  5. Players will automatically receive the download when they join.

The current plugin already calls player.setResourcePack(url) when enabled is true. A URL such as https://example.com will not work unless it directly downloads the ZIP file.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
9 658
src/main/java/com/kodari/lifehearts/LifeHeartsPlugin.java
package com.kodari.lifehearts;

import com.kodari.lifehearts.command.LivesCommand;
import com.kodari.lifehearts.listener.LifeHeartsListener;
import com.kodari.lifehearts.manager.LifeManager;
import com.kodari.lifehearts.manager.ResourcePackManager;
import org.bukkit.command.PluginCommand;
import org.bukkit.plugin.java.JavaPlugin;

public final class LifeHeartsPlugin extends JavaPlugin {
    private LifeManager lifeManager;
    private ResourcePackManager resourcePackManager;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        lifeManager = new LifeManager(this);
        resourcePackManager = new ResourcePackManager(this);

        getServer().getPluginManager().registerEvents(new LifeHeartsListener(this), this);
        PluginCommand livesCommand = getCommand("lives");
        if (livesCommand != null) {
            LivesCommand executor = new LivesCommand(this);
            livesCommand.setExecutor(executor);
            livesCommand.setTabCompleter(executor);
        }
    }

    @Override
    public void onDisable() {
        if (lifeManager != null) {
            lifeManager.save();
        }
    }

    public LifeManager getLifeManager() {
        return lifeManager;
    }

    public ResourcePackManager getResourcePackManager() {
        return resourcePackManager;
    }
}