Is there a way I can make a block drop more than one kind of item?
If you mean make a block drop different items at once, no, I don't think so. However, you can make several different blocks that drop different things, but change the texture to make them all look the same. It'll be as if one block drops different things!
I don't think it has anything to do with the ID. I added in the block before adding the generation code, made a new SUPERFLAT world at that time and it didn't crash. Everything with the block itself is fine.
And yes, the error log was in a previous post.
well it doesn't hurt to try...
anyway...i gotta find the error log and i'll see whats wrong.....i was coding some stuff, so i didn't see it yet...
well i looked at the code u had, the main file seems to be fine... and this is my ore generation class -
package mods.mod_MoreBlocks.Common.Blocks;
import java.util.Random;
import mods.mod_MoreBlocks.Common.mod_MoreBlocks;
import net.minecraft.world.World;
import net.minecraft.world.chunk.IChunkProvider;
import net.minecraft.world.gen.feature.WorldGenMinable;
import cpw.mods.fml.common.IWorldGenerator;
public class WorldGenEinsteiniumOre implements IWorldGenerator {
@Override
public void generate(Random random, int chunkX, int chunkZ, World world,
IChunkProvider chunkGenerator, IChunkProvider chunkProvider) {
switch (world.provider.dimensionId) {
case 1:
generateNether(world, random, chunkX * 16, chunkZ * 16);
case 0:
generateSurface(world, random, chunkX * 16, chunkZ * 16);
case -1:
generateEnd(world, random, chunkX * 16, chunkZ * 16);
}
}
private void generateEnd(World world, Random random, int chunkX, int chunkZ) {
}
private void generateSurface(World world, Random random, int chunkX,
int chunkZ) {
for (int i = 0; i < 15; i++) {
int xCoord = chunkX + random.nextInt(16);
int yCoord = random.nextInt(64);
int zCoord = chunkZ + random.nextInt(16);
(new WorldGenMinable(mod_MoreBlocks.BlockEinsteiniumOre.blockID, 3)).generate(
world, random, xCoord, yCoord, zCoord);
}
}
private void generateNether(World world, Random random, int chunkX,
int chunkZ) {
}
}
it think you need these parts in it...i'm not entirely sure you need these, cause my ore doesn't generate in the end or nether....but....yeah....
@Override
public void generate(Random random, int chunkX, int chunkZ, World world,
IChunkProvider chunkGenerator, IChunkProvider chunkProvider) {
switch (world.provider.dimensionId) {
case 1:
generateNether(world, random, chunkX * 16, chunkZ * 16);
case 0:
generateSurface(world, random, chunkX * 16, chunkZ * 16);
case -1:
generateEnd(world, random, chunkX * 16, chunkZ * 16);
}
public void onBlockDestroyedByPlayer(World par1World, int par2, int par3,
int par4, int par5) {
if(!par1World.isRemote){
par1World.spawnEntityInWorld(new EntityItem(par1World, par2, par3,
par4, new ItemStack(Item.flint, 1, 0)));
}
}
where is says "new ItemStack(Item.flint, 1, 0)));" change the "1" and then you can get more flints or what ever
if you put "par1World.spawnEntityInWorld(new EntityItem(par1World, par2, par3,
par4, new ItemStack(this.BlockID, 1, 0)));" it will drop 2 of the type of blocks, even if it's at "1", so putting this to "2" will give you 3 of the block.
at TXX59.Smiley.WorldGeneratorSmiley.generateSurface(WorldGeneratorSmiley.java:28) at TXX59.Smiley.WorldGeneratorSmiley.generate(WorldGeneratorSmiley.java:17)
which is this -
int Xcoord = BlockX + random.nextInt(48);
int Zcoord = BlockZ + random.nextInt(64);
int Ycoord = random.nextInt(16);
try changing them both to 16 and the Ycoord to 64...see if that works, cause mine's at 16 and 64..
HEEEEYY, it works!
The world has generated... Now I gotta see if the ores are there. (May take a while, my computer is a bit slow on Minecraft. Should've bought a computer with nVidia graphics instead of Intel...)
Though, another problem I have is reobfuscating my mod:
At the end, all I end up with in the reobf folder is an empty folder named 'minecraft'.
It also says at the end of the reobfuscation:
== MCP 7.51 (data: 7.51, client: 1.5.2, server: 1.5.2) ==
"scalac" is not found on the PATH. Scala files will not be recompiled
# found ff, ff patches, srgs, name csvs, doc csvs, param csvs, renumber csvs, astyle, astyle config
>Creating Retroguard config files
== Reobfuscating client ==
> Cleaning reobf
> Generating md5s
> Packing jar
> Reobfuscating jar
> Extracting modified classes
- Done in 66.63 seconds
!! Can not find server md5s !!
Press any key to continue . . .
Help?
i'm glad it works now!
ooooooooohhhhh gooooddddd...............i had the reobawrgbaoiw problem too...it took me a while and i'm not totally sure how i fixed it... i did a few things.... here's what i did (not sure which one will work) -
- i went into the "src" folder and took out my mod (moved it to desktop) then deleted the mcp folder, re-downloaded and put my stuff back in
- i also (not deleted the mcp folder) took out my mod, and re-installed the forge src...
- i think i also "recompiled" before i did the "reobsu-blah-blah"....idk if that worked..
idk which one worked...but some how it works now..
Well, your 'recompiling' and 'reobfuscating' worked... I think.
Now, instead of the minecraft folder being empty, I find inside of it another folder called 'TXX59', with another folder inside called 'Smiley', which has all my classes inside. Now what?
Also, why not? Aren't those batch files supposed to update your environment?
It worked then! now the only problem with the reobsuficate thing is that it doesn't copy over ur textures...so u have to put them in, and now in the folder that has "TXX59" right click it and add to archive (need WinRAR) and then release it!
oh and i'm not really sure what those other bat files do... so i don't mess with them....
Where do I put in the textures?
And WOW, we are a bit like the most active people here.
well, depending on how you coded your mod...
for me, i have a folder called "textrues" in a folder called "mod_MoreBlocks". In that "mod_" folder there is also "Common" and "Client", i put my class files in "Common"...
idk how your mod is laid out, so you might have to experiment.
also, idk if yours will work when you install it in the "mods" folder in the ".minecraft" for forge, since idk if your mod has edited a bass class....
public void onBlockDestroyedByPlayer(World par1World, int par2, int par3,
int par4, int par5) {
if(!par1World.isRemote){
par1World.spawnEntityInWorld(new EntityItem(par1World, par2, par3,
par4, new ItemStack(Item.flint, 1, 0)));
}
}
I'm not exactly sure what to do with this.
This is what I have right now
package BrighamX.KTTonium;
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.client.renderer.texture.IconRegister;
import net.minecraft.creativetab.CreativeTabs;
public class VoidOre extends Block {
public VoidOre(int par1, String texture) {
super(par1, Material.rock);
setCreativeTab(CreativeTabs.tabBlock);
}
public int idDropped(int par1, Random par2Random, int par3)
{
return KTToniumMain.voidinium.itemID;
return KTToniumMain.taintedbedrockchunk.itemID;
}
public int quantityDropped(Random random)
{
return 3;
}
public String getTextureFile(){
return "/textures/blocks/VoidOre.png";
}
I'm not exactly sure what to do with this.
This is what I have right now
package BrighamX.KTTonium;
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.client.renderer.texture.IconRegister;
import net.minecraft.creativetab.CreativeTabs;
public class VoidOre extends Block {
public VoidOre(int par1, String texture) {
super(par1, Material.rock);
setCreativeTab(CreativeTabs.tabBlock);
}
public int idDropped(int par1, Random par2Random, int par3)
{
return KTToniumMain.voidinium.itemID;
return KTToniumMain.taintedbedrockchunk.itemID;
}
public int quantityDropped(Random random)
{
return 3;
}
public String getTextureFile(){
return "/textures/blocks/VoidOre.png";
}
ok put the code i gave above the "public string gettexturefile"
once you do this and you try to test it, and it crashes or it doesn't work, try removing the "idDropped" and "quantityDropped" statments, and try again.. if it still doesn't work, then come back and tells me, also give any error ness
ok put the code i gave above the "public string gettexturefile"
once you do this and you try to test it, and it crashes or it doesn't work, try removing the "idDropped" and "quantityDropped" statments, and try again.. if it still doesn't work, then come back and tells me, also give any error ness
So can anybody help me with this problem? I am trying to make a certain type of armor in my game and have it have infinite durability. If I set the durability to 0 in my EnumArmorMaterial type it doesn't do any protection. I have tried to implement ISpecialArmor, and whenever I get hit by a mob my game crashes with this inside the client:
Minecraft has crashed!
----------------------
Minecraft has stopped running because it encountered a problem; Ticking entity
A full error report has been saved to C:\Users\Leo\Desktop\MCP\jars\.\crash-reports\crash-2013-06-14_22.03.14-server.txt - Please include a copy of that file (Not this screen!) if you report this crash to anyone; without it, they will not be able to help fix the crash
--- BEGIN ERROR REPORT d6bb7984 --------
Full report at:
C:\Users\Leo\Desktop\MCP\jars\.\crash-reports\crash-2013-06-14_22.03.14-server.txt
Please show that file to Mojang, NOT just this screen!
Generated 6/14/13 10:03 PM
-- Head --
Stacktrace:
at net.minecraftforge.common.ISpecialArmor$ArmorProperties.ApplyArmor(ISpecialArmor.java:112)
at net.minecraft.entity.player.EntityPlayer.damageEntity(EntityPlayer.java:1176)
at net.minecraft.entity.EntityLiving.attackEntityFrom(EntityLiving.java:1060)
at net.minecraft.entity.player.EntityPlayer.attackEntityFrom(EntityPlayer.java:1075)
at net.minecraft.entity.player.EntityPlayerMP.attackEntityFrom(EntityPlayerMP.java:453)
at net.minecraft.entity.monster.EntityMob.attackEntityAsMob(EntityMob.java:118)
at net.minecraft.entity.monster.EntityZombie.attackEntityAsMob(EntityZombie.java:211)
at net.minecraft.entity.ai.EntityAIAttackOnCollide.updateTask(EntityAIAttackOnCollide.java:119)
at net.minecraft.entity.ai.EntityAITasks.onUpdateTasks(EntityAITasks.java:123)
at net.minecraft.entity.EntityLiving.updateAITasks(EntityLiving.java:2110)
at net.minecraft.entity.EntityLiving.onLivingUpdate(EntityLiving.java:1835)
at net.minecraft.entity.monster.EntityMob.onLivingUpdate(EntityMob.java:37)
at net.minecraft.entity.monster.EntityZombie.onLivingUpdate(EntityZombie.java:187)
at net.minecraft.entity.EntityLiving.onUpdate(EntityLiving.java:858)
at net.minecraft.entity.monster.EntityMob.onUpdate(EntityMob.java:45)
at net.minecraft.entity.monster.EntityZombie.onUpdate(EntityZombie.java:206)
at net.minecraft.world.World.updateEntityWithOptionalForce(World.java:2337)
at net.minecraft.world.WorldServer.updateEntityWithOptionalForce(WorldServer.java:717)
at net.minecraft.world.World.updateEntity(World.java:2299)
-- Entity being ticked --
Details:
Entity Type: Zombie (net.minecraft.entity.monster.EntityZombie)
Entity ID: 743
Entity Name: Zombie
Entity's Exact location: 194.66, 65.00, 219.21
Entity's Block location: World: (194,65,219), Chunk: (at 2,4,11 in 12,13; contains blocks 192,0,208 to 207,255,223), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)
Entity's Momentum: 0.05, -0.08, 0.03
Stacktrace:
at net.minecraft.world.World.updateEntities(World.java:2145)
at net.minecraft.world.WorldServer.updateEntities(WorldServer.java:546)
-- Affected level --
Details:
Level name: New Worlda
All players: 1 total; [EntityPlayerMP['Player662'/313, l='New Worlda', x=195.70, y=65.00, z=219.70]]
Chunk stats: ServerChunkCache: 604 Drop: 0
Level seed: 8725721272671267133
Level generator: ID 00 - default, ver 1. Features enabled: true
Level generator options:
Level spawn location: World: (200,64,256), Chunk: (at 8,4,0 in 12,16; contains blocks 192,0,256 to 207,255,271), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)
Level time: 2118 game time, 14277 day time
Level dimension: 0
Level storage version: 0x04ABD - Anvil
Level weather: Rain time: 101607 (now: false), thunder time: 58403 (now: false)
Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: true
Stacktrace:
at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:652)
at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:571)
at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:127)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:469)
at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16)
-- System Details --
Details:
Minecraft Version: 1.5.2
Operating System: Windows 7 (amd64) version 6.1
Java Version: 1.7.0_21, Oracle Corporation
Java VM Version: Java HotSpot™ 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 805302152 bytes (767 MB) / 1056309248 bytes (1007 MB) up to 1056309248 bytes (1007 MB)
JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
AABB Pool Size: 5499 (307944 bytes; 0 MB) allocated, 3055 (171080 bytes; 0 MB) used
Suspicious classes: FML and Forge are installed
IntCache: cache: 0, tcache: 0, allocated: 3, tallocated: 63
FML: MCP v7.51 FML v5.2.2.684 Minecraft Forge 7.8.0.684 4 mods loaded, 4 mods active
mcp{7.44} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
FML{5.2.2.684} [Forge Mod Loader] (coremods) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
Forge{7.8.0.684} [Minecraft Forge] (coremods) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
BurritoMod{v1} [Void Mod] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
Profiler Position: N/A (disabled)
Vec3 Pool Size: 1034 (57904 bytes; 0 MB) allocated, 927 (51912 bytes; 0 MB) used
Player Count: 1 / 8; [EntityPlayerMP['Player662'/313, l='New Worlda', x=195.70, y=65.00, z=219.70]]
Type: Integrated Server (map_client.txt)
Is Modded: Definitely; Client brand changed to 'fml,forge'
java.lang.NullPointerException
at net.minecraftforge.common.ISpecialArmor$ArmorProperties.ApplyArmor(ISpecialArmor.java:112)
at net.minecraft.entity.player.EntityPlayer.damageEntity(EntityPlayer.java:1176)
at net.minecraft.entity.EntityLiving.attackEntityFrom(EntityLiving.java:1060)
at net.minecraft.entity.player.EntityPlayer.attackEntityFrom(EntityPlayer.java:1075)
at net.minecraft.entity.player.EntityPlayerMP.attackEntityFrom(EntityPlayerMP.java:453)
at net.minecraft.entity.monster.EntityMob.attackEntityAsMob(EntityMob.java:118)
at net.minecraft.entity.monster.EntityZombie.attackEntityAsMob(EntityZombie.java:211)
at net.minecraft.entity.ai.EntityAIAttackOnCollide.updateTask(EntityAIAttackOnCollide.java:119)
at net.minecraft.entity.ai.EntityAITasks.onUpdateTasks(EntityAITasks.java:123)
at net.minecraft.entity.EntityLiving.updateAITasks(EntityLiving.java:2110)
at net.minecraft.entity.EntityLiving.onLivingUpdate(EntityLiving.java:1835)
at net.minecraft.entity.monster.EntityMob.onLivingUpdate(EntityMob.java:37)
at net.minecraft.entity.monster.EntityZombie.onLivingUpdate(EntityZombie.java:187)
at net.minecraft.entity.EntityLiving.onUpdate(EntityLiving.java:858)
at net.minecraft.entity.monster.EntityMob.onUpdate(EntityMob.java:45)
at net.minecraft.entity.monster.EntityZombie.onUpdate(EntityZombie.java:206)
at net.minecraft.world.World.updateEntityWithOptionalForce(World.java:2337)
at net.minecraft.world.WorldServer.updateEntityWithOptionalForce(WorldServer.java:717)
at net.minecraft.world.World.updateEntity(World.java:2299)
at net.minecraft.world.World.updateEntities(World.java:2145)
at net.minecraft.world.WorldServer.updateEntities(WorldServer.java:546)
at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:652)
at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:571)
at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:127)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:469)
at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16)
--- END ERROR REPORT d380bdc4 ----------
java.lang.NullPointerException
at net.minecraftforge.common.ISpecialArmor$ArmorProperties.ApplyArmor(ISpecialArmor.java:112)
at net.minecraft.entity.player.EntityPlayer.damageEntity(EntityPlayer.java:1176)
at net.minecraft.entity.EntityLiving.attackEntityFrom(EntityLiving.java:1060)
at net.minecraft.entity.player.EntityPlayer.attackEntityFrom(EntityPlayer.java:1075)
at net.minecraft.entity.player.EntityPlayerMP.attackEntityFrom(EntityPlayerMP.java:453)
at net.minecraft.entity.monster.EntityMob.attackEntityAsMob(EntityMob.java:118)
at net.minecraft.entity.monster.EntityZombie.attackEntityAsMob(EntityZombie.java:211)
at net.minecraft.entity.ai.EntityAIAttackOnCollide.updateTask(EntityAIAttackOnCollide.java:119)
at net.minecraft.entity.ai.EntityAITasks.onUpdateTasks(EntityAITasks.java:123)
at net.minecraft.entity.EntityLiving.updateAITasks(EntityLiving.java:2110)
at net.minecraft.entity.EntityLiving.onLivingUpdate(EntityLiving.java:1835)
at net.minecraft.entity.monster.EntityMob.onLivingUpdate(EntityMob.java:37)
at net.minecraft.entity.monster.EntityZombie.onLivingUpdate(EntityZombie.java:187)
at net.minecraft.entity.EntityLiving.onUpdate(EntityLiving.java:858)
at net.minecraft.entity.monster.EntityMob.onUpdate(EntityMob.java:45)
at net.minecraft.entity.monster.EntityZombie.onUpdate(EntityZombie.java:206)
at net.minecraft.world.World.updateEntityWithOptionalForce(World.java:2337)
at net.minecraft.world.WorldServer.updateEntityWithOptionalForce(WorldServer.java:717)
at net.minecraft.world.World.updateEntity(World.java:2299)
at net.minecraft.world.World.updateEntities(World.java:2145)
at net.minecraft.world.WorldServer.updateEntities(WorldServer.java:546)
at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:652)
at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:571)
at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:127)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:469)
at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16)
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- Head --
Stacktrace:
at net.minecraftforge.common.ISpecialArmor$ArmorProperties.ApplyArmor(ISpecialArmor.java:112)
at net.minecraft.entity.player.EntityPlayer.damageEntity(EntityPlayer.java:1176)
at net.minecraft.entity.EntityLiving.attackEntityFrom(EntityLiving.java:1060)
at net.minecraft.entity.player.EntityPlayer.attackEntityFrom(EntityPlayer.java:1075)
at net.minecraft.entity.player.EntityPlayerMP.attackEntityFrom(EntityPlayerMP.java:453)
at net.minecraft.entity.monster.EntityMob.attackEntityAsMob(EntityMob.java:118)
at net.minecraft.entity.monster.EntityZombie.attackEntityAsMob(EntityZombie.java:211)
at net.minecraft.entity.ai.EntityAIAttackOnCollide.updateTask(EntityAIAttackOnCollide.java:119)
at net.minecraft.entity.ai.EntityAITasks.onUpdateTasks(EntityAITasks.java:123)
at net.minecraft.entity.EntityLiving.updateAITasks(EntityLiving.java:2110)
at net.minecraft.entity.EntityLiving.onLivingUpdate(EntityLiving.java:1835)
at net.minecraft.entity.monster.EntityMob.onLivingUpdate(EntityMob.java:37)
at net.minecraft.entity.monster.EntityZombie.onLivingUpdate(EntityZombie.java:187)
at net.minecraft.entity.EntityLiving.onUpdate(EntityLiving.java:858)
at net.minecraft.entity.monster.EntityMob.onUpdate(EntityMob.java:45)
at net.minecraft.entity.monster.EntityZombie.onUpdate(EntityZombie.java:206)
at net.minecraft.world.World.updateEntityWithOptionalForce(World.java:2337)
at net.minecraft.world.WorldServer.updateEntityWithOptionalForce(WorldServer.java:717)
at net.minecraft.world.World.updateEntity(World.java:2299)
-- Entity being ticked --
Details:
Entity Type: Zombie (net.minecraft.entity.monster.EntityZombie)
Entity ID: 743
Entity Name: Zombie
Entity's Exact location: 194.66, 65.00, 219.21
Entity's Block location: World: (194,65,219), Chunk: (at 2,4,11 in 12,13; contains blocks 192,0,208 to 207,255,223), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)
Entity's Momentum: 0.05, -0.08, 0.03
Stacktrace:
at net.minecraft.world.World.updateEntities(World.java:2145)
at net.minecraft.world.WorldServer.updateEntities(WorldServer.java:546)
-- Affected level --
Details:
Level name: New Worlda
All players: 1 total; [EntityPlayerMP['Player662'/313, l='New Worlda', x=195.70, y=65.00, z=219.70]]
Chunk stats: ServerChunkCache: 604 Drop: 0
Level seed: 8725721272671267133
Level generator: ID 00 - default, ver 1. Features enabled: true
Level generator options:
Level spawn location: World: (200,64,256), Chunk: (at 8,4,0 in 12,16; contains blocks 192,0,256 to 207,255,271), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)
Level time: 2118 game time, 14277 day time
Level dimension: 0
Level storage version: 0x04ABD - Anvil
Level weather: Rain time: 101607 (now: false), thunder time: 58403 (now: false)
Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: true
Stacktrace:
at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:652)
at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:571)
at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:127)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:469)
at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16)
-- System Details --
Details:
Minecraft Version: 1.5.2
Operating System: Windows 7 (amd64) version 6.1
Java Version: 1.7.0_21, Oracle Corporation
Java VM Version: Java HotSpot™ 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 805302152 bytes (767 MB) / 1056309248 bytes (1007 MB) up to 1056309248 bytes (1007 MB)
JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
AABB Pool Size: 5499 (307944 bytes; 0 MB) allocated, 3055 (171080 bytes; 0 MB) used
Suspicious classes: FML and Forge are installed
IntCache: cache: 0, tcache: 0, allocated: 3, tallocated: 63
FML: MCP v7.51 FML v5.2.2.684 Minecraft Forge 7.8.0.684 4 mods loaded, 4 mods active
mcp{7.44} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
FML{5.2.2.684} [Forge Mod Loader] (coremods) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
Forge{7.8.0.684} [Minecraft Forge] (coremods) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
BurritoMod{v1} [Void Mod] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
Profiler Position: N/A (disabled)
Vec3 Pool Size: 1034 (57904 bytes; 0 MB) allocated, 927 (51912 bytes; 0 MB) used
Player Count: 1 / 8; [EntityPlayerMP['Player662'/313, l='New Worlda', x=195.70, y=65.00, z=219.70]]
Type: Integrated Server (map_client.txt)
Is Modded: Definitely; Client brand changed to 'fml,forge'
Crashed again.
Can you figure out a way of installing the mod using the source?
uhh....maybe, not sure....
for me i have (in the src folder of eclipse(in "minecraft")) with those other files and folders and mine's in "mods" then it says "mod_MoreBlocks" and so on....
did you code your mod some like that? or is it straight up "mod_"?
If you mean make a block drop different items at once, no, I don't think so. However, you can make several different blocks that drop different things, but change the texture to make them all look the same. It'll be as if one block drops different things!
Now that I think about it, there was one file that Forge didn't successfully install the first or second time. Maybe that's why?
I want it to drop 2 different items at once
well it doesn't hurt to try...
anyway...i gotta find the error log and i'll see whats wrong.....i was coding some stuff, so i didn't see it yet...
well i looked at the code u had, the main file seems to be fine... and this is my ore generation class -
it think you need these parts in it...i'm not entirely sure you need these, cause my ore doesn't generate in the end or nether....but....yeah....
maybe
ok, i've seen that been done before, but i haven't done it... i'll try and see and if i get it, i'll tell you.
E
oh yeah, i found it now..
lol yeah! in my mod u can make a einsteinium bomb
and einsteinium ore is real, jtlyk...idk if u knew that already..
E
i'm workin on it... i'm also trying to get a block drop to more than one thing for BrighamX...
E
i got it!
this is in the block's class file -
where is says "new ItemStack(Item.flint, 1, 0)));" change the "1" and then you can get more flints or what ever
if you put "par1World.spawnEntityInWorld(new EntityItem(par1World, par2, par3,
par4, new ItemStack(this.BlockID, 1, 0)));" it will drop 2 of the type of blocks, even if it's at "1", so putting this to "2" will give you 3 of the block.
i keep seeing this in the error log...
at TXX59.Smiley.WorldGeneratorSmiley.generateSurface(WorldGeneratorSmiley.java:28)
at TXX59.Smiley.WorldGeneratorSmiley.generate(WorldGeneratorSmiley.java:17)
which is this -
try changing them both to 16 and the Ycoord to 64...see if that works, cause mine's at 16 and 64..
E
i'm glad it works now!
ooooooooohhhhh gooooddddd...............i had the reobawrgbaoiw problem too...it took me a while and i'm not totally sure how i fixed it... i did a few things.... here's what i did (not sure which one will work) -
- i went into the "src" folder and took out my mod (moved it to desktop) then deleted the mcp folder, re-downloaded and put my stuff back in
- i also (not deleted the mcp folder) took out my mod, and re-installed the forge src...
- i think i also "recompiled" before i did the "reobsu-blah-blah"....idk if that worked..
idk which one worked...but some how it works now..
E
no... i wouldn't mess with those...
E
It worked then! now the only problem with the reobsuficate thing is that it doesn't copy over ur textures...so u have to put them in, and now in the folder that has "TXX59" right click it and add to archive (need WinRAR) and then release it!
oh and i'm not really sure what those other bat files do... so i don't mess with them....
E
well, depending on how you coded your mod...
for me, i have a folder called "textrues" in a folder called "mod_MoreBlocks". In that "mod_" folder there is also "Common" and "Client", i put my class files in "Common"...
idk how your mod is laid out, so you might have to experiment.
also, idk if yours will work when you install it in the "mods" folder in the ".minecraft" for forge, since idk if your mod has edited a bass class....
and XD, we are the only ones posting....
E
oh yeah, have you found your ore yet?
E
I'm not exactly sure what to do with this.
This is what I have right now
ok put the code i gave above the "public string gettexturefile"
once you do this and you try to test it, and it crashes or it doesn't work, try removing the "idDropped" and "quantityDropped" statments, and try again.. if it still doesn't work, then come back and tells me, also give any error ness
E
Im getting an error for ItemStack and world
ok then u need to "import" those...
this goes towards the top, this is yours -
E
Thanks it finally works!
Last thing, Is there a way I can make ore generate at one level?
i think, but i haven't found the code to it yet...
E
Minecraft has crashed!
----------------------
Minecraft has stopped running because it encountered a problem; Ticking entity
A full error report has been saved to C:\Users\Leo\Desktop\MCP\jars\.\crash-reports\crash-2013-06-14_22.03.14-server.txt - Please include a copy of that file (Not this screen!) if you report this crash to anyone; without it, they will not be able to help fix the crash
--- BEGIN ERROR REPORT d6bb7984 --------
Full report at:
C:\Users\Leo\Desktop\MCP\jars\.\crash-reports\crash-2013-06-14_22.03.14-server.txt
Please show that file to Mojang, NOT just this screen!
Generated 6/14/13 10:03 PM
-- Head --
Stacktrace:
at net.minecraftforge.common.ISpecialArmor$ArmorProperties.ApplyArmor(ISpecialArmor.java:112)
at net.minecraft.entity.player.EntityPlayer.damageEntity(EntityPlayer.java:1176)
at net.minecraft.entity.EntityLiving.attackEntityFrom(EntityLiving.java:1060)
at net.minecraft.entity.player.EntityPlayer.attackEntityFrom(EntityPlayer.java:1075)
at net.minecraft.entity.player.EntityPlayerMP.attackEntityFrom(EntityPlayerMP.java:453)
at net.minecraft.entity.monster.EntityMob.attackEntityAsMob(EntityMob.java:118)
at net.minecraft.entity.monster.EntityZombie.attackEntityAsMob(EntityZombie.java:211)
at net.minecraft.entity.ai.EntityAIAttackOnCollide.updateTask(EntityAIAttackOnCollide.java:119)
at net.minecraft.entity.ai.EntityAITasks.onUpdateTasks(EntityAITasks.java:123)
at net.minecraft.entity.EntityLiving.updateAITasks(EntityLiving.java:2110)
at net.minecraft.entity.EntityLiving.onLivingUpdate(EntityLiving.java:1835)
at net.minecraft.entity.monster.EntityMob.onLivingUpdate(EntityMob.java:37)
at net.minecraft.entity.monster.EntityZombie.onLivingUpdate(EntityZombie.java:187)
at net.minecraft.entity.EntityLiving.onUpdate(EntityLiving.java:858)
at net.minecraft.entity.monster.EntityMob.onUpdate(EntityMob.java:45)
at net.minecraft.entity.monster.EntityZombie.onUpdate(EntityZombie.java:206)
at net.minecraft.world.World.updateEntityWithOptionalForce(World.java:2337)
at net.minecraft.world.WorldServer.updateEntityWithOptionalForce(WorldServer.java:717)
at net.minecraft.world.World.updateEntity(World.java:2299)
-- Entity being ticked --
Details:
Entity Type: Zombie (net.minecraft.entity.monster.EntityZombie)
Entity ID: 743
Entity Name: Zombie
Entity's Exact location: 194.66, 65.00, 219.21
Entity's Block location: World: (194,65,219), Chunk: (at 2,4,11 in 12,13; contains blocks 192,0,208 to 207,255,223), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)
Entity's Momentum: 0.05, -0.08, 0.03
Stacktrace:
at net.minecraft.world.World.updateEntities(World.java:2145)
at net.minecraft.world.WorldServer.updateEntities(WorldServer.java:546)
-- Affected level --
Details:
Level name: New Worlda
All players: 1 total; [EntityPlayerMP['Player662'/313, l='New Worlda', x=195.70, y=65.00, z=219.70]]
Chunk stats: ServerChunkCache: 604 Drop: 0
Level seed: 8725721272671267133
Level generator: ID 00 - default, ver 1. Features enabled: true
Level generator options:
Level spawn location: World: (200,64,256), Chunk: (at 8,4,0 in 12,16; contains blocks 192,0,256 to 207,255,271), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)
Level time: 2118 game time, 14277 day time
Level dimension: 0
Level storage version: 0x04ABD - Anvil
Level weather: Rain time: 101607 (now: false), thunder time: 58403 (now: false)
Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: true
Stacktrace:
at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:652)
at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:571)
at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:127)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:469)
at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16)
-- System Details --
Details:
Minecraft Version: 1.5.2
Operating System: Windows 7 (amd64) version 6.1
Java Version: 1.7.0_21, Oracle Corporation
Java VM Version: Java HotSpot™ 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 805302152 bytes (767 MB) / 1056309248 bytes (1007 MB) up to 1056309248 bytes (1007 MB)
JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
AABB Pool Size: 5499 (307944 bytes; 0 MB) allocated, 3055 (171080 bytes; 0 MB) used
Suspicious classes: FML and Forge are installed
IntCache: cache: 0, tcache: 0, allocated: 3, tallocated: 63
FML: MCP v7.51 FML v5.2.2.684 Minecraft Forge 7.8.0.684 4 mods loaded, 4 mods active
mcp{7.44} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
FML{5.2.2.684} [Forge Mod Loader] (coremods) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
Forge{7.8.0.684} [Minecraft Forge] (coremods) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
BurritoMod{v1} [Void Mod] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
Profiler Position: N/A (disabled)
Vec3 Pool Size: 1034 (57904 bytes; 0 MB) allocated, 927 (51912 bytes; 0 MB) used
Player Count: 1 / 8; [EntityPlayerMP['Player662'/313, l='New Worlda', x=195.70, y=65.00, z=219.70]]
Type: Integrated Server (map_client.txt)
Is Modded: Definitely; Client brand changed to 'fml,forge'
java.lang.NullPointerException
at net.minecraftforge.common.ISpecialArmor$ArmorProperties.ApplyArmor(ISpecialArmor.java:112)
at net.minecraft.entity.player.EntityPlayer.damageEntity(EntityPlayer.java:1176)
at net.minecraft.entity.EntityLiving.attackEntityFrom(EntityLiving.java:1060)
at net.minecraft.entity.player.EntityPlayer.attackEntityFrom(EntityPlayer.java:1075)
at net.minecraft.entity.player.EntityPlayerMP.attackEntityFrom(EntityPlayerMP.java:453)
at net.minecraft.entity.monster.EntityMob.attackEntityAsMob(EntityMob.java:118)
at net.minecraft.entity.monster.EntityZombie.attackEntityAsMob(EntityZombie.java:211)
at net.minecraft.entity.ai.EntityAIAttackOnCollide.updateTask(EntityAIAttackOnCollide.java:119)
at net.minecraft.entity.ai.EntityAITasks.onUpdateTasks(EntityAITasks.java:123)
at net.minecraft.entity.EntityLiving.updateAITasks(EntityLiving.java:2110)
at net.minecraft.entity.EntityLiving.onLivingUpdate(EntityLiving.java:1835)
at net.minecraft.entity.monster.EntityMob.onLivingUpdate(EntityMob.java:37)
at net.minecraft.entity.monster.EntityZombie.onLivingUpdate(EntityZombie.java:187)
at net.minecraft.entity.EntityLiving.onUpdate(EntityLiving.java:858)
at net.minecraft.entity.monster.EntityMob.onUpdate(EntityMob.java:45)
at net.minecraft.entity.monster.EntityZombie.onUpdate(EntityZombie.java:206)
at net.minecraft.world.World.updateEntityWithOptionalForce(World.java:2337)
at net.minecraft.world.WorldServer.updateEntityWithOptionalForce(WorldServer.java:717)
at net.minecraft.world.World.updateEntity(World.java:2299)
at net.minecraft.world.World.updateEntities(World.java:2145)
at net.minecraft.world.WorldServer.updateEntities(WorldServer.java:546)
at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:652)
at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:571)
at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:127)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:469)
at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16)
--- END ERROR REPORT d380bdc4 ----------
and this in the crash report file:
---- Minecraft Crash Report ----
// My bad.
Time: 6/14/13 10:03 PM
Description: Ticking entity
java.lang.NullPointerException
at net.minecraftforge.common.ISpecialArmor$ArmorProperties.ApplyArmor(ISpecialArmor.java:112)
at net.minecraft.entity.player.EntityPlayer.damageEntity(EntityPlayer.java:1176)
at net.minecraft.entity.EntityLiving.attackEntityFrom(EntityLiving.java:1060)
at net.minecraft.entity.player.EntityPlayer.attackEntityFrom(EntityPlayer.java:1075)
at net.minecraft.entity.player.EntityPlayerMP.attackEntityFrom(EntityPlayerMP.java:453)
at net.minecraft.entity.monster.EntityMob.attackEntityAsMob(EntityMob.java:118)
at net.minecraft.entity.monster.EntityZombie.attackEntityAsMob(EntityZombie.java:211)
at net.minecraft.entity.ai.EntityAIAttackOnCollide.updateTask(EntityAIAttackOnCollide.java:119)
at net.minecraft.entity.ai.EntityAITasks.onUpdateTasks(EntityAITasks.java:123)
at net.minecraft.entity.EntityLiving.updateAITasks(EntityLiving.java:2110)
at net.minecraft.entity.EntityLiving.onLivingUpdate(EntityLiving.java:1835)
at net.minecraft.entity.monster.EntityMob.onLivingUpdate(EntityMob.java:37)
at net.minecraft.entity.monster.EntityZombie.onLivingUpdate(EntityZombie.java:187)
at net.minecraft.entity.EntityLiving.onUpdate(EntityLiving.java:858)
at net.minecraft.entity.monster.EntityMob.onUpdate(EntityMob.java:45)
at net.minecraft.entity.monster.EntityZombie.onUpdate(EntityZombie.java:206)
at net.minecraft.world.World.updateEntityWithOptionalForce(World.java:2337)
at net.minecraft.world.WorldServer.updateEntityWithOptionalForce(WorldServer.java:717)
at net.minecraft.world.World.updateEntity(World.java:2299)
at net.minecraft.world.World.updateEntities(World.java:2145)
at net.minecraft.world.WorldServer.updateEntities(WorldServer.java:546)
at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:652)
at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:571)
at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:127)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:469)
at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16)
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- Head --
Stacktrace:
at net.minecraftforge.common.ISpecialArmor$ArmorProperties.ApplyArmor(ISpecialArmor.java:112)
at net.minecraft.entity.player.EntityPlayer.damageEntity(EntityPlayer.java:1176)
at net.minecraft.entity.EntityLiving.attackEntityFrom(EntityLiving.java:1060)
at net.minecraft.entity.player.EntityPlayer.attackEntityFrom(EntityPlayer.java:1075)
at net.minecraft.entity.player.EntityPlayerMP.attackEntityFrom(EntityPlayerMP.java:453)
at net.minecraft.entity.monster.EntityMob.attackEntityAsMob(EntityMob.java:118)
at net.minecraft.entity.monster.EntityZombie.attackEntityAsMob(EntityZombie.java:211)
at net.minecraft.entity.ai.EntityAIAttackOnCollide.updateTask(EntityAIAttackOnCollide.java:119)
at net.minecraft.entity.ai.EntityAITasks.onUpdateTasks(EntityAITasks.java:123)
at net.minecraft.entity.EntityLiving.updateAITasks(EntityLiving.java:2110)
at net.minecraft.entity.EntityLiving.onLivingUpdate(EntityLiving.java:1835)
at net.minecraft.entity.monster.EntityMob.onLivingUpdate(EntityMob.java:37)
at net.minecraft.entity.monster.EntityZombie.onLivingUpdate(EntityZombie.java:187)
at net.minecraft.entity.EntityLiving.onUpdate(EntityLiving.java:858)
at net.minecraft.entity.monster.EntityMob.onUpdate(EntityMob.java:45)
at net.minecraft.entity.monster.EntityZombie.onUpdate(EntityZombie.java:206)
at net.minecraft.world.World.updateEntityWithOptionalForce(World.java:2337)
at net.minecraft.world.WorldServer.updateEntityWithOptionalForce(WorldServer.java:717)
at net.minecraft.world.World.updateEntity(World.java:2299)
-- Entity being ticked --
Details:
Entity Type: Zombie (net.minecraft.entity.monster.EntityZombie)
Entity ID: 743
Entity Name: Zombie
Entity's Exact location: 194.66, 65.00, 219.21
Entity's Block location: World: (194,65,219), Chunk: (at 2,4,11 in 12,13; contains blocks 192,0,208 to 207,255,223), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)
Entity's Momentum: 0.05, -0.08, 0.03
Stacktrace:
at net.minecraft.world.World.updateEntities(World.java:2145)
at net.minecraft.world.WorldServer.updateEntities(WorldServer.java:546)
-- Affected level --
Details:
Level name: New Worlda
All players: 1 total; [EntityPlayerMP['Player662'/313, l='New Worlda', x=195.70, y=65.00, z=219.70]]
Chunk stats: ServerChunkCache: 604 Drop: 0
Level seed: 8725721272671267133
Level generator: ID 00 - default, ver 1. Features enabled: true
Level generator options:
Level spawn location: World: (200,64,256), Chunk: (at 8,4,0 in 12,16; contains blocks 192,0,256 to 207,255,271), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)
Level time: 2118 game time, 14277 day time
Level dimension: 0
Level storage version: 0x04ABD - Anvil
Level weather: Rain time: 101607 (now: false), thunder time: 58403 (now: false)
Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: true
Stacktrace:
at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:652)
at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:571)
at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:127)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:469)
at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16)
-- System Details --
Details:
Minecraft Version: 1.5.2
Operating System: Windows 7 (amd64) version 6.1
Java Version: 1.7.0_21, Oracle Corporation
Java VM Version: Java HotSpot™ 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 805302152 bytes (767 MB) / 1056309248 bytes (1007 MB) up to 1056309248 bytes (1007 MB)
JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
AABB Pool Size: 5499 (307944 bytes; 0 MB) allocated, 3055 (171080 bytes; 0 MB) used
Suspicious classes: FML and Forge are installed
IntCache: cache: 0, tcache: 0, allocated: 3, tallocated: 63
FML: MCP v7.51 FML v5.2.2.684 Minecraft Forge 7.8.0.684 4 mods loaded, 4 mods active
mcp{7.44} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
FML{5.2.2.684} [Forge Mod Loader] (coremods) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
Forge{7.8.0.684} [Minecraft Forge] (coremods) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
BurritoMod{v1} [Void Mod] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
Profiler Position: N/A (disabled)
Vec3 Pool Size: 1034 (57904 bytes; 0 MB) allocated, 927 (51912 bytes; 0 MB) used
Player Count: 1 / 8; [EntityPlayerMP['Player662'/313, l='New Worlda', x=195.70, y=65.00, z=219.70]]
Type: Integrated Server (map_client.txt)
Is Modded: Definitely; Client brand changed to 'fml,forge'
hmm...have you tried to put ur mod in the minecraft.jar?
E
uhh....maybe, not sure....
for me i have (in the src folder of eclipse(in "minecraft")) with those other files and folders and mine's in "mods" then it says "mod_MoreBlocks" and so on....
did you code your mod some like that? or is it straight up "mod_"?
E