#Recipe Helper Function Not Working?

3 messages · Page 1 of 1 (latest)

pine iron
#

Basing my work off the KubeJS Website; I created this list using a Helper Function to avoid having to write out a large amount of code blocks--

  function flavor(output, flavorInput) {
    event.shaped(output, [
      ' M ',
      'SFP'
    ], {
      M: '#fh:milk',
      S: 'minecraft:sugar',
      F: flavorInput,
      P: 'fh:tapioca_pearls'
    })
  }

  flavor('fh:soul_berry_boba_tea', 'frightsdelight:soul_berries')
  flavor('fh:coffee_boba_tea','#fh:coffee_beans')
  flavor('fh:mango_boba_tea','croptopia:mango')
  flavor('fh:dragonfruit_boba_tea','croptopia:dragonfruit')
  flavor('fh:thai_boba_tea','herbalbrews:dried_black_tea')
  flavor('fh:wither_berry_boba_tea','frightsdelight:wither_berries')
  flavor('fh:taro_boba_tea','trailsandtales_delight:pitcher_taro')
  flavor('fh:matcha_boba_tea','herbalbrews:dried_green_tea')
  flavor('fh:honey_boba_tea','minecraft:honey_bottle')
  flavor('fh:vanilla_boba_tea','croptopia:vanilla')
  flavor('fh:brown_sugar_boba_tea','#fh:brown_sugar')
  flavor('fh:strawberry_boba_tea','croptopia:strawberry')
})```

However, when I go to view the recipe; it doesn't appear to exist correctly; and the flavorInput is blank (See Image)
bitter ventureBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

pine iron
#

I was calling some of the items wrong; ignore me.