So, I've made an application for android which allows you to view where slimes can spawn in your world. However I got annoyed at having to type in the seed every time. And so, this mod was born.
Note, the app is only available for android! So IOS users, sorry!
What it does
Simply, it connects to your android phone through your local internet connection, and then sends your username, position, rotation and world seed to the app. This way, you don't have to type out the super long seed (and possibly get it wrong, which is annoying!), and you can see where you are in the world.
How does it work?
It uses Java's inbuilt Network functionality, to find out your local IP address, and the subnet mask. It then generates all of the possible permutations, and attempts to connect to them, in order of difference from your own local IP.
i.e.
If your IP is 192.168.1.100, and your subnet mask is 255.255.255.0
It will scan 192.168.1.101, 192.168.1.99, 192.168.1.102, 192.168.1.98 etc until a connection is found.
It then keeps the connection open, shakes hands with the server (to make sure we're connected to the right application), and then sends your player's data to the app.
It ONLY sends:
Position, Rotation, Seed and Username
And all of the information it sends does NOT leave the application. The connection is unencrypted, so anyone could potentially see what is being sent, however this shouldn't be a problem, and only non-sensitive information is transmitted.
Download
First, you can get the app by clicking on the logo:
This mod depends on the Forge Mod-loader, which you can get here, if you don't already have it installed.
To install the mod, simply place the downloaded jar file into the 'mods' folder in your Minecraft directory. If you don't know how to do then, then click here.
Screenshots:
It doesn't work!
Sometimes, it might not work. If it's not, then:
Make sure your android device is connected to WiFi, not cellular data.
Make sure your computer is connected to the local network.
Both your phone, and your computer MUST be on the same local area connection for this to work. Having them connected to the internet is sometimes not enough. Connect your phone to your local WiFi connection at home, and then connect your computer to either the same WiFi router, or via a LAN cable to the same router that the WiFi router is connected to. As long as they are all connected to the same router, then it should be fine.
If you've done all that, both devices are on the same network, and it's still not working. Then I don't know. Sorry. You might have a firewall blocking access to the device, and that's something beyond my control.
Position, Rotation, Seed and Username
And all of the information it sends does NOT leave the application. The connection is unencrypted, so anyone could potentially see what is being sent, however this shouldn't be a problem, and only non-sensitive information is transmitted.
Download
This mod depends on the Forge Mod-loader, which you can get here, if you don't already have it installed.
To install the mod, simply place the downloaded jar file into the 'mods' folder in your Minecraft directory. If you don't know how to do then, then click here.
Screenshots:
It doesn't work!
Sometimes, it might not work. If it's not, then:
Yo