Affects Version/s: 1.17, 1.17.1
Fix Version/s: None
Environment:Windows 8.1, 4GB Ram, 64-bit OS, x64-based processor, Java 8 Update 291.
After updating to 1.17 I discovered that the set_count function for a loot table only outputs a single item to the player when it had previously given the intended amount throughout the 1.16 releases. Note this applies to all count settings including exact, range, and binomial. The error only applies to unstackable items such as saddles and minecarts, in 1.16 multiple slots would be filled with a single unstackable item but now there is only one.
Recreating this issue is simple and all you have to do is create a loot table with one roll that uses a function to set the count of an item. To assist with this report I have attached raw code, screenshots showing the transition between versions, and a map in 1.16.5 that contains all of the necessary loot tables.
Code 1: set_count exact (format 2)
Code 2: set_count range
Code 3: set_count binomial
At first I thought it was because of the format I used to compress NBT data into one line. However, after changing the format I realized that this has no effect.
Code 4: Compressed NBT (format 1)
Code 5: Simplified NBT (format 2)