A friend asked me to review the JavaScript for a Minecraft add-on, and I'm wondering whether it was generated by AI. Several AI-detection tools said it probably wasn't, but I'm still suspicious. The code is fairly long and handles flare guns, projectiles, glow sticks, configuration menus, particles, entity events, and dynamic properties. It also contains typos such as "defualts" and "chat_massage," inconsistent naming and formatting, and a number of compact helper functions. Are there any reliable signs here that would indicate whether a person or an AI wrote it?
4 Answers
AI detectors are not reliable for source code, especially when the code has been edited or mixed with existing snippets. The code looks somewhat amateurish and cobbled together, but that doesn’t prove anything about its origin. Ultimately, only the development history or the author’s ability to explain it can provide useful evidence.
There isn’t enough evidence to identify the author from the code alone. The typos, inconsistent indentation, short one-line helpers, and naming inconsistencies feel more like human-written or heavily edited code than a clean AI-generated result. It could also be assembled from multiple sources, so “human-written” and “AI-assisted” aren’t mutually exclusive.
Also, consider whether you had permission to publish the full code. Even if you’re only asking about authorship, sharing someone else’s project publicly without asking could damage the friendship. A private code review or a shortened, anonymized example would have been safer.
The best way to check is to ask your friend about specific design decisions. Have them explain how the projectile tracking, velocity changes, dynamic properties, and entity cleanup work, or ask them to modify one feature. Someone who wrote or substantially edited it should be able to explain the reasoning, while an unreviewed copy-and-paste job may be harder to defend.

Related Questions
How To: Running Codex CLI on Windows with Azure OpenAI
Set Wordpress Featured Image Using Javascript
How To Fix PHP Random Being The Same
Why no WebP Support with Wordpress
Replace Wordpress Cron With Linux Cron
Customize Yoast Canonical URL Programmatically