Everything posted by Bugzoo
-
[1.7.10] Give player random items
An ItemStack array
-
[1.7.10] Give player random items
MyList.get and MyList.remove dont work
-
[1.7.10] Give player random items
So if I have a list of 20 items, I want it to give the player 5 random items from that list of 20
-
[1.7.10] Break Block On Block Right Click?
Destroy and dont drop stuff
-
[1.7.10] Break Block On Block Right Click?
Title says it all
-
[1.7.10] If player is on main menu?
I have music playing from within java, not from within minecraft. So i want that music to stop when I leave the game
-
[1.7.10] If player is on main menu?
I want an if statment that checks if the player is on the main menu
-
[1.7.10] Play .ogg on gui button click
It doesnt matter anyway. I made the gui play .wav files instead
-
[1.7.10] Play .ogg on gui button click
I have a custom .ogg in a folder, and I want it to play when i press a button, how would i do this
-
[1.7.2] Rebind texture from a different class
How would I handle the packet from within the bindTexture method?
-
[1.7.2] Rebind texture from a different class
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
-
[1.7.2] Rebind texture from a different class
Telvision.combinedLocation is a file linking to textures/blocks/combined.png
-
[1.7.10] [Resolved] How to make an .obj model in blender and texture it.
Then do public ResourceLocation texture = new ResourceLocation("MODID", "textures/blocks/NAMEOF.png"); this.bindTexture(texture);
-
[1.7.2] Rebind texture from a different class
public static ResourceLocation combinedTexture = new ResourceLocation("tvmod:textures/blocks/combined.png"); if(Television.combinedLocation.exists()){ this.bindTexture(combinedTexture); }
-
File and Resource Location?
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
-
[1.7.2] Rebind texture from a different class
Anybody?
-
[1.7.10][Connection] How to connect to an online radio and listen to it
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
-
File and Resource Location?
Well, is there anyway I could make a file and a resource location have the same path?
-
File and Resource Location?
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
Do you know if this is possible, because if it is it would be a really cool mod
-
File and Resource Location?
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
-
[1.7.2] Rebind texture from a different class
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?
-
File and Resource Location?
So then how would I link my file to my mod's assets?
-
File and Resource Location?
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?
-
[1.7.2] Rebind texture from a different class
@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
IPS spam blocked by CleanTalk.