
Bugzoo
Members-
Posts
268 -
Joined
-
Last visited
Everything posted by Bugzoo
-
An ItemStack array
-
MyList.get and MyList.remove dont work
-
So if I have a list of 20 items, I want it to give the player 5 random items from that list of 20
-
Destroy and dont drop stuff
-
Title says it all
-
I have music playing from within java, not from within minecraft. So i want that music to stop when I leave the game
-
I want an if statment that checks if the player is on the main menu
-
It doesnt matter anyway. I made the gui play .wav files instead
-
I have a custom .ogg in a folder, and I want it to play when i press a button, how would i do this
-
How would I handle the packet from within the bindTexture method?
-
Ok, so you have the combined texture. So then when I press a button in the gui the combined texture changes into two combined textures. But when it does change, it doesnt change ingame, unless I reset the game that is
-
Telvision.combinedLocation is a file linking to textures/blocks/combined.png
-
public static ResourceLocation combinedTexture = new ResourceLocation("tvmod:textures/blocks/combined.png"); if(Television.combinedLocation.exists()){ this.bindTexture(combinedTexture); }
-
Minecraft is Java and you can do whatever Java can do. However in this case I think even Java it may be "impossible" (at least not normal or easy) to change assets within the JAR. However, you can write and read from filesystem like normal Java. For example, you could put this asset in the configuration folder (which is usually in user directory). So imagine you have a default asset inside your JAR, then when game starts you check to see if there is a newer copy in some file location in user directory, and if not copy it there. After that you can write it how you like. How exactly would I copy it there? If you have any code that would be nice
-
Anybody?
-
[1.7.10][Connection] How to connect to an online radio and listen to it
Bugzoo replied to _gjkf_'s topic in Modder Support
Nobody knows how to do it. You would just have to understand the OpenBlocks code. If you cant, copy and paste the OpenBlocks code into your project and see what the output is. Oh, and if you dont know already, the OpenBlocks radio can only play certain radio stations -
Well, is there anyway I could make a file and a resource location have the same path?
-
So, does that mean it's impossible to write to a mods assets?
-
[1.7.10][Connection] How to connect to an online radio and listen to it
Bugzoo replied to _gjkf_'s topic in Modder Support
Do you know if this is possible, because if it is it would be a really cool mod -
So then how would I link my file to my mod's assets? In Eclipse, your should have a folder named "src/main/resources". In this folder, you can create an "assets" folder and then your mod ID. So the final path is roughly "src/main/resources/assets/modid." I have my image in the folder: src/main/resources/assets/modid/image.png To reference it, I do: new ResourceLocation("modid", "image.png"); Does that answer your question? No, it doesn't. I know how to reference a resource location. The resource location is linked to my mods assets. I want to know how to link a file to my mods assets
-
Well, when I press a button on my gui the texture changes, but the texture doesnt update in game, unless I reset the game. How do I make the texture update without reseting the game?
-
So then how would I link my file to my mod's assets?
-
I have a file static File combinedLocation = new File(""); but I need this file location to be the same as this resource location public ResourceLocation combinedTexture = new ResourceLocation("tvmod", "textures/blocks/combined.png"); How would I do this?
-
@Override public void renderTileEntityAt(TileEntity tileentity, double x, double y, double z, float f) { TileEntityTelevision cannonTile = (TileEntityTelevision)tileentity; int direction = tileentity.getWorldObj().getBlockMetadata(tileentity.xCoord, tileentity.yCoord, tileentity.zCoord); if (direction == 3) direction = 1; else if (direction == 1) direction = 3; else if (direction == 0) direction = 2; else if (direction == 2) direction = 0; GL11.glPushMatrix(); GL11.glTranslatef((float) x + 0.5F, (float) y + 1.5F, (float) z + 0.5F); if(Television.combinedLocation.exists()){ this.bindTexture(combinedTexture); } else { this.bindTexture(texture); } GL11.glPushMatrix(); GL11.glRotatef(180.0F, 0.0F, 0.0F, 1.0F); GL11.glRotatef(direction * 90.0F, 0.0F, 1.0F, 0.0F); this.model.renderAll(); GL11.glPopMatrix(); GL11.glPopMatrix(); } } So, I basically want to rerun this method when I press a button