So your trying to spawn legendary items in? Why not just pick up random items, then change the rarity of them by Last clicked slot and put it to value of 4. Or if you don't like the item you received, then follow this
How i circled it in red is the Item Type, anything under the Item Type, is the Sub Type. For example, you type in 3 in the Item Type, then 1 in the Sub Type, you get an axe
https://www.mpgh.net/forum/742-cube-w...h-id-list.html