Configuration

All configurations from the Legendary Crafting Plugin config

Placeholders

You can use these in messages, boss bars, action bars, and commands:

  • %player% – Player name

  • %location% – Crafting block coordinates in x y z format

  • %world% – World name

  • %x%, %y%, %z% – Coordinates individually

  • %total_time% – Total crafting time (seconds)

  • %total_time_formatted% – Total crafting time in human-readable format

  • %time% – Remaining time (seconds)

  • %time_formatted% – Remaining time in human-readable format

  • %item% – Display/custom item name

  • %item_material% – Raw Minecraft material name


Enabled

  • If true, this recipe is active and can trigger a ritual.

  • If false, this recipe is ignored.


Recipe Activation Conditions

Defines which recipe triggers the ritual:

  • key – Minecraft recipe key (e.g., minecraft:mace).

  • recipe – Custom shaped recipe (slots 1–9 map to crafting grid).

  • add_recipe_to_server – If true, adds this recipe to players’ recipe books.

  • item_result – Item created when the recipe is crafted (optional if using only triggers).

Example
recipe_activation:
  key: <String>
  # OR:
  recipe:
    1: <Material>
    2: <Material>
    ...
  add_recipe_to_server: <true/false>
  item_result: <ItemStack or null>
  
# -----------------------------
# Option 1: Use an existing Minecraft recipe key
# -----------------------------
key: "minecraft:mace"
#recipe: []
#add_recipe_to_server: false
#item_result: null

# -----------------------------
# Option 2: Define a custom shaped recipe grid
# -----------------------------
key: #Leave empty to let the plugin generate and fill it automatically.

recipe:
  1: DIRT
  2: DIRT
  3: DIRT
  4: DIRT
  5: DIRT
  6: DIRT
  7: DIRT
  8: DIRT
  9: DIRT

add_recipe_to_server: false

# use the command for this part
item_result:
  ==: org.bukkit.inventory.ItemStack
  v: 4082
  type: SHORT_GRASS

Settings

Controls ritual behavior for this recipe:

  • time – Total crafting duration.

  • radius – Range for effects/messages (blocks).

  • cancel_on_logout – Cancel if player logs out.

  • cancel_on_leave_radius – Cancel if player leaves ritual radius.

  • cancel_on_death – Cancel if player dies.

  • kill_on_logout – Kill the player immediately on logout.

  • cancel_leave_radius – Prevent player from leaving radius (movement blocked).

  • cancel_break – Prevent breaking the crafting block.

  • cancel_on_break – Cancel ritual if block is broken.

  • send_message_to_join – Notify players who join mid-ritual.

  • delete_recipe – Remove recipe after one craft.

  • running_rituals – Max concurrent rituals for this recipe (-1 = unlimited).

Example
settings:
  time: <Duration>
  radius: <Integer>
  cancel_on_logout: <true/false>
  cancel_on_leave_radius: <true/false>
  cancel_on_death: <true/false>
  kill_on_logout: <true/false>
  cancel_leave_radius: <true/false>
  cancel_break: <true/false>
  cancel_on_break: <true/false>
  send_message_to_join: <true/false>
  delete_recipe: <true/false>
  running_rituals: <Integer>
  
settings:
  time: 30s                     
  radius: 10                    
  cancel_on_logout: false       
  cancel_on_leave_radius: false 
  cancel_on_death: false        
  kill_on_logout: true         
  cancel_leave_radius: false    
  cancel_break: false           
  cancel_on_break: false        
  send_message_to_join: true   
  delete_recipe: false          
  running_rituals: 1           

Requirements

Sets limits for when the ritual can start:

  • enabled – Whether requirements are checked.

  • xp – Minimum XP levels required (-1 = disabled).

  • day_time – Minimum in-game time in ticks (0–23999).

  • world – Required world name (null = any).

Example
requirements:
  enabled: <true/false>
  xp: <Integer>
  day_time: <Integer>
  world: <String or null>
  

requirements:
  enabled: true
  xp: -1                       
  day_time: -1                  

Messages

Custom messages for start/end of ritual:

  • player – Sent to the player starting the ritual.

  • broadcast – Sent to entire server.

  • radius – Sent to players in range.

  • world – Sent to players in same world.

  • log – Sent to console/log file.

Example
messages:
  start:
    enabled: <true/false>
    player: <String>
    broadcast: <String>
    radius: <String>
    world: <String>
    log: <String>
  end:
    enabled: <true/false>
    player: <String>
    broadcast: <String>
    radius: <String>
    world: <String>
    log: <String>
    
messages:
  start:
    enabled: true
    player: "§cYou started crafting the mace! Time left: %total_time_formatted%"
    broadcast: "§cThe mace is being crafted! Total time: %total_time_formatted%"
    radius: "§cThe mace is being crafted nearby! Total time: %total_time_formatted%"
    world: "§cSomeone in this world started crafting the mace! Total time: %total_time_formatted%"
    log: "%player% at %location% in %world% started crafting %item% (%total_time_formatted% total)."
  end:
    enabled: true
    player: "§cYou have crafted the mace!"
    broadcast: "§cThe mace has been crafted!"
    radius: "§cThe mace has been crafted nearby!"
    world: "§cSomeone in this world finished crafting the mace!"
    log: "%player% at %location% in %world% finished crafting %item%."

Boss Bar

  • Displays progress to players in radius.

  • color – pink, blue, red, green, yellow, purple, white.

  • overlay – progress, notched_6, notched_10, notched_12, notched_20.

Example
boss_bar:
  enabled: <true/false>
  title: <String>
  color: <String>
  overlay: <String>
  
boss_bar:
  enabled: true
  title: "§cMace crafting in progress! Time left: %time_formatted%"
  color: red                   
  overlay: progress

Action Bar

  • Short text shown above hotbar during crafting.

Example
action_bar:
  enabled: <true/false>
  text: <String>

action_bar:
  enabled: true
  text: "§cMace crafting in progress! Time left: %time_formatted%"

Titles

  • Big title/subtitle text on screen during ritual.

Example
titles:
  enabled: <true/false>
  title: <String>
  sub_title: <String>
  
titles:
  enabled: true
  title: ""
  sub_title: "§cTime left: %time_formatted%"

Sounds

  • Plays one random sound from the list when triggered.

Example
sounds:
  enabled: <true/false>
  list:
    - <Sound>
    - <Sound>
    
sounds:
  enabled: true
  list:
    - BLOCK_BLASTFURNACE_FIRE_CRACKLE
    - BLOCK_CRAFTER_CRAFT

Commands

  • start – Commands run when ritual starts.

  • end – Commands run when ritual ends.

Example
commands:
  enabled: <true/false>
  start:
    - <Command>
  end:
    - <Command>
    
commands:
  enabled: false
  start:
    - "say Crafting started!"
    - "say Stop him!"
  end:
    - "say Crafting finished!"

Particle

Controls visual effects:

  • do_particle_beam – Tall vertical effect above block.

  • do_lightning – Lightning strikes before finish.

  • circle_particle – Circle at block after crafting.

  • player_particles – Particles around crafting player.

  • particles – Effects moving toward crafting block.

Example
particle:
  enabled: <true/false>
  do_particle_beam: <true/false>
  do_lightning: <true/false>
  circle_particle:
    enabled: <true/false>
    particle: <String>
    dust_option:
      size: <Number>
      color: 
        red: <0-255>, 
        green: <0-255>, 
        blue: <0-255> 
  player_particles:
    enabled: <true/false>
    particle: <String>
    dust_option:
      size: <Number>
      color:   
        red: <0-255>, 
        green: <0-255>, 
        blue: <0-255> 
  particles:
    enabled: <true/false>
    particle: <String>
    dust_option:
      size: <Number>
      color: 
        red: <0-255>, 
        green: <0-255>, 
        blue: <0-255>
        
particle:
  enabled: true
  do_particle_beam: true        # Vertical beam from crafting block
  do_lightning: true            # Lightning before crafting finishes

  circle_particle:              # Circle effect after crafting finishes
    enabled: true
    particle: dust
    dust_option:
      size: 1
      color:                    # RGB 0–255
        red: 0,
        green: 0,
        blue: 0

  player_particles:             # Particles around player while crafting
    enabled: true
    particle: dust
    dust_option:
      size: 1
      color:
        red: 0,
        green: 0,
        blue: 0

  particles:                     # Particles drawn toward crafting block
    enabled: true
    particle: dust
    dust_option:
      size: 1
      color:
        red: 0,
        green: 0,
        blue: 0

Loops

Repeats tasks at regular intervals while ritual is active:

  • <loop-id> – Any number (1, 2, 3...).

  • activate_time – Delay between repetitions.

  • tasks – Actions repeated (particles, sounds, titles, etc.).

Example
loops:
  <loop-id>:
    settings:
      enabled: <true/false>
      activate_time: <Duration>
    tasks:
      particle:
        enabled: <true/false>
        player_particles:
          enabled: <true/false>
          particle: <String>
          
loops:
  1:
    settings:
      enabled: true
      activate_time: 1s          # Delay before repeating
    tasks:
      particle:
        enabled: true
        player_particles:
          enabled: true
          particle: ENCHANT

Default config

Config
# Placeholder for all messages/bossbars/actionbars/commands
  # %player% - returns player name
  # %location% - the location of the crafting block (format: x y z)
  # %world% - the world
  # %x% - x coordinate (int)
  # %y% - y coordinate (int)
  # %z% - z coordinate (int)
  # %total_time% - the total time to craft the item in seconds (example: 60)
  # %total_time_formated% - the total time to craft the item formated (example: 1m)
  # %time% - the current time it still needs to craft the item (example: 120)
  # %time_formated% - the current time it still needs to craft the item formated (example: 1m 20s)
  # %item% - the item name
  # %item_material% - the item material

########################################################################
# ------------------------ Recipe Activation --------------------------#
# This section defines which recipe triggers the crafting ritual.      #
# You can use a Minecraft recipe key or define a custom shaped recipe. #
########################################################################

# true to enable the recipe on the server - false to disable
# make sure to reload the plugin after changing this!
enabled: false
recipe_activation:
    # -----------------------------
    # Option 1: Use an existing Minecraft recipe key
    # -----------------------------
    # Players will see this in their recipe book if key is set.
    # Use "/recipe give @p" in-game to see available keys and copy one here.
    key: "minecraft:mace"

    # -----------------------------
    # Option 2: Define a custom shaped recipe grid
    # -----------------------------
    # Slots 1–9 correspond to crafting table layout:
    # 1 2 3
    # 4 5 6
    # 7 8 9
    # Remove the # in front of the recipe line to enable.

    #recipe:
    #  1: DIRT
    #  2: DIRT
    #  3: DIRT
    #  4: DIRT
    #  5: DIRT
    #  6: DIRT
    #  7: DIRT
    #  8: DIRT
    #  9: DIRT

    # -----------------------------
    # If true, adds the recipe and the item_result to the server.
    # Players will see it in their recipe book.
    # Only relevant if you use key or a custom recipe.

    #add_recipe_to_server: false

    # -----------------------------
    # The resulting item when crafting this recipe
    # -----------------------------
    # Required if a recipe grid is defined.
    # Optional if using only item creation without a recipe.
    # Use the command /mr create with the item in your main hand to generate.
    #  item_result: null

# ===============================
# Ritual Settings
# ===============================
settings:
  time: 30s                     # Total crafting time
  radius: 10                    # Message/particle/boss bar radius (blocks)
  cancel_on_logout: false       # Cancel if crafting player logs out
  cancel_on_leave_radius: false # Cancel if player leaves the radius
  cancel_on_death: false        # Cancel if player dies
  kill_on_logout: true          # Instantly kill player on logout
  cancel_leave_radius: false    # Prevent player from leaving radius (movement blocked)
  cancel_break: false           # Make crafting block unbreakable
  cancel_on_break: false        # Cancel ritual if block is broken
  send_message_to_join: true    # Send active ritual messages to players joining mid-craft
  delete_recipe: false          # Remove recipe after crafting (craftable once only)
  running_rituals: 1            # Max simultaneous rituals of this recipe (-1 = unlimited)

# ===============================
# Requirements
# ===============================
requirements:
  enabled: true
  xp: -1                       # Minimum XP level required (-1 = disabled)
  day_time: -1                  # Earliest in-game time allowed (-1 = disabled, in ticks 0–23999)
  world: null                   # World name (case-sensitive, null = any)


# ===============================
# Messages
# Order: Crafting Player → Players in radius → Players in world → Server-wide
# No one receives the same message twice.
# ===============================
messages:
  start:
    enabled: true
    player: "§cYou started crafting the mace! Time left: %total_time_formatted%"
    broadcast: "§cThe mace is being crafted! Total time: %total_time_formatted%"
    radius: "§cThe mace is being crafted nearby! Total time: %total_time_formatted%"
    world: "§cSomeone in this world started crafting the mace! Total time: %total_time_formatted%"
    log: "%player% at %location% in %world% started crafting %item% (%total_time_formatted% total)."
  end:
    enabled: true
    player: "§cYou have crafted the mace!"
    broadcast: "§cThe mace has been crafted!"
    radius: "§cThe mace has been crafted nearby!"
    world: "§cSomeone in this world finished crafting the mace!"
    log: "%player% at %location% in %world% finished crafting %item%."

# ===============================
# Boss Bar
# ===============================
boss_bar:
  enabled: true
  title: "§cMace crafting in progress! Time left: %time_formatted%"
  color: red                   # pink, blue, red, green, yellow, purple, white
  overlay: progress            # progress, notched_6, notched_10, notched_12, notched_20


# ===============================
# Action Bar
# ===============================
action_bar:
  enabled: true
  text: "§cMace crafting in progress! Time left: %time_formatted%"

# ===============================
# Titles
# ===============================
titles:
  enabled: false
  title: ""
  sub_title: "§cTime left: %time_formatted%"

# ===============================
# Sounds
# ===============================
sounds:
  enabled: true
  # One sound is randomly selected from the list each time sounds play
  list:
    - BLOCK_BLASTFURNACE_FIRE_CRACKLE
    - BLOCK_CRAFTER_CRAFT

# ===============================
# Commands
# ===============================
commands:
  enabled: false
  start:
    - "say Crafting started!"
  end:
    - "say Crafting finished!"

# ===============================
# Particle Effects
# ===============================
particle:
  enabled: true
  do_particle_beam: true        # Vertical beam from crafting block
  do_lightning: true            # Lightning before crafting finishes

  circle_particle:              # Circle effect after crafting finishes
    enabled: true
    particle: dust
    dust_option:
      size: 1
      color:                    # RGB 0–255
        red: 0,
        green: 0,
        blue: 0

  player_particles:             # Particles around player while crafting
    enabled: true
    particle: dust
    dust_option:
      size: 1
      color:
        red: 0,
        green: 0,
        blue: 0

  particles:                     # Particles drawn toward crafting block
    enabled: true
    particle: dust
    dust_option:
      size: 1
      color:
        red: 0,
        green: 0,
        blue: 0

# ===============================
# Loops
# Loops allow repeating tasks automatically while a crafting ritual is active.
# Each loop has a unique ID, settings, and tasks:
# - Loop ID: any number (e.g., 1, 2, 3)
# - Settings:
#     enabled: true/false → should this loop run
#     activate_time: time between each activation (e.g., 1s)
# - Tasks: actions executed each time the loop triggers
#     Can include: particle, sounds, titles, action_bar, messages
# Behavior:
# 1. Loop triggers after activate_time once crafting starts.
# 2. Tasks run each interval until crafting ends.
# 3. Multiple loops can run in parallel with independent intervals.
# Example use cases:
# - Show particles around player or block repeatedly
# - Play sounds periodically
# - Update action bars or titles dynamically
# ===============================

loops:
  1:
    settings:
      enabled: true
      activate_time: 1s          # Delay before repeating
    tasks:
      particle:
        enabled: true
        player_particles:
          enabled: true
          particle: ENCHANT

Last updated