Can You Tell Whether This Minecraft Add-On Code Was AI-Generated?
Asked by
soap.bubble.trial
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?
Answers
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.
Reply to this answer
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.
Reply to this answer
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.
Reply to this answer
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.
Reply to this answer
Add your answer
Answers are reviewed before publication.
Related Discussions