Repository navigation
[Mod] Save Load Function
This function allows you to save and load structures, and works in both Singleplayer and Multiplayer modes.
/save [file name] [width and height starting from players location]
/saveonly [tile id]
/load [file name]
Declarations:
GitHub code formatting hates me: [http://pastebin.com/uKQuqdUg]
Onchat Functions:
GitHub code formatting hates me: [http://pastebin.com/qewMxczE]
Create/Get Tile functions:
GitHub code formatting hates me: [http://pastebin.com/rHpd9GPi]
The OnChat functions go where you would normally put your select case code, such as case "god": and the such.
The "Create/Get Tile" functions can go anywhere in ModClass.cs where you put functions, an example is above public static Boolean onChat(String text) {
This is an example of a file generated by this code:
-7,-9,25|-7,-8,25|-7,-7,25|-7,-6,25|-7,-5,25|-7,-4,25|-7,-3,25|-7,-2,25|-6,-9,25|-6,-8,25|-6,-7,25|-6,-6,25|-6,-5,25|-6,-4,25|-6,-3,25|-6,-2,25|-5,-3,25|-5,-2,25|-4,-3,25|-4,-2,25|-3,-3,25|-3,-2,25|-1,-9,25|-1,-8,25|-1,-7,25|-1,-6,25|-1,-5,25|-1,-4,25|-1,-3,25|-1,-2,25|0,-9,25|0,-8,25|0,-7,25|0,-6,25|0,-5,25|0,-4,25|0,-3,25|0,-2,25|1,-9,25|1,-8,25|1,-3,25|1,-2,25|2,-9,25|2,-8,25|2,-7,25|2,-6,25|2,-5,25|2,-4,25|2,-3,25|2,-2,25|3,-9,25|3,-8,25|3,-7,25|3,-6,25|3,-5,25|3,-4,25|3,-3,25|3,-2,25|5,-9,25|5,-8,25|5,-7,25|5,-6,25|5,-5,25|5,-4,25|5,-3,25|5,-2,25|6,-9,25|6,-8,25|6,-7,25|6,-6,25|6,-5,25|6,-4,25|6,-3,25|6,-2,25|7,-3,25|7,-2,25|8,-3,25|8,-2,25|9,-3,25|9,-2,25|
[http://pastebin.com/eS3F9F2N]
Some servers ban for mass tile placement, some servers have it blocked. If you use this and get banned, blame nobody but yourself.
Occasionally, all of the blocks will not be placed server-side because of lag. If this happens, try again when it isn't so laggy.
~CloudHopper