01-26-2014, 07:51 AM
Your code has two major problems:
1, you need to declare EnchantmentType before declaring the function - the function return value has to be known before the function is parsed.
2, your function would be able to return only one enchantment. What you really want is an array of enchantments.
1, you need to declare EnchantmentType before declaring the function - the function return value has to be known before the function is parsed.
2, your function would be able to return only one enchantment. What you really want is an array of enchantments.