Hey, SCMowns i have a sugestion for modloader tutorials:
New POTIONS!!!!!
It would be EPIC!!!!!!
+1 For You! You'r amazing, you make very good videos to follow!
I see how he is busy... On his SCMowns2 channel he is reviewing mods, hanging around and doing other stuff. He just forgot us guys. Well anyways thanks alot for the tutorials you already made, they are helped me alot. You're probably the best guy in making those.
Nope, tried again now, but nothing.. The strange thing is that only two files don't work. There was a similar problem in this topic: http://www.minecraft...mods-installed/, but the solution doesn't work for me, maybe because i'm using forge's src, not client. Any idea? Thanks
Download my file by this link( http://www.filedropper.com/lib ). All files from this archive, you downloaded have to be putted in [yourmoddingfolder/lib] folder. So go to your modding folder, and find the lib folder inside of it. And put files inside ( not archive, only files from archive )
Hey man. Nice work. But forge part of tutorial doesn't work for 1.4.7. I tried add item and solid block so far. I get item with no texture and no block adding even tho there is no syntaxis errors. Here is code i use - just basic part main script: public class Infinity { public static Item OSIngot;
public static Block OsmiumOre; @Init
public void load(FMLInitializationEvent event){ OSIngot = new NewItems(3001).setItemName ("OSIngot").setMaxStackSize(64).setTextureFile("/Textures/Items/os_ingot.png");
OsmiumOre = new NewBlocks(3002,"Osmium Ore").setHardness(2.0F).setStepSound(Block.soundMetalFootstep).setResistance(10.0F).setTextureFile("/Textures/Blocks/osore.png");
LanguageRegistry.addName(OSIngot, "Osmium Ingot");
LanguageRegistry.addName(OsmiumOre, "Osmium Ore");
}
} Newitem class: package SlayeRAIN.Infinity;
import net.minecraft.item.Item;
import cpw.mods.fml.relauncher.*;
import net.minecraft.creativetab.CreativeTabs;
public class NewItems extends Item {
public NewItems(int par1) {
super(par1);
setCreativeTab(CreativeTabs.tabMaterials);
}
} Newblock class: package SlayeRAIN.Infinity;
import java.util.Random;
import cpw.mods.fml.common.Mod.Init;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.registry.LanguageRegistry;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.creativetab.CreativeTabs;
public class NewBlocks extends Block {
public NewBlocks(int par1, String texture) {
super(par1, Material.rock);
setCreativeTab(CreativeTabs.tabBlock);
}
public int idDropped(int par1, Random par2Random, int par3)
{
return Infinity.OsmiumOre.blockID;
}
public int quantityDropped(Random random)
{
return 1;
}
public String getTextureFile(){
return "/Textures/Blocks/osore.png";
}
}
I made folder in minecraft.jar Textures/Blocks(Items) and put there your renamed png files for test. Well, as i said item has no texure and block doesnt pop up at all. I couldn't use .setUnlocalizedName i guess forg 6.2.2 don't have it. Could i have some assistance with it? I tried figure on my own but failed.
I added the block in the exact same way as SCMowns did but my client crashes on start up. My error log tells me that it was my "Material.rock" in my block class. Anyone know the way to do it in 1.6.4? Btw it also seems to say there's an error on my 82nd line of my base class which to me is the basic block parametres rubyblock = new RubyBlock(8008, "rubyblock").setUnlocalizedName("RubyBlock").setHardness(2.0F).setStepSound(Block.soundMetalFootstep).setResistance(1.0F);
So if anyone knows how to do it for 1.6.4 that would help a bunch.
Sincerely, ZeScratch
PS: Pinch and a Punch for the first complaint of the month
The Meaning of Life, the Universe, and Everything.
Join Date:
12/17/2012
Posts:
45
Minecraft:
rockit10
Member Details
thank yo so much bro i love your tutorials and mod reveiws. i have been working on a mod for about 3 days now and i would be flabbergasted if you reveiwed the link to it will be my signature soon so pls reveiw it.
I added the block in the exact same way as SCMowns did but my client crashes on start up. My error log tells me that it was my "Material.rock" in my block class. Anyone know the way to do it in 1.6.4? Btw it also seems to say there's an error on my 82nd line of my base class which to me is the basic block parametres rubyblock = new RubyBlock(8008, "rubyblock").setUnlocalizedName("RubyBlock").setHardness(2.0F).setStepSound(Block.soundMetalFootstep).setResistance(1.0F);
So if anyone knows how to do it for 1.6.4 that would help a bunch.
Sincerely, ZeScratch
PS: Pinch and a Punch for the first complaint of the month
First, there is a code tag, so you can put your code in that, and second, you need to post the error log to get any help, otherwise we can't really tell you anything.
Rollback Post to RevisionRollBack
GENERATION 98: The first time you see this, copy it into your signature on any forum and subtract 1 from the generation. Social experiment.
Hey man. Nice work. But forge part of tutorial doesn't work for 1.4.7. I tried add item and solid block so far. I get item with no texture and no block adding even tho there is no syntaxis errors. Here is code i use - just basic part main script: public class Infinity { public static Item OSIngot; public static Block OsmiumOre; @Initpublic void load(FMLInitializationEvent event){ OSIngot = new NewItems(3001).setItemName("OSIngot").setMaxStackSize(64).setTextureFile("/Textures/Items/os_ingot.png");OsmiumOre = new NewBlocks(3002,"OsmiumOre").setHardness(2.0F).setStepSound(Block.soundMetalFootstep).setResistance(10.0F).setTextureFile("/Textures/Blocks/osore.png"); LanguageRegistry.addName(OSIngot, "Osmium Ingot"); LanguageRegistry.addName(OsmiumOre, "Osmium Ore"); } } Newitem class: package SlayeRAIN.Infinity; import net.minecraft.item.Item; import cpw.mods.fml.relauncher.*; import net.minecraft.creativetab.CreativeTabs; public class NewItems extends Item { public NewItems(int par1) { super(par1); setCreativeTab(CreativeTabs.tabMaterials); } } Newblock class: package SlayeRAIN.Infinity; import java.util.Random; import cpw.mods.fml.common.Mod.Init; import cpw.mods.fml.common.event.FMLInitializationEvent; import cpw.mods.fml.common.registry.LanguageRegistry; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.creativetab.CreativeTabs; public class NewBlocks extends Block { public NewBlocks(int par1, String texture) { super(par1, Material.rock); setCreativeTab(CreativeTabs.tabBlock); } public int idDropped(int par1, Random par2Random, int par3){ return Infinity.OsmiumOre.blockID; } public int quantityDropped(Random random){ return 1; } public String getTextureFile(){ return "/Textures/Blocks/osore.png"; } }
I made folder in minecraft.jar Textures/Blocks(Items) and put there your renamed png files for test. Well, as i said item has no texure and block doesnt pop up at all. I couldn't use .setUnlocalizedName i guess forg 6.2.2 don't have it. Could i have some assistance with it? I tried figure on my own but failed.
Put your Forge log in Pastebin and link to it. Logs are useful. Also, giving fields Capitalized names makes it hard to tell what's a type and what's an instance. One more thing. Please put long pieces of code in code tags and spoiler tags like so:
Main Script:
public class Infinity {
public static Item OSIngot;
public static Block OsmiumOre;
@Init
public void load(FMLInitializationEvent event) {
OSIngot = new NewItems(3001).setItemName("OSIngot").setMaxStackSize(64).setTextureFile("/Textures/Items/os_ingot.png");
OsmiumOre = new NewBlocks(3002,"OsmiumOre").setHardness(2.0F)
.setStepSound(Block.soundMetalFootstep).setResistance(10.0F)
.setTextureFile("/Textures/Blocks/osore.png");
LanguageRegistry.addName(OSIngot, "Osmium Ingot");
LanguageRegistry.addName(OsmiumOre, "Osmium Ore");
}
}
NewItems class:
package SlayeRAIN.Infinity;
import net.minecraft.item.Item;
import cpw.mods.fml.relauncher.*;
import net.minecraft.creativetab.CreativeTabs;
public class NewItems extends Item {
public NewItems(int par1) {
super(par1);
setCreativeTab(CreativeTabs.tabMaterials);
}
}
NewBlocks class:
package SlayeRAIN.Infinity;
import java.util.Random;
import cpw.mods.fml.common.Mod.Init;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.registry.LanguageRegistry;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.creativetab.CreativeTabs;
public class NewBlocks extends Block {
public NewBlocks(int par1, String texture) {
super(par1, Material.rock);
setCreativeTab(CreativeTabs.tabBlock);
}
public int idDropped(int par1, Random par2Random, int par3){
return Infinity.OsmiumOre.blockID;
}
public int quantityDropped(Random random){
return 1;
}
public String getTextureFile(){
return "/Textures/Blocks/osore.png";
}
}
================ Forge ModLoader Setup Start ===================
MCP Detected already, not downloading
Setting up MCP
Restoring commands.py backup
patching file commands.py
Hunk #7 succeeded at 768 (offset -2 lines).
Hunk #9 succeeded at 1083 (offset -2 lines).
Hunk #11 succeeded at 1130 (offset -2 lines).
Hunk #13 succeeded at 1151 (offset -2 lines).
Hunk #15 succeeded at 1425 (offset -2 lines).
Hunk #17 succeeded at 1523 (offset -2 lines).
Hunk #19 succeeded at 1637 (offset -2 lines).
Hunk #21 succeeded at 1723 (offset -2 lines).
Commands patch applied successfully
Copying FML conf
Creating re-packaged srg
Creating re-packaged exc
Creating re-packaged MCP patches
== MCP 7.44 (data: 7.51, client: 1.5.2, server: 1.5.2) ==
"scalac" is not found on the PATH. Scala files will not be recompiled
WARNING:
The cleanup script will delete all folders created by MCP, including the
src folder which may contain changes you made to the code, along with any
saved worlds from the client or server.
If you really want to clean up, enter "Yes"
PLEASE help as far as i know i set up every thing correctly!
New POTIONS!!!!!
It would be EPIC!!!!!!
+1 For You! You'r amazing, you make very good videos to follow!
Download my file by this link( http://www.filedropper.com/lib ). All files from this archive, you downloaded have to be putted in [yourmoddingfolder/lib] folder. So go to your modding folder, and find the lib folder inside of it. And put files inside ( not archive, only files from archive )
here is the log:
19:59:55 - !! Modified jar detected. Unpredictable results !!
20:00:01 - '"C:\Program Files\Java\jdk1.7.0_45\bin\java" -cp "runtime\bin\retroguard.jar;lib;lib\*;jars\bin\mine...' failed : 1
20:00:01 -
20:00:01 - == ERRORS FOUND ==
20:00:01 -
20:00:01 - Unrecoverable error during obfuscation, see log file for details.
20:00:01 - RetroGuard error: COM.rl.obf.classfile.ClassFileException: ClassNotFound akn
20:00:01 - COM.rl.obf.classfile.ClassFileException: ClassNotFound akn
20:00:01 - at COM.rl.obf.Cl$ExtNameListUp.<init>(Cl.java:1540)
20:00:01 - at COM.rl.obf.Cl.getExtNameListUp(Cl.java:1511)
20:00:01 - at COM.rl.obf.Cl.resolveThis(Cl.java:892)
20:00:01 - at COM.rl.obf.Cl.resolveNameSpaceExcept(Cl.java:853)
20:00:01 - at COM.rl.obf.Cl.resolveOptimally(Cl.java:646)
20:00:01 - at COM.rl.obf.ClassTree$6.classAction(ClassTree.java:687)
20:00:01 - at COM.rl.obf.ClassTree.walkTree(ClassTree.java:1488)
20:00:01 - at COM.rl.obf.ClassTree.walkTree(ClassTree.java:1480)
20:00:01 - at COM.rl.obf.ClassTree.walkTree(ClassTree.java:1452)
20:00:01 - at COM.rl.obf.ClassTree.resolveClasses(ClassTree.java:682)
20:00:01 - at COM.rl.obf.GuardDB.createMap(GuardDB.java:437)
20:00:01 - at COM.rl.obf.GuardDB.remapTo(GuardDB.java:464)
20:00:01 - at COM.rl.obf.RetroGuardImpl.run(RetroGuardImpl.java:182)
20:00:01 - at COM.rl.obf.RetroGuardImpl.obfuscate(RetroGuardImpl.java:131)
20:00:01 - at COM.rl.obf.RetroGuardImpl.obfuscate(RetroGuardImpl.java:113)
20:00:01 - at RetroGuard.main(RetroGuard.java:90)
20:00:01 - ==================
20:00:01 -
20:00:01 - Decompile failed
20:02:53 - !! Modified jar detected. Unpredictable results !!
20:02:56 - '"C:\Program Files\Java\jdk1.7.0_45\bin\java" -cp "runtime\bin\retroguard.jar;lib;lib\*;jars\bin\mine...' failed : 1
20:02:56 -
20:02:56 - == ERRORS FOUND ==
20:02:56 -
20:02:56 - Unrecoverable error during obfuscation, see log file for details.
20:02:56 - RetroGuard error: COM.rl.obf.classfile.ClassFileException: ClassNotFound akn
20:02:56 - COM.rl.obf.classfile.ClassFileException: ClassNotFound akn
20:02:56 - at COM.rl.obf.Cl$ExtNameListUp.<init>(Cl.java:1540)
20:02:56 - at COM.rl.obf.Cl.getExtNameListUp(Cl.java:1511)
20:02:56 - at COM.rl.obf.Cl.resolveThis(Cl.java:892)
20:02:56 - at COM.rl.obf.Cl.resolveNameSpaceExcept(Cl.java:853)
20:02:56 - at COM.rl.obf.Cl.resolveOptimally(Cl.java:646)
20:02:56 - at COM.rl.obf.ClassTree$6.classAction(ClassTree.java:687)
20:02:56 - at COM.rl.obf.ClassTree.walkTree(ClassTree.java:1488)
20:02:56 - at COM.rl.obf.ClassTree.walkTree(ClassTree.java:1480)
20:02:56 - at COM.rl.obf.ClassTree.walkTree(ClassTree.java:1452)
20:02:56 - at COM.rl.obf.ClassTree.resolveClasses(ClassTree.java:682)
20:02:56 - at COM.rl.obf.GuardDB.createMap(GuardDB.java:437)
20:02:56 - at COM.rl.obf.GuardDB.remapTo(GuardDB.java:464)
20:02:56 - at COM.rl.obf.RetroGuardImpl.run(RetroGuardImpl.java:182)
20:02:56 - at COM.rl.obf.RetroGuardImpl.obfuscate(RetroGuardImpl.java:131)
20:02:56 - at COM.rl.obf.RetroGuardImpl.obfuscate(RetroGuardImpl.java:113)
20:02:56 - at RetroGuard.main(RetroGuard.java:90)
20:02:56 - ==================
20:02:56 -
20:02:56 - Decompile failed
please help me
i wont to try to make mods
so i can't use modloader
Maybe install modloader after decompile?
Error: Could not find or load main class Start
package net.minecraft.src;
import java.util.Random;
public class mod_minecraft extends BaseMod
{
public static final Item stonestick = new ItemStoneStick(2085).setItemName("stonesticksssss");
public void load()
{
stonestick.iconIndex = ModLoader.addOverride("/gui/items.png" , "/items/pic.png");
ModLoader.addName(stonestick, "Stonestick");
}
public String getVersion()
{
return "3.14159265";
here's the error i got: Error: Could not find or load main class net.minecraft.server.MinecraftServer
what is wrong now when i used modloader.
this is just a modding tut so it doesn't really need to do anything...
E
main script:
public class Infinity {
public static Item OSIngot;
public static Block OsmiumOre;
@Init
public void load(FMLInitializationEvent event){
OSIngot = new NewItems(3001).setItemName ("OSIngot").setMaxStackSize(64).setTextureFile("/Textures/Items/os_ingot.png");
OsmiumOre = new NewBlocks(3002,"Osmium Ore").setHardness(2.0F).setStepSound(Block.soundMetalFootstep).setResistance(10.0F).setTextureFile("/Textures/Blocks/osore.png");
LanguageRegistry.addName(OSIngot, "Osmium Ingot");
LanguageRegistry.addName(OsmiumOre, "Osmium Ore");
}
}
Newitem class:
package SlayeRAIN.Infinity;
import net.minecraft.item.Item;
import cpw.mods.fml.relauncher.*;
import net.minecraft.creativetab.CreativeTabs;
public class NewItems extends Item {
public NewItems(int par1) {
super(par1);
setCreativeTab(CreativeTabs.tabMaterials);
}
}
Newblock class:
package SlayeRAIN.Infinity;
import java.util.Random;
import cpw.mods.fml.common.Mod.Init;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.registry.LanguageRegistry;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.creativetab.CreativeTabs;
public class NewBlocks extends Block {
public NewBlocks(int par1, String texture) {
super(par1, Material.rock);
setCreativeTab(CreativeTabs.tabBlock);
}
public int idDropped(int par1, Random par2Random, int par3)
{
return Infinity.OsmiumOre.blockID;
}
public int quantityDropped(Random random)
{
return 1;
}
public String getTextureFile(){
return "/Textures/Blocks/osore.png";
}
}
I made folder in minecraft.jar Textures/Blocks(Items) and put there your renamed png files for test. Well, as i said item has no texure and block doesnt pop up at all. I couldn't use .setUnlocalizedName i guess forg 6.2.2 don't have it. Could i have some assistance with it? I tried figure on my own but failed.
So if anyone knows how to do it for 1.6.4 that would help a bunch.
Sincerely, ZeScratch
PS: Pinch and a Punch for the first complaint of the month
First, there is a code tag, so you can put your code in that, and second, you need to post the error log to get any help, otherwise we can't really tell you anything.
Main Script:
MCP Detected already, not downloading
Setting up MCP
Restoring commands.py backup
patching file commands.py
Hunk #7 succeeded at 768 (offset -2 lines).
Hunk #9 succeeded at 1083 (offset -2 lines).
Hunk #11 succeeded at 1130 (offset -2 lines).
Hunk #13 succeeded at 1151 (offset -2 lines).
Hunk #15 succeeded at 1425 (offset -2 lines).
Hunk #17 succeeded at 1523 (offset -2 lines).
Hunk #19 succeeded at 1637 (offset -2 lines).
Hunk #21 succeeded at 1723 (offset -2 lines).
Commands patch applied successfully
Copying FML conf
Creating re-packaged srg
Creating re-packaged exc
Creating re-packaged MCP patches
== MCP 7.44 (data: 7.51, client: 1.5.2, server: 1.5.2) ==
"scalac" is not found on the PATH. Scala files will not be recompiled
WARNING:
The cleanup script will delete all folders created by MCP, including the
src folder which may contain changes you made to the code, along with any
saved worlds from the client or server.
If you really want to clean up, enter "Yes"
PLEASE help as far as i know i set up every thing correctly!
-Gizmo