I am searching through the src folder I dont seem to find any water, lava, plants,etc .java files are they some special blocks?? and where can I find them??
I'v tried rearranging a couple ways but i couldnt get it to work heres what i have:
public class mod_BlockBus extends BaseMod{
int x;
int y;
int z;
int id;
String dir;
//World world;
public mod_BlockBus(int i, int j){
//super.(i, j, Material.rock);
int x;
int y;
int z;
int id;
String dir = new String();
boolean exists;
BusManager.addBusSegment(this);
setDirection();
ModLoader.AddName(bus, "Redstone Bus");
ModLoader.addRecipe(new ItemStack(Block.bus, 1), new Object[] {
"#R#", "R#R", "#R#", Character.valueOf('#'), Block.cobblestone,
Character.valueOf('R'), Item.redstone});
}
public String Version(){
return "1.7.3";
}
//public void AddRecipe(CraftingManager recipes){
//}
public static final Block bus;
// = new Block(251).setItemName("bus");
static{
mod_BlockBus = (new BlockBus(251, ModLoader.addOverride("terrian.png",
"/gui/bus.png", 0))).setBlockName("Redstone Bus").setHardness(1.5F).setResistance
(10F).setStepSound(Block.soundStoneFootstep);
}
this snipet should be enough but if you need more just say so
ok so the remaining 10 errors are caused by not finding the other classes. i think the problem is i couldnt reobfuscate because it couldnt find the bins. i copied my changed files to safe place, cleaned up, and decompiled. RenderBlocks failed. could this be the problem?
IDK if there is anything wrong with ints and all but I know that .setStepSound doesn't work in mod_ files, you need to add it into the actual block file.
".setStepSound" works, you just need to make sure the sound you refrence has "Block." in front of it since all of the vanilla sounds are there. (and OFC that's it's in Block to begin with :tongue.gif:, but i'm sure you know this, since you seem to be an expert coder)
can some1 tell what I need to type so that I can walk through my block? and what I need to type so that it falls to the ground with gravity (like sand)
".setStepSound" works, you just need to make sure the sound you refrence has "Block." in front of it since all of the vanilla sounds are there. (and OFC that's it's in Block to begin with :tongue.gif:, but i'm sure you know this, since you seem to be an expert coder)
Ok, I'm helping hunter809 make a mod that lets you breathe underwater. I know how to make armor, but how do I make it so that when you wear it, you can breathe underwater? What code do I insert to make this possible?
Rollback Post to RevisionRollBack
I just took the Minecraft Noob test! Check out what I scored. Think you can beat me?!
Can I get some help here plz =D
I made an item called Donut and when I recompiled it, i had no problems but when I went to test the mod, the game opened showed the mojang logo then it crashed and I got this message:
java.lang.RuntimeException: java.lang.Exception: Image not found: Donut.png
at net.minecraft.src.ModLoader.RegisterAllTextureOverrides(ModLoader.java:1161)
at net.minecraft.src.ModLoader.OnTick(ModLoader.java:882)
at net.minecraft.src.EntityRendererProxy.updateCameraAndRender(EntityRendererProxy.java:24)
at net.minecraft.client.Minecraft.run(Minecraft.java:514)
at java.lang.Thread.run(Thread.java:722)
Caused by: java.lang.Exception: Image not found: Donut.png
at net.minecraft.src.ModLoader.loadImage(ModLoader.java:846)
at net.minecraft.src.ModLoader.RegisterAllTextureOverrides(ModLoader.java:1153)
... 4 more
--- END ERROR REPORT c3a2e7cb ----------
(not an expert) I think it says that It couldn't find Donut.png I put the image in: mcp43\bin\minecraft
Ok, I'm helping hunter809 make a mod that lets you breathe underwater. I know how to make armor, but how do I make it so that when you wear it, you can breathe underwater? What code do I insert to make this possible?
You need to use the
public boolean OnTickInGame(Minecraft minecraft)
method. And you have to put
ModLoader.SetInGUIHook(this, true, false);
In the
public mod_XXX()
method. The OnTickInGame method makes everything you put into it run constantly while the game is running.
* Edit - You might also have to import net.minecraft.client.Minecraft
I cant get this to work ): i add a new block, add a crafting recipe, run recompile, trying test_game
then this text appear: error cant find main class.start
I have no knowledge though
Can I get some help here plz =D
I made an item called Donut and when I recompiled it, i had no problems but when I went to test the mod, the game opened showed the mojang logo then it crashed and I got this message:
java.lang.RuntimeException: java.lang.Exception: Image not found: Donut.png
at net.minecraft.src.ModLoader.RegisterAllTextureOverrides(ModLoader.java:1161)
at net.minecraft.src.ModLoader.OnTick(ModLoader.java:882)
at net.minecraft.src.EntityRendererProxy.updateCameraAndRender(EntityRendererProxy.java:24)
at net.minecraft.client.Minecraft.run(Minecraft.java:514)
at java.lang.Thread.run(Thread.java:722)
Caused by: java.lang.Exception: Image not found: Donut.png
at net.minecraft.src.ModLoader.loadImage(ModLoader.java:846)
at net.minecraft.src.ModLoader.RegisterAllTextureOverrides(ModLoader.java:1153)
... 4 more
--- END ERROR REPORT c3a2e7cb ----------
(not an expert) I think it says that It couldn't find Donut.png I put the image in: mcp43\bin\minecraft
src\minecraft\net\minecraft\src\mod_RockCraft.java:5: cannot find symbol
symbol : constructor BlockRock(int)
location: class net.minecraft.src.BlockRock
private static Block rock = new BlockRock(100).setHardness(1.5F).setBlockName("R
ock");
^
Please help!
I am making block for modloader.
the "mod_" has to be in the construtor name too.
also why isnt my mod finding Block, World, Item, or ItemStack? aha! that explains a lot. i was using a separate file for the mod_.
Can I get some help here plz =D
I made an item called Donut and when I recompiled it, i had no problems but when I went to test the mod, the game opened showed the mojang logo then it crashed and I got this message:
java.lang.RuntimeException: java.lang.Exception: Image not found: Donut.png
at net.minecraft.src.ModLoader.RegisterAllTextureOverrides(ModLoader.java:1161)
at net.minecraft.src.ModLoader.OnTick(ModLoader.java:882)
at net.minecraft.src.EntityRendererProxy.updateCameraAndRender(EntityRendererProxy.java:24)
at net.minecraft.client.Minecraft.run(Minecraft.java:514)
at java.lang.Thread.run(Thread.java:722)
Caused by: java.lang.Exception: Image not found: Donut.png
at net.minecraft.src.ModLoader.loadImage(ModLoader.java:846)
at net.minecraft.src.ModLoader.RegisterAllTextureOverrides(ModLoader.java:1153)
... 4 more
--- END ERROR REPORT c3a2e7cb ----------
(not an expert) I think it says that It couldn't find Donut.png I put the image in: mcp43\bin\minecraft
== ERRORS FOUND ==
src\minecraft\net\minecraft\src\mod_SoupItem.java:3: error: '{' expected
public class mod_SoupItem extends BaseMod
^
src\minecraft\net\minecraft\src\mod_SoupItem.java:27: error: reached end of file
while parsing
}
^
2 errors
mod_SoupItem.java :
package net.minecraft.src;
public class mod_SoupItem extends BaseMod
public mod_SoupItem()
{
ModLoader.AddName(soupItem, "Soup");
}
public static final Item soupItem;
static
{
soupItem = (new ItemSoup(4001, 11)).setIconIndex(ModLoader.addOverride("/gui/items.png", "Soup.png")).setItemName("soupItem");
}
public String Version()
{
return "1";
}
public void AddRecipes(CraftingManager craftingmanager)
{
craftingmanager.addRecipe(new ItemStack(soupItem), new Object[]{
" ### ", "###", Character.valueOf('#'), Block.dirt
});
}
ItemSoup.java :
package net.minecraft.src;
public class ItemSoup extends Item
{
private int healAmount;
public ItemSoup (int i, int j)
{
super(i);
healAmount = j;
maxStackSize = 1;
}
public ItemStack onItemRightClick(ItemStack itemstack, World world, EntityPlayer entityplayer)
{
itemstack.stackSize--;
entityplayer.heal(healAmount);
return itemstack;
}
}
Look at the code of a block that already does that >.>
Like what??? water?
Water, lava, plants, torches, redstone torches, redstone wire, the list goes on...
Like a fair third of the things in MC have no collision :tongue.gif:
== ERRORS FOUND ==
src\minecraft\net\minecraft\src\mod_SoupItem.java:3: error: '{' expected
public class mod_SoupItem extends BaseMod
^
src\minecraft\net\minecraft\src\mod_SoupItem.java:27: error: reached end of file
while parsing
}
^
2 errors
mod_SoupItem.java :
package net.minecraft.src;
public class mod_SoupItem extends BaseMod
public mod_SoupItem()
{
ModLoader.AddName(soupItem, "Soup");
}
public static final Item soupItem;
static
{
soupItem = (new ItemSoup(4001, 11)).setIconIndex(ModLoader.addOverride("/gui/items.png", "Soup.png")).setItemName("soupItem");
}
public String Version()
{
return "1";
}
public void AddRecipes(CraftingManager craftingmanager)
{
craftingmanager.addRecipe(new ItemStack(soupItem), new Object[]{
" ### ", "###", Character.valueOf('#'), Block.dirt
});
}
ItemSoup.java :
package net.minecraft.src;
public class ItemSoup extends Item
{
private int healAmount;
public ItemSoup (int i, int j)
{
super(i);
healAmount = j;
maxStackSize = 1;
}
public ItemStack onItemRightClick(ItemStack itemstack, World world, EntityPlayer entityplayer)
{
itemstack.stackSize--;
entityplayer.heal(healAmount);
return itemstack;
}
}
ok so the remaining 10 errors are caused by not finding the other classes. i think the problem is i couldnt reobfuscate because it couldnt find the bins. i copied my changed files to safe place, cleaned up, and decompiled. RenderBlocks failed. could this be the problem?
".setStepSound" works, you just need to make sure the sound you refrence has "Block." in front of it since all of the vanilla sounds are there. (and OFC that's it's in Block to begin with :tongue.gif:, but i'm sure you know this, since you seem to be an expert coder)
== ERRORS FOUND ==
src\minecraft\net\minecraft\src\mod_SoupItem.java:3: error: '{' expected
public class mod_SoupItem extends BaseMod
^
src\minecraft\net\minecraft\src\mod_SoupItem.java:27: error: reached end of file
while parsing
}
^
2 errors
mod_SoupItem.java :
package net.minecraft.src;
public class mod_SoupItem extends BaseMod
public mod_SoupItem()
{
ModLoader.AddName(soupItem, "Soup");
}
public static final Item soupItem;
static
{
soupItem = (new ItemSoup(4001, 11)).setIconIndex(ModLoader.addOverride("/gui/items.png", "Soup.png")).setItemName("soupItem");
}
public String Version()
{
return "1";
}
public void AddRecipes(CraftingManager craftingmanager)
{
craftingmanager.addRecipe(new ItemStack(soupItem), new Object[]{
" ### ", "###", Character.valueOf('#'), Block.dirt
});
}
ItemSoup.java :
package net.minecraft.src;
public class ItemSoup extends Item
{
private int healAmount;
public ItemSoup (int i, int j)
{
super(i);
healAmount = j;
maxStackSize = 1;
}
public ItemStack onItemRightClick(ItemStack itemstack, World world, EntityPlayer entityplayer)
{
itemstack.stackSize--;
entityplayer.heal(healAmount);
return itemstack;
}
}
Expert? Thats funny :tongue.gif:
src\minecraft\net\minecraft\src\mod_SoupItem.java:3: error: '{' expected
public class mod_SoupItem extends BaseMod
^
src\minecraft\net\minecraft\src\mod_SoupItem.java:27: error: reached end of file
while parsing
}
^
I just took the Minecraft Noob test! Check out what I scored. Think you can beat me?!
To take the test, check out
https://minecraftnoobtest.com/test.php
Don't click this link, HE is haunting it...
I made an item called Donut and when I recompiled it, i had no problems but when I went to test the mod, the game opened showed the mojang logo then it crashed and I got this message:
java.lang.RuntimeException: java.lang.Exception: Image not found: Donut.png
at net.minecraft.src.ModLoader.RegisterAllTextureOverrides(ModLoader.java:1161)
at net.minecraft.src.ModLoader.OnTick(ModLoader.java:882)
at net.minecraft.src.EntityRendererProxy.updateCameraAndRender(EntityRendererProxy.java:24)
at net.minecraft.client.Minecraft.run(Minecraft.java:514)
at java.lang.Thread.run(Thread.java:722)
Caused by: java.lang.Exception: Image not found: Donut.png
at net.minecraft.src.ModLoader.loadImage(ModLoader.java:846)
at net.minecraft.src.ModLoader.RegisterAllTextureOverrides(ModLoader.java:1153)
... 4 more
--- END ERROR REPORT c3a2e7cb ----------
(not an expert) I think it says that It couldn't find Donut.png I put the image in: mcp43\bin\minecraft
What do I need to do to fix this?
You need to use the method. And you have to put In the method. The OnTickInGame method makes everything you put into it run constantly while the game is running.
* Edit - You might also have to import net.minecraft.client.Minecraft
Also, check out my YouTube channel: www.YouTube.com/StrongJoshua
People call me that too sometimes :tongue.gif:
Also, check out my YouTube channel: www.YouTube.com/StrongJoshua
then this text appear: error cant find main class.start
I have no knowledge though
I made an item called Donut and when I recompiled it, i had no problems but when I went to test the mod, the game opened showed the mojang logo then it crashed and I got this message:
java.lang.RuntimeException: java.lang.Exception: Image not found: Donut.png
at net.minecraft.src.ModLoader.RegisterAllTextureOverrides(ModLoader.java:1161)
at net.minecraft.src.ModLoader.OnTick(ModLoader.java:882)
at net.minecraft.src.EntityRendererProxy.updateCameraAndRender(EntityRendererProxy.java:24)
at net.minecraft.client.Minecraft.run(Minecraft.java:514)
at java.lang.Thread.run(Thread.java:722)
Caused by: java.lang.Exception: Image not found: Donut.png
at net.minecraft.src.ModLoader.loadImage(ModLoader.java:846)
at net.minecraft.src.ModLoader.RegisterAllTextureOverrides(ModLoader.java:1153)
... 4 more
--- END ERROR REPORT c3a2e7cb ----------
(not an expert) I think it says that It couldn't find Donut.png I put the image in: mcp43\bin\minecraft
What do I need to do to fix this?
the "mod_" has to be in the construtor name too.
also why isnt my mod finding Block, World, Item, or ItemStack? aha! that explains a lot. i was using a separate file for the mod_.What image location did you specify in the code?
Also, check out my YouTube channel: www.YouTube.com/StrongJoshua