From 5e6386346d5119c0636764aa89cf70e94cfdaf95 Mon Sep 17 00:00:00 2001 From: no <150491573+n-aoH@users.noreply.github.com> Date: Tue, 23 Sep 2025 21:58:49 -0400 Subject: [PATCH 1/2] Update FAQ.md added info about memory leaks and objects --- docs/FAQ.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/FAQ.md b/docs/FAQ.md index 5694898..a3c822f 100644 --- a/docs/FAQ.md +++ b/docs/FAQ.md @@ -74,3 +74,9 @@ layout: post ## ❓️ How do I write an infinite loop in pyjinn? - Pyjinn runs natively in the rendering thread of minecraft, meaning that your code cannot use a `while True` loop, as it would never give control back to the rest of the client. Instead, use `set_interval(func, ms)` for infinite loops. + +## ❓️ How do I find what's in X Object / Variable? +- Print it. Printing an object will list it alongside any properties that you can call or read into chat. + +## ❓️ My script seems to lag a lot after running it for a while, why is this? +- If you have lists, make sure that you are properly clearing them out to prevent a memory leak. From a332be25d89faa2a62b76e944ccaa7d8bea8582d Mon Sep 17 00:00:00 2001 From: no <150491573+n-aoH@users.noreply.github.com> Date: Tue, 23 Sep 2025 22:21:31 -0400 Subject: [PATCH 2/2] Update FAQ.md added more info about AIs, deprecation, servers, and python debugging. --- docs/FAQ.md | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/docs/FAQ.md b/docs/FAQ.md index a3c822f..8153295 100644 --- a/docs/FAQ.md +++ b/docs/FAQ.md @@ -14,8 +14,8 @@ layout: post - Make sure you are not confusing `/` with `\` when typing commands. -## ❓️ Code doesn’t work - +## ❓️ AI generated code doesn’t work +- AIs such as ChatGPT have an extremely small set of data for Minescript and Pyjinn scripts, and thus are usually not fit to create them first-try. - APIs generated by AI may not be accurate — always double-check whether the API you’re trying to use actually exists in the official documentation. - [https://minescript.net/docs/](https://minescript.net/docs/) @@ -75,8 +75,27 @@ layout: post - Pyjinn runs natively in the rendering thread of minecraft, meaning that your code cannot use a `while True` loop, as it would never give control back to the rest of the client. Instead, use `set_interval(func, ms)` for infinite loops. +## ❓️ Where do I put my files? +- You can place both scripts and libraries into the `minescript` folder. Any files inside of the system folder may get deleted upon updating the mod. Placing files outside of these folders will likely not allow them to run or be imported. + +## ❓️ I have python but minescript isn't accessing it. Why? +- Error code 9009: You don't have python installed. +- Minescript's auto-python detection is not perfect, so it may grab the wrong python if you have multiple installed (or none at all!) make sure you know where the python instalation that you use is `where.exe python` (windows) and `which python` (Mac). **You may have to search for both python and python3!** +- Paste this path into your python path variable in config.txt. +- If all else fails, uninstalling and re-installing python is also an option. This will ensure that you have the most up-to-date python, which you can then put into your config.txt to use immediately. + ## ❓️ How do I find what's in X Object / Variable? - Print it. Printing an object will list it alongside any properties that you can call or read into chat. ## ❓️ My script seems to lag a lot after running it for a while, why is this? - If you have lists, make sure that you are properly clearing them out to prevent a memory leak. + +## ❓️ Why does X script/library only work on 1.21.5+ and vice versa? +- Mojang's APIs change from update to update, and so do minescript's. Particularly, rendering and internal mappings can become depricated, leading to community-made libraries only working before or after certain versions (1.21.5 being the most common). +- You can use ViaFabric to backport your client to an earlier version for servers if needed. + +## ❓️ Can servers see that I'm using minescript? +- Minescript is a client-side mod. This means that servers are not given the fact that you have it installed, but may see some outputs. +- The `Chat()` and any function that executes a `/command` or messes with sending packets are sent to the server. +- Additionally, servers can see the way you move your character and interact with the world. +- Any other functions (ex: printing your position) aren't sent out