This repository has been archived by the owner on Jun 26, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4a2e6a6
commit d1b5993
Showing
4 changed files
with
49 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
/bin/ | ||
/obj/ | ||
/.vs/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,8 @@ | ||
EarthBuildplateEditor | ||
## Earth Buildplate Editor | ||
*A simple tool to edit Minecraft Earth's buildplate format. | ||
|
||
Currently very early, and much spagetti code | ||
|
||
### Notes | ||
- To get the resources, youl need to get your hands on a copy of Minecraft Earth's resouce pack and make some modifications. Copyright prohibits distribution. | ||
- .plate is the unencrypted json of the Minecraft Earth tile format. .plate64 is this data with base64 encryption, as this is what the Minecraft Earth server uses |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
|
||
namespace EarthBuildplateEditor | ||
{ | ||
class Util | ||
{ | ||
public static string Base64Encode(string normal) | ||
{ | ||
var plainTextBytes = System.Text.Encoding.UTF8.GetBytes(normal); | ||
return System.Convert.ToBase64String(plainTextBytes); | ||
} | ||
public static string Base64Decode(string base64) | ||
{ | ||
var base64EncodedBytes = System.Convert.FromBase64String(base64); | ||
return System.Text.Encoding.UTF8.GetString(base64EncodedBytes); | ||
} | ||
} | ||
} |