Yo Bro, these coding tutorials seem pretty awesome =D Now all you need is GUI, Updated Mob, Smelting, and potion affects, plus TNT. Although dont stress it. I knoww this stuff can take ages. No worries =)
For some reason when I add the codes into the mod_name.java (to make a block) it says that it "The constructor block(int, int) is undefined"
My guess is that you are doing something like Block(ID, 0) instead of BlockClass(ID, 0). It is reccomended you create a class for your block OR you can either do Block(Material) however I am not sure that will work
I see the jars, but I don't see textures? Do I have to make the folder?
Can you fix your block creation tutorial? publicstaticfinalBlock funBlock =newBlockFun(180,0).setHardness(1.0F).setResistance(5F).setUnlocalizedName("stone");
This will add the stone texture to your block, to add a custom one, go to your "jars" folder and add the new texture into /textures/blocks/ (has to be a .png of 16x16 pixels), and change its name to your custom texture without the .png extension.
It doesn't add the new texture
Edit:
can you fix up your blocks tutorial? How are we supposed to make them naturally spawn in worlds, and how can the texture be added? I copy and pasted all this code in and the unlocalized name doesn't change the texture.
I see the jars, but I don't see textures? Do I have to make the folder?
Can you fix your block creation tutorial? publicstaticfinalBlock funBlock =newBlockFun(180,0).setHardness(1.0F).setResistance(5F).setUnlocalizedName("stone");
This will add the stone texture to your block, to add a custom one, go to your "jars" folder and add the new texture into /textures/blocks/ (has to be a .png of 16x16 pixels), and change its name to your custom texture without the .png extension.
It doesn't add the new texture
Edit:
can you fix up your blocks tutorial? How are we supposed to make them naturally spawn in worlds, and how can the texture be added? I copy and pasted all this code in and the unlocalized name doesn't change the texture.
Sorry, the tutorial must have been outdated. You have to put it inside of /MCP/Jars/Versions/1.6.2/1.6.2.jar/assets/minecraft/textures/blocks/. I updated the tutorial and you can also find the tutorial for spawning ore (you can spawn your block as an ore)
Sorry, the tutorial must have been outdated. You have to put it inside of /MCP/Jars/Versions/1.6.2/1.6.2.jar/assets/minecraft/textures/blocks/. I updated the tutorial and you can also find the tutorial for spawning ore (you can spawn your block as an ore)
Are you sure this is supposed to work? I just tested the block texture again and it said it failed to load texture. also, apparently there's an error in the code? If it's not too much trouble, can you help find out what's wrong? Thanks!
Are you sure this is supposed to work? I just tested the block texture again and it said it failed to load texture. also, apparently there's an error in the code? If it's not too much trouble, can you help find out what's wrong? Thanks!
The problem was that I forgot to merge the Adding Textures and Creating Block/Item tutorial. You also have to add .func_111022_d("funblock") after the unlocalized name. Sorry for all the confusion.
The problem was that I forgot to merge the Adding Textures and Creating Block/Item tutorial. You also have to add .func_111022_d("funblock") after the unlocalized name. Sorry for all the confusion.
No problem! Also, can you consider reviewing ALL of your code? My school club (for computer nerds) are looking at this post for learning to code Java in Minecraft and we will be learning everything from you haha
Exception in thread "Thread-5" java.lang.UnsatisfiedLinkError: org.lwjgl.openal.AL10.nalSourcef(IIF)V
at org.lwjgl.openal.AL10.nalSourcef(Native Method)
at org.lwjgl.openal.AL10.alSourcef(AL10.java:810)
at paulscode.sound.libraries.SourceLWJGLOpenAL.positionChanged(SourceLWJGLOpenAL.java:391)
at paulscode.sound.Library.setListenerPosition(Library.java:958)
at paulscode.sound.libraries.LibraryLWJGLOpenAL.setListenerPosition(LibraryLWJGLOpenAL.java:864)
at paulscode.sound.SoundSystem.CommandSetListenerPosition(SoundSystem.java:2217)
at paulscode.sound.SoundSystem.CommandQueue(SoundSystem.java:2546)
at paulscode.sound.CommandThread.run(CommandThread.java:121)
And Also, how do I add time break to it? I want to make my block be broken in 15 seconds instead of like.. 2.
Exception in thread "Thread-5" java.lang.UnsatisfiedLinkError: org.lwjgl.openal.AL10.nalSourcef(IIF)V
at org.lwjgl.openal.AL10.nalSourcef(Native Method)
at org.lwjgl.openal.AL10.alSourcef(AL10.java:810)
at paulscode.sound.libraries.SourceLWJGLOpenAL.positionChanged(SourceLWJGLOpenAL.java:391)
at paulscode.sound.Library.setListenerPosition(Library.java:958)
at paulscode.sound.libraries.LibraryLWJGLOpenAL.setListenerPosition(LibraryLWJGLOpenAL.java:864)
at paulscode.sound.SoundSystem.CommandSetListenerPosition(SoundSystem.java:2217)
at paulscode.sound.SoundSystem.CommandQueue(SoundSystem.java:2546)
at paulscode.sound.CommandThread.run(CommandThread.java:121)
And Also, how do I add time break to it? I want to make my block be broken in 15 seconds instead of like.. 2.
And here's another error :
To make the block break slower you would have to change .setHardness from 0F to 1F or 1.5F however if you want it to be very long you can increase it more. The first error is apparently a modloader sound error which I could not find a solution to (maybe sound driver?) and the second error is because you need to register a name to the item (Follow my name and recipe tutorial)
Not for me... I have tried to get it working many times but it hasn't worked since 1.5.2, it just doesn't display the description (no errors or anything)
To make the block break slower you would have to change .setHardness from 0F to 1F or 1.5F however if you want it to be very long you can increase it more. The first error is apparently a modloader sound error which I could not find a solution to (maybe sound driver?) and the second error is because you need to register a name to the item (Follow my name and recipe tutorial)
This may sound extremely stupid, but I have no idea where to install ModLoader to. I think that's the error with my sound and everything. I can't launch it with a new name now, just because it can't localize modloader and it crashes.
This may sound extremely stupid, but I have no idea where to install ModLoader to. I think that's the error with my sound and everything. I can't launch it with a new name now, just because it can't localize modloader and it crashes.
Here are the instructions for installing 1.6.2 and modloader using MCP:
1. Force update
2. Download the 1.6.2 modloader zip
3. Go to %appdata%/minecraft/versions/1.6.2/ and open 1.6.2.jar
4. Paste the contents of the modloader zip and delete META-INF
5. Run cleanup.bat in your mcp folder and delete everything in /jars/
6. Place the minecraft_server.jar for 1.6.2 in /jars/ again
7. Run decompile.bat to fetch your .minecraft
8. Open eclipse, set the workspace and start coding from scratch
Risugami's instructions are only for installing modloader if you aren't a modder.
Here are the instructions for installing 1.6.2 and modloader using MCP:
1. Force update
2. Download the 1.6.2 modloader zip
3. Go to %appdata%/minecraft/versions/1.6.2/ and open 1.6.2.jar
4. Paste the contents of the modloader zip and delete META-INF
5. Run cleanup.bat in your mcp folder and delete everything in /jars/
6. Place the minecraft_server.jar for 1.6.2 in /jars/ again
7. Run decompile.bat to fetch your .minecraft
8. Open eclipse, set the workspace and start coding from scratch
Risugami's instructions are only for installing modloader if you aren't a modder.
I renamed the 1.6.2 to 1.6.2 mods. Is that okay?
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
There is no such thing as 34 bits, only 32( or 86) and 64. You can get Java JDK for 32 bits here: http://download.oracle.com/otn-pub/java/jdk/7u25-b17/jdk-7u25-windows-i586.exe
I take this back. In the post it says to make the texture and put it into jars >> etc. Where is jars?
I take this back. In the post it says to make the texture and put it into jars >> etc. Where is jars?
I take this back. In the post it says to make the texture and put it into jars >> etc. Where is jars?
My guess is that you are doing something like Block(ID, 0) instead of BlockClass(ID, 0). It is reccomended you create a class for your block OR you can either do Block(Material) however I am not sure that will work
Jars is in your MCP folder btw
I see the jars, but I don't see textures? Do I have to make the folder?
Can you fix your block creation tutorial? publicstaticfinalBlock funBlock =newBlockFun(180,0).setHardness(1.0F).setResistance(5F).setUnlocalizedName("stone");
This will add the stone texture to your block, to add a custom one, go to your "jars" folder and add the new texture into /textures/blocks/ (has to be a .png of 16x16 pixels), and change its name to your custom texture without the .png extension.
It doesn't add the new texture
Edit:
can you fix up your blocks tutorial? How are we supposed to make them naturally spawn in worlds, and how can the texture be added? I copy and pasted all this code in and the unlocalized name doesn't change the texture.
Sorry, the tutorial must have been outdated. You have to put it inside of /MCP/Jars/Versions/1.6.2/1.6.2.jar/assets/minecraft/textures/blocks/. I updated the tutorial and you can also find the tutorial for spawning ore (you can spawn your block as an ore)
Are you sure this is supposed to work? I just tested the block texture again and it said it failed to load texture. also, apparently there's an error in the code? If it's not too much trouble, can you help find out what's wrong? Thanks!
The problem was that I forgot to merge the Adding Textures and Creating Block/Item tutorial. You also have to add .func_111022_d("funblock") after the unlocalized name. Sorry for all the confusion.
No problem! Also, can you consider reviewing ALL of your code? My school club (for computer nerds) are looking at this post for learning to code Java in Minecraft and we will be learning everything from you haha
And Also, how do I add time break to it? I want to make my block be broken in 15 seconds instead of like.. 2.
And here's another error :
To make the block break slower you would have to change .setHardness from 0F to 1F or 1.5F however if you want it to be very long you can increase it more. The first error is apparently a modloader sound error which I could not find a solution to (maybe sound driver?) and the second error is because you need to register a name to the item (Follow my name and recipe tutorial)
Not for me... I have tried to get it working many times but it hasn't worked since 1.5.2, it just doesn't display the description (no errors or anything)
This may sound extremely stupid, but I have no idea where to install ModLoader to. I think that's the error with my sound and everything. I can't launch it with a new name now, just because it can't localize modloader and it crashes.
Here are the instructions for installing 1.6.2 and modloader using MCP:
1. Force update
2. Download the 1.6.2 modloader zip
3. Go to %appdata%/minecraft/versions/1.6.2/ and open 1.6.2.jar
4. Paste the contents of the modloader zip and delete META-INF
5. Run cleanup.bat in your mcp folder and delete everything in /jars/
6. Place the minecraft_server.jar for 1.6.2 in /jars/ again
7. Run decompile.bat to fetch your .minecraft
8. Open eclipse, set the workspace and start coding from scratch
Risugami's instructions are only for installing modloader if you aren't a modder.
I renamed the 1.6.2 to 1.6.2 mods. Is that okay?