This commit is contained in:
ayunami2000 2022-01-16 20:54:48 -05:00
parent e313e98f66
commit 2431bdda9e
3 changed files with 456 additions and 444 deletions

File diff suppressed because it is too large Load Diff

View File

@ -79,7 +79,8 @@ public class GuiScreenModules extends GuiScreen {
}else if(par1GuiButton.id == 3){ }else if(par1GuiButton.id == 3){
NoteblockPlayer.legit=!NoteblockPlayer.legit; NoteblockPlayer.legit=!NoteblockPlayer.legit;
}else if(par1GuiButton.id == 4){ }else if(par1GuiButton.id == 4){
mc.thePlayer.capabilities.isFlying=!mc.thePlayer.capabilities.isFlying; NoteblockPlayer.flying=!NoteblockPlayer.flying;
if(!NoteblockPlayer.flying)mc.thePlayer.capabilities.isFlying=false;
} }
} }

View File

@ -21,11 +21,14 @@ public class NoteblockPlayer {
private static Minecraft mc=Minecraft.getMinecraft(); private static Minecraft mc=Minecraft.getMinecraft();
public static boolean legit=false; public static boolean legit=false;
public static boolean flying=false;
private static boolean playingSong=false; private static boolean playingSong=false;
private static String[] songLiness=null; private static String[] songLiness=null;
private static HashMap<Integer,HashMap<Integer,Vec3>> instrNoteToBlocks=null; private static HashMap<Integer,HashMap<Integer,Vec3>> instrNoteToBlocks=null;
private static int tickPassed=0; private static int tickPassed=0;
public static void tick(){ public static void tick(){
if(flying)mc.thePlayer.capabilities.isFlying=true;
if(playing&&playingSong){ if(playing&&playingSong){
int linesPlayed=0; int linesPlayed=0;
for (String songLine : songLiness) { for (String songLine : songLiness) {