Tutte le guide
Lifesteal

LifestealHearts

Oggetti e ricette per il Lifesteal: frammenti di cuore da raccogliere, cuori speciali con effetti, ricette personalizzabili e drop da boss e casse del mondo.

Acquistare la licenza Paper, Spigot, Bukkit 1.20 – 1.21 · Java 17+

Installazione

  1. Scarichi il file dall'area clienti e lo copi nella cartella plugins del server.
  2. Avvii il server una volta: viene creata la cartella del plugin con config.yml.
  3. Incolli la sua licenza alla voce license: e riavvii il server.

Comandi

Alias: /lsh

ComandoPermessoDescrizione
/lifestealhearts give <player> <item> [amount]lifestealhearts.adminDà fragment, heart o un cuore speciale (es. legendary)
/lifestealhearts listlifestealhearts.adminElenco di oggetti e ricette
/lifestealhearts reloadlifestealhearts.adminRicarica configurazione, oggetti e ricette

Permessi

PermessoPredefinitoDescrizione
lifestealhearts.usetrueUsare frammenti e cuori speciali
lifestealhearts.crafttrueCraftare le ricette del plugin
lifestealhearts.adminopTutti i comandi di gestione

Nomi degli oggetti nel config

HEART è il cuore di LifestealCore, FRAGMENT il frammento, SPECIAL:<id> un cuore speciale (es. SPECIAL:legendary). Ovunque puoi usare anche un materiale normale di Minecraft, come DIAMOND_BLOCK.

Frammenti

Con per-heart frammenti (4 di base) si crafta un cuore nella griglia, oppure basta il tasto destro su un frammento. Con Shift + tasto destro si uniscono tutti quelli che hai.

Cuori speciali

Ogni voce sotto special-hearts è un oggetto: cuori che dà, effetti (nome:livello:secondi), suono, particelle e annuncio. Copia legendary, cambia l'id e hai un nuovo cuore. Non superano mai il massimo di LifestealCore.

Drop e casse premio

I drop dai mob funzionano solo se li uccide un giocatore (require-player-kill). Nelle casse del mondo i frammenti escono con la probabilità di drops.chests. Per darli da un plugin di casse (come RewardCrates) usa il comando lifestealhearts give {player} fragment 1.

File di configurazione

config.yml
# Your license key (you received it privately from our Discord bot).
license: "PASTE-YOUR-LICENSE-HERE"

# Message language: "en" (English) or "it" (Italiano). Files are in /lang and can be edited freely.
language: en
# When true, each player sees the messages in their own game language (when a file for it exists).
use-client-language: true

# ------------------------------------------------------------
#  Item names used below:
#    HEART            = the heart item of LifestealCore
#    FRAGMENT         = the heart fragment of this plugin
#    SPECIAL:<id>     = a special heart from "special-hearts" (e.g. SPECIAL:legendary)
#    any material     = a normal Minecraft item (e.g. DIAMOND_BLOCK)
# ------------------------------------------------------------

fragment:
  material: RED_DYE
  name: "&#FF6B6B&lHeart Fragment"
  lore:
    - "&7Collect &f{per-heart} &7fragments to craft a &cHeart&7."
    - "&7Right-click with enough fragments to combine them."
  glow: true
  custom-model-data: 0
  # Fragments needed for one heart (1-9).
  per-heart: 4
  # Adds a crafting recipe: {per-heart} fragments in the crafting grid = 1 heart.
  craft-recipe: true
  # Right-click a stack with enough fragments to turn them into a heart directly.
  right-click-combine: true

special-hearts:
  legendary:
    material: HEART_OF_THE_SEA
    name: "<gradient:#FFD700:#FF4D4D>&lLegendary Heart</gradient>"
    lore:
      - "&7Right-click to gain &c+{hearts} ❤"
      - "&7and powerful effects."
      - ""
      - "&6✦ Legendary"
    glow: true
    custom-model-data: 0
    # Hearts given when used (they never go above the max of LifestealCore). 0 = only effects.
    hearts: 2
    # Potion effects: "name:level:seconds" (names from https://minecraft.wiki/w/Effect).
    effects:
      - "regeneration:2:10"
      - "absorption:2:120"
      - "strength:1:60"
    sound: "ui.toast.challenge_complete:1:1"
    particles: TOTEM_OF_UNDYING
    # Tell everyone when a player uses it.
    broadcast: true
  blessed:
    material: GOLDEN_CARROT
    name: "&#FFE29A&lBlessed Heart"
    lore:
      - "&7Right-click to gain &c+{hearts} ❤"
      - "&7and a short blessing."
    glow: true
    custom-model-data: 0
    hearts: 1
    effects:
      - "speed:1:30"
      - "resistance:1:30"
    sound: "entity.player.levelup:1:1.6"
    particles: HAPPY_VILLAGER
    broadcast: false

# Crafting recipes. Every recipe has a result, a shape (3 rows of up to 3 characters) and the ingredients.
recipes:
  heart:
    result: HEART
    amount: 1
    shape:
      - "DND"
      - "NTN"
      - "DND"
    ingredients:
      D: DIAMOND_BLOCK
      N: NETHERITE_INGOT
      T: TOTEM_OF_UNDYING
  legendary:
    result: SPECIAL:legendary
    amount: 1
    shape:
      - "HBH"
      - "BEB"
      - "HBH"
    ingredients:
      H: HEART
      B: NETHERITE_BLOCK
      E: ENCHANTED_GOLDEN_APPLE

drops:
  # Drops only when the mob is killed by a player.
  require-player-kill: true
  # Mob type names from https://minecraft.wiki/w/Java_Edition_data_values#Entities (e.g. WITHER).
  # amount: a number or a range like "2-4". chance: percentage (0-100).
  mobs:
    WITHER:
      item: FRAGMENT
      amount: "2-3"
      chance: 100
    ENDER_DRAGON:
      item: SPECIAL:legendary
      amount: "1"
      chance: 100
    WARDEN:
      item: FRAGMENT
      amount: "2-4"
      chance: 100
    ELDER_GUARDIAN:
      item: FRAGMENT
      amount: "1-2"
      chance: 100
  # Extra loot in naturally generated chests (dungeons, bastions, end cities...).
  chests:
    enabled: true
    # Loot tables that contain one of these texts (e.g. "chests/" = every chest, "end_city" = only end cities).
    loot-tables:
      - "chests/"
    item: FRAGMENT
    amount: "1-2"
    chance: 8