I have created a python script that generates a item or list of items that could be in a crate with their respective properties from the Spelunky 2 fandom. Thanks to Cloppershy for the crate chances.
from random import choices
import sys
items = {
"Bomb Bag": 34.06,
"Rope Pile": 34.06,
"Parachute": 7.57,
"Compass": 3.98,
"Machete": 2.1,
"Bomb Box": 2.04,
"Bomb Paste": 1.49,
"Spring Shoes": 1.47,
"Spike Shoes": 1.44,
"Boomerang": 1.42,
"Webgun": 1.16,
"Camera": 1.15,
"Pitcher's Mitt": 1.13,
"Climbing Gloves": 1.06,
"Spectacles": 1.05,
"Shotgun": 0.98,
"Mattock": 0.97,
"Teleporter": 0.96,
"Crossbow": 0.5,
"Freeze Ray": 0.5,
"Cape": 0.49,
"Powerpack": 0.2,
"Jetpack": 0.2,
"Plasma Cannon": 0.01,
}
print(choices(list(items.keys()),list(items.values()), k=int(sys.argv[1])))
To use the script above, copy and paste the text in the Code section above and make sure you have Python installed. Then create a new file called crate_chances.py and open a command prompt there. Type py crate_chances.py <number>
and there you go!