This file contains hidden or 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 code is in final.fsh | |
| #version 120 | |
| uniform sampler2D texture; | |
| varying vec4 color; | |
| varying vec2 coord0; | |
| uniform float frameTimeCounter; |
This file contains hidden or 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
| import java.io.IOException; | |
| import java.nio.file.Files; | |
| import java.nio.file.Path; | |
| import java.nio.file.StandardOpenOption; | |
| public class FileReadWrite { | |
| /** | |
| * Writes text to file, throws runtime exception if something goes wrong | |
| * @param path |
This file contains hidden or 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
| public class MCTranslation { | |
| static Map<String,String> translationMap = new HashMap<>(); | |
| static String PREFIX = "tangleBreak"; | |
| //Use this method to generate file with untranslated strings | |
| public static void generateTranlationMap() | |
| { | |
| var file = FabricLoader.getInstance().getGameDir().resolve(".autoTranslateOutput").resolve("output.txt").toFile(); | |
| var text = new GsonBuilder().setPrettyPrinting().create().toJson(translationMap); | |
| try{ | |
| file.getParentFile().mkdirs(); |
This file contains hidden or 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
| Get-ChildItem .\image -Filter * | ForEach-Object { | |
| ffmpeg -y -i $_.FullName -framerate 30 -c:v libvpx-vp9 -an -vf scale="'iw/max(iw,ih)*512':'ih/max(iw,ih)*512'" -pix_fmt yuva420p ".\webm\$($_.Name).webm" | |
| } |