am i allowed to use scratch for this or not. i'm asking because i'm not very good at anything to do with coding in any other engine
There should be no rules against the use of the scratch "engine" (you can use any game engine tbh), but i would consider using something different, something easy like Pygame for example, since scratch is not really made for game jams, and i have no idea how you expect to submit your game using scratch. But hey, it's your game your choice, this is only my opinion.