Posted 26 May 2016 - 02:45 PM
Hi everyone!
I coded this little program that controls a Crystal portal from the MystCraft mod.
It uses a turtle, and however many advanced monitors you need.
Instructions:
Create a portal using the MystCraft Crystal blocks, and then place a Book Receptable on any surface of the portal.
Then place a turtle facing the Book Receptable, and some advanced monitors on any side of the turtle.
Use "pastebin get seWb3Wuc mystportal", and then edit the program with "edit mystportal".
In the top you will see the array "books". Each entry in that array should be a string, and it corresponds to the slot in the turtle.
I have included an example array in the program, with the worlds "First Age", "Second Age" and "Third Age". These all correspond to slot 1, 2 and 3 in the turtle.
Now, all theres left to do is to run the program with "mystportal <side of monitor>".
Tip: If you add shell.run("mystportal","<side of monitor>") to your startup file, it will automatically detect which book is chosen, even if the chunk gets unloaded.
If you see anything that could be done in a better/more efficient way, constructive criticism is always welcomed :)/>
Edit: Woops forgot screenshots
I coded this little program that controls a Crystal portal from the MystCraft mod.
It uses a turtle, and however many advanced monitors you need.
Instructions:
Create a portal using the MystCraft Crystal blocks, and then place a Book Receptable on any surface of the portal.
Then place a turtle facing the Book Receptable, and some advanced monitors on any side of the turtle.
Use "pastebin get seWb3Wuc mystportal", and then edit the program with "edit mystportal".
In the top you will see the array "books". Each entry in that array should be a string, and it corresponds to the slot in the turtle.
I have included an example array in the program, with the worlds "First Age", "Second Age" and "Third Age". These all correspond to slot 1, 2 and 3 in the turtle.
Now, all theres left to do is to run the program with "mystportal <side of monitor>".
Tip: If you add shell.run("mystportal","<side of monitor>") to your startup file, it will automatically detect which book is chosen, even if the chunk gets unloaded.
If you see anything that could be done in a better/more efficient way, constructive criticism is always welcomed :)/>
Edit: Woops forgot screenshots
Spoiler
Edited on 26 May 2016 - 01:42 PM