Il server del mese è
Visita la nostra nuova lista server!Archiviato
Questa discussione è archiviata e chiusa a future risposte.
- 0
[Aiuto] Programma Con La Creazione Di Un Blocco
Domandato da
giocol99
-
Chi sta navigando 0 utenti
Nessun utente registrato visualizza questa pagina.
Error Log di Minecraft
[spoiler]
Minecraft has crashed!
----------------------
Minecraft has stopped running because it encountered a problem; Failed to start game
A full error report has been saved to K:\Minecraft modding\mcp\jars\.\crash-reports\crash-2013-03-14_19.23.48-client.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 581528ad --------
Full report at:
K:\Minecraft modding\mcp\jars\.\crash-reports\crash-2013-03-14_19.23.48-client.txt
Please show that file to Mojang, NOT just this screen!
Generated 14/03/13 19.23
-- System Details --
Details:
Minecraft Version: 1.4.7
Operating System: Windows 7 (x86) version 6.1
Java Version: 1.6.0_37, Sun Microsystems Inc.
Java VM Version: Java HotSpot™ Client VM (mixed mode), Sun Microsystems Inc.
Memory: 993456760 bytes (947 MB) / 1067057152 bytes (1017 MB) up to 1067057152 bytes (1017 MB)
JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
Suspicious classes: FML and Forge are installed
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
FML: MCP v7.26 FML v4.7.4.520 Minecraft Forge 6.6.0.497 4 mods loaded, 4 mods active
mcp [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized
FML [Forge Mod Loader] (coremods) Unloaded->Constructed->Pre-initialized->Initialized
Forge [Minecraft Forge] (coremods) Unloaded->Constructed->Pre-initialized->Initialized
mod_AlchemicCraft [Tutorial] (bin) Unloaded->Constructed->Pre-initialized->Errored
LWJGL: 2.4.2
OpenGL: GeForce GTX 650/PCIe/SSE2 GL version 4.2.0, NVIDIA Corporation
Is Modded: Definitely; Client brand changed to 'forge,fml'
Type: Client (map_client.txt)
Texture Pack: Default
Profiler Position: N/A (disabled)
Vec3 Pool Size: ~~ERROR~~ NullPointerException: null
java.lang.ArrayIndexOutOfBoundsException: 3
at net.minecraft.item.crafting.CraftingManager.func_92051_a(CraftingManager.java:160)
at cpw.mods.fml.common.registry.GameRegistry.addRecipe(GameRegistry.java:253)
at AlchemicCraft.mod_AlchemicCraft.load(mod_AlchemicCraft.java:22)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:485)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:69)
at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300)
at com.google.common.eventbus.EventBus.post(EventBus.java:268)
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:140)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:69)
at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300)
at com.google.common.eventbus.EventBus.post(EventBus.java:268)
at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:83)
at cpw.mods.fml.common.Loader.initializeMods(Loader.java:657)
at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:207)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:456)
at net.minecraft.client.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:44)
at net.minecraft.client.Minecraft.run(Minecraft.java:744)
at java.lang.Thread.run(Unknown Source)
--- END ERROR REPORT 6a864163 ----------
[/spoiler]
Ecco il file principale della mod
[spoiler]
package AlchemicCraft;
import net.minecraft.block.Block;
import net.minecraft.item.ItemStack;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.Init;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.network.NetworkMod;
import cpw.mods.fml.common.registry.GameRegistry;
import cpw.mods.fml.common.registry.LanguageRegistry;
@Mod(modid = "mod_AlchemicCraft", name = "Tutorial", version = "1.0")
@NetworkMod(clientSideRequired = true, serverSideRequired = false)
public class mod_AlchemicCraft {
public static Block darkWood;
@Init
public void load(FMLInitializationEvent event)
{
darkWood = new BlockDarkWood(1513).setBlockName("Dark Wood");
GameRegistry.registerBlock(darkWood, "Dark Wood");
LanguageRegistry.addName(darkWood, "Dark Wood");
GameRegistry.addRecipe(new ItemStack(darkWood, 1), new Object[]
{
" ", " ", " ",
});
}
}
[/spoiler]
Ed ecco il file del Blocco
[spoiler]
package AlchemicCraft;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.creativetab.CreativeTabs;
public class BlockDarkWood extends Block{
public BlockDarkWood(int blockID)
{
super(blockID, Material.wood);
this.setCreativeTab(CreativeTabs.tabBlock);
blockIndexInTexture = 20;
setHardness(20.0f);
setResistance(20.0f);
setStepSound(soundWoodFootstep);
setLightValue(1.0F);
setBlockName("Dark Wood");
}
@Override
//cambia il percorso all'interno del jar in cui si trovano le texture , in questo caso si trova appena dentro al .jar
public String getTextureFile()
{
return "/terrain1.png";
}
@Override
public int getBlockTextureFromSide(int side)
{
switch(side)
{
case 0:
return 21;
case 1:
return 21;
case 2:
return 20;
case 3:
return 20;
case 4:
return 20;
case 5:
return 20;
}
return blockIndexInTexture;
}
}
[/spoiler]
Grazie in anticipo,
Giocol
Condividi questo messaggio
Link di questo messaggio
Condividi su altri siti