Skip to content

Instantly share code, notes, and snippets.

@lukeeey
Created October 28, 2018 13:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lukeeey/cf4bf0ae7cb8f933bd5eca3e8a1fc5a2 to your computer and use it in GitHub Desktop.
Save lukeeey/cf4bf0ae7cb8f933bd5eca3e8a1fc5a2 to your computer and use it in GitHub Desktop.
What i want in the Scripting API

Network Access

I don't care if it's limited to images and JSON and the game internally checks it for validity before passing it to the script, we need access to internet to allow for a wider array of mods. I don't care if you route it through some stupid Microsoft proxy first, but we need this.

For example, i want to create a translating mod to help the people who arent so fluent in English (or vice versa). I cant realistically do that without using an external API. Or what if i want to make a mod that allows people to create an entity with the skin of a player from Minecraft: Java Edition. I would need to use the JSON API for that, wouldnt i.

After all this, i don't see why it cant be added? I think after all these checks it is finally safe enough for us to make a single HTTP request.


Writing to files (in a contained environment)

I know what you're thinking. This is dangerous, however if you provide an API for us to safe either images or JSON files in a specified directory (specific to our script), and limit the amount of storage we can use (like Google Chrome), then it really is quite safe.

I mean, how are we gonna fill up the device storage if we are limited to 10mb or less? How will we "hack" their device with an image file? And i mention saving JSON files because of JavaScript's native support for them and the fact that they are useful if we want to store, for example, a fair amount of game data (if we were having some sort of racing game or something). We could save progress and scores, deaths, wins, losses, and more.

You could even, if we had 10mb, limit the JSON to something like 3mb and leave the rest for images because realistically JSON doesnt take too much space compared to images.


I know im asking for a lot but at the same time im really not because we need at least a bit of freedom, even if it is controlled.

@CtrlAltCuteness
Copy link

Agreed. Maybe server-side-only HTTP calls which must be enabled per mod in a config file (hosting from device would allow a GUI to toggle them on & off, default being off)? Realms would forcibly disable this for obvious reasons..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment