Paste #62439: Possible Crafting bug?

Date: 2019/11/30 13:29:32 UTC-08:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


SwordBluePrint1: 
  type: item 
  material: i@paper
  display name: "<&9>Blue Print" 
  lore:
  - "I wonder what I can craft from this"
  enchantments:
  - ARROW_DAMAGE:1

SwordBluePrint2:
  type: item
  material: i@paper
  display name: "<&9>Sword Blue Print"
  lore:
  - "I wonder what I can craft from this"
  enchantments:
  - ARROW_DAMAGE:2
  recipe:
  - i@air|i@gold_ingot|i@air
  - i@gold_ingot|i@SwordBluePrint1|i@gold_ingot
  - i@air|i@gold_ingot|i@air

SBPUp:
  type: world
  events:
    on player crafts item:
    - if <context.item.contains[SwordBluePrint2]> == true:
      - narrate "You have upgraded to a better Blue Print!"