Skip to content

Crafting Station: Cancelling a craft returns MMOItems ingredient with randomized tier and attack-damage

Summary

Cancelling a craft in Crafting Station returns the MMOItems ingredient mutated: its tier becomes randomized and its attack-damage min/max values are altered.

Steps to Reproduce

  1. Prepare an MMOItems equipment with a fixed tier and defined attack-damage min/max.
  2. Place it as an ingredient in Crafting Station.
  3. Start the craft.
  4. Cancel the craft before completion.
  5. Retrieve the ingredient item.

Expected Behavior

The original MMOItems equipment is returned unchanged (same tier and the exact attack-damage min/max).

Actual Behavior

The returned MMOItems equipment has a randomized/shuffled tier and modified attack-damage min/max.

Environment

  • Server: Paper 1.21.4
  • MMOItems: 6.10.1-20250906.130656-32

Configuration

crafting-stations/recipe.yml

recipes:
  weapon-common:
    output: 'mmoitems{type=MATERIAL,id=GEM_01,amount=1}'
    crafting-time: 30
    ingredients:
      - 'mmoitem{type=SWORD,id=ASSASSIN_BLADE,amount=1,tier=common}'

item/sword.yml

ASSASSIN_BLADE:
  option:
    tiered: true
    level-item: true
  modifiers:
    legendary-damage-modifier:
      weight: 8
      chance: 1
      stats:
        attack-damage: 20
    epic-damage-modifier:
      weight: 6
      chance: 1
      stats:
        attack-damage: 10
    rare-damage-modifier:
      weight: 4
      chance: 1
      stats:
        attack-damage: 5
    uncommon-damage-modifier:
      weight: 2
      chance: 1
      stats:
        attack-damage: 3
  base:
    material: STONE_SWORD
    tier: COMMON
    name: <#ff0202>Assassin Blade
    required-level: 1.0
    disable-enchanting: true
    attack-damage:
      min: 10.0
      max: 15.0
    attack-speed: 1.0
    unbreakable: true