• 0

    posted a message on [Help] My mod crashes when I load it on a server
    Quote from FlameFlare9»
    2 questions:
    What does:"Se ha forzado la interrupción de una conexión existente por el host remoto" mean and are any other mods installed?
    P.S.: Do you use Packets in your code?

    1: The translation for that can be ''Has come into force interrupt an existing connection by the remote host'', I mean, the server is closed..

    2: I am running the server in eclipse so I only have my mod installed.

    P.S.: No, I do not know how to use the packets in 1.7.
    Posted in: Modification Development
  • 0

    posted a message on [Help] My mod crashes when I load it on a server
    Hello, that's my problem, I run my mod in the option of ''Run Server'' on eclipse and when I try to log in it the world loads and later crashes and the server gives me this report:


    [13:22:16] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLServerTweaker
    [13:22:16] [main/INFO] [LaunchWrapper]: Using primary tweak class name cpw.mods.fml.common.launcher.FMLServerTweaker
    [13:22:16] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLServerTweaker
    [13:22:16] [main/INFO] [FML]: Forge Mod Loader version 7.10.25.1207 for Minecraft 1.7.10 loading
    [13:22:16] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_11, running on Windows 8:amd64:6.2, installed at C:\Program Files\Java\jdk1.8.0_11\jre
    [13:22:16] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
    [13:22:16] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
    [13:22:16] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker
    [13:22:16] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
    [13:22:16] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
    [13:22:16] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
    [13:22:16] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work!
    [13:22:19] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing
    [13:22:19] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
    [13:22:19] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker
    [13:22:20] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.TerminalTweaker
    [13:22:20] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.TerminalTweaker
    [13:22:20] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.server.MinecraftServer}
    [13:22:28] [main/WARN] [FML]: =============================================================
    [13:22:28] [main/WARN] [FML]: MOD HAS DIRECT REFERENCE System.exit() THIS IS NOT ALLOWED REROUTING TO FMLCommonHandler!
    [13:22:28] [main/WARN] [FML]: Offendor: net/minecraft/server/gui/MinecraftServerGui$1.windowClosing(Ljava/awt/event/WindowEvent;)V
    [13:22:28] [main/WARN] [FML]: =============================================================
    [13:22:28] [Server thread/INFO]: Starting minecraft server version 1.7.10
    [13:22:29] [Server thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization
    [13:22:29] [Server thread/INFO] [FML]: MinecraftForge v10.13.0.1207 Initialized
    [13:22:29] [Server thread/INFO] [FML]: Replaced 182 ore recipies
    [13:22:30] [Server thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization
    [13:22:33] [Server thread/INFO] [FML]: Searching D:\Mods\1.7.10\SMPOW_1.7.10\eclipse\mods for mods
    [13:22:37] [Server thread/ERROR] [FML]: FML has detected a mod that is using a package name based on 'net.minecraft.src' : net.minecraft.src.FMLRenderAccessLibrary. This is generally a severe programming error. There should be no mod code in the minecraft namespace. MOVE YOUR MOD! If you're in eclipse, select your source code and 'refactor' it into a new package. Go on. DO IT NOW!
    [13:22:44] [Server thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load
    [13:22:48] [Server thread/INFO] [FML]: Processing ObjectHolder annotations
    [13:22:48] [Server thread/INFO] [FML]: Found 341 ObjectHolder annotations
    [13:22:49] [Server thread/INFO] [FML]: Configured a dormant chunk cache size of 0
    [13:22:49] [Server thread/INFO] [FML]: Applying holder lookups
    [13:22:49] [Server thread/INFO] [FML]: Holder lookups applied
    [13:22:49] [Server thread/INFO]: Loading properties
    [13:22:49] [Server thread/INFO]: Default game type: SURVIVAL
    [13:22:49] [Server thread/INFO]: Generating keypair
    [13:22:49] [Server thread/INFO]: Starting Minecraft server on *:25565
    [13:22:51] [Server thread/WARN]: **** SERVER IS RUNNING IN OFFLINE/INSECURE MODE!
    [13:22:51] [Server thread/WARN]: The server will make no attempt to authenticate usernames. Beware.
    [13:22:51] [Server thread/WARN]: While this makes the game possible to play without internet access, it also opens up the ability for hackers to connect with any username they choose.
    [13:22:51] [Server thread/WARN]: To change this, set "online-mode" to "true" in the server.properties file.
    [13:22:52] [Server thread/INFO] [FML]: Forge Mod Loader has successfully loaded 4 mods
    [13:22:52] [Server thread/INFO]: Preparing level "world"
    [13:22:52] [Server thread/INFO] [FML]: Injecting existing block and item data into this server instance
    [13:22:53] [Server thread/INFO] [FML]: Applying holder lookups
    [13:22:53] [Server thread/INFO] [FML]: Holder lookups applied
    [13:22:53] [Server thread/INFO] [FML]: Loading dimension 0 (world) (net.minecraft.server.dedicated.DedicatedServer@5e2622b7)
    [13:22:53] [Server thread/INFO] [FML]: Loading dimension 1 (world) (net.minecraft.server.dedicated.DedicatedServer@5e2622b7)
    [13:22:53] [Server thread/INFO] [FML]: Loading dimension -1 (world) (net.minecraft.server.dedicated.DedicatedServer@5e2622b7)
    [13:22:53] [Server thread/INFO]: Preparing start region for level 0
    [13:22:54] [Server thread/INFO]: Preparing spawn area: 2%
    [13:22:56] [Server thread/INFO]: Preparing spawn area: 50%
    [13:22:57] [Server thread/INFO]: Preparing spawn area: 94%
    [13:22:57] [Server thread/INFO]: Done (4.903s)! For help, type "help" or "?"
    [13:22:59] [Server thread/WARN]: Can't keep up! Did the system time change, or is the server overloaded? Running 2289ms behind, skipping 45 tick(s)
    [13:27:31] [Netty IO #2/INFO] [FML]: Client protocol version 1
    [13:27:31] [Netty IO #2/INFO] [FML]: Client attempting to join with 4 mods : [email protected],[email protected],[email protected],[email protected]
    [13:27:31] [Netty IO #2/INFO] [FML]: Attempting connection with missing mods [] at CLIENT
    [13:27:31] [Server thread/INFO] [FML]: [Server thread] Server side modded connection established
    [13:27:31] [Server thread/INFO]: Player859[/192.168.100.100:54697] logged in with entity id 396 at (149.5, 66.0, 216.5)
    [13:27:31] [Server thread/INFO]: Player859 joined the game
    [13:27:35] [Server thread/WARN]: Can't keep up! Did the system time change, or is the server overloaded? Running 2843ms behind, skipping 56 tick(s)
    [13:27:39] [Netty IO #2/ERROR] [FML]: NetworkDispatcher exception
    java.io.IOException: Se ha forzado la interrupción de una conexión existente por el host remoto
    at sun.nio.ch.SocketDispatcher.read0(Native Method) ~[?:1.8.0_11]
    at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:43) ~[?:1.8.0_11]
    at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:223) ~[?:1.8.0_11]
    at sun.nio.ch.IOUtil.read(IOUtil.java:192) ~[?:1.8.0_11]
    at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:375) ~[?:1.8.0_11]
    at io.netty.buffer.UnpooledUnsafeDirectByteBuf.setBytes(UnpooledUnsafeDirectByteBuf.java:436) ~[UnpooledUnsafeDirectByteBuf.class:?]
    at io.netty.buffer.AbstractByteBuf.writeBytes(AbstractByteBuf.java:870) ~[AbstractByteBuf.class:?]
    at io.netty.channel.socket.nio.NioSocketChannel.doReadBytes(NioSocketChannel.java:208) ~[NioSocketChannel.class:?]
    at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:87) [AbstractNioByteChannel$NioByteUnsafe.class:?]
    at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:480) [NioEventLoop.class:?]
    at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:447) [NioEventLoop.class:?]
    at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:341) [NioEventLoop.class:?]
    at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:101) [SingleThreadEventExecutor$2.class:?]
    at java.lang.Thread.run(Thread.java:745) [?:1.8.0_11]
    [13:27:39] [Server thread/INFO]: Player859 lost connection: TranslatableComponent{key='disconnect.genericReason', args=[Internal Exception: java.io.IOException: Se ha forzado la interrupción de una conexión existente por el host remoto], siblings=[], style=Style{hasParent=false, color=null, bold=null, italic=null, underlined=null, obfuscated=null, clickEvent=null, hoverEvent=null}}
    [13:27:39] [Server thread/INFO]: Player859 left the game



    What can be the problem in my mod? How I can solve it?

    I hope you can help me! Thank you!
    Posted in: Modification Development
  • 0

    posted a message on [Help] How to place a GUI above of the inventory?
    Quote from Xuluf»
    Not sure if you really can do anything to render it above, as you are rendering it as an experience bar (not a guiscreen)

    So I extend the class as guiscreen?
    Posted in: Modification Development
  • 0

    posted a message on [Help] How to place a GUI above of the inventory?
    Quote from Xuluf»
    facepalm, sorry.. Thought you meant to render it in the Players Inventory screen.. xD

    Some code would be nice? (only GUI I would think)

    Sure. Here's the code of my Gui:


    public class GuiCharacter extends Gui
    {
    private Minecraft mc;

    public GuiCharacter(Minecraft mc)
    {
    super();
    // We need this to invoke the render engine.
    this.mc = mc;
    }



    protected static final ResourceLocation MarioTexPath = new ResourceLocation("SMPOW:textures/gui/mario.png");

    //
    // This event is called by GuiIngameForge during each frame by
    // GuiIngameForge.pre() and GuiIngameForce.post().
    //
    @SubscribeEvent(priority = EventPriority.HIGHEST)
    public void onRenderExperienceBar(RenderGameOverlayEvent event)
    {

    if (event.isCancelable() || event.type != ElementType.EXPERIENCE)
    {
    return;
    }



    ScaledResolution scaledresolution = new ScaledResolution(this.mc, this.mc.displayWidth, this.mc.displayHeight);

    FontRenderer fontrenderer = this.mc.fontRenderer;
    this.mc.entityRenderer.setupOverlayRendering();

    int k = (scaledresolution.getScaledWidth() - 100) / 8;
    int l = (scaledresolution.getScaledWidth() - 100) / 8;


    if (FMLClientHandler.instance().isGUIOpen(GuiInventory.class)) {
    if (this.mc.thePlayer.inventory.hasItem(SMPOW.MarioToy))
    {
    this.renderMario(k, l);

    }
    }



    }

    protected void renderMario(int par1, int par2)
    {
    GL11.glEnable(GL11.GL_BLEND);
    GL11.glDisable(GL11.GL_DEPTH_TEST);
    GL11.glDepthMask(false);
    GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);
    GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
    GL11.glDisable(GL11.GL_ALPHA_TEST);
    this.mc.getTextureManager().bindTexture(MarioTexPath);
    Tessellator tessellator = Tessellator.instance;
    tessellator.startDrawingQuads();
    tessellator.addVertexWithUV(0.0D, (double)par2, -90.0D, 0.0D, 1.0D);
    tessellator.addVertexWithUV((double)par1, (double)par2, -90.0D, 1.0D, 1.0D);
    tessellator.addVertexWithUV((double)par1, 0.0D, -90.0D, 1.0D, 0.0D);
    tessellator.addVertexWithUV(0.0D, 0.0D, -90.0D, 0.0D, 0.0D);
    tessellator.draw();
    GL11.glDepthMask(true);
    GL11.glEnable(GL11.GL_DEPTH_TEST);
    GL11.glEnable(GL11.GL_ALPHA_TEST);
    GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
    }


    }

    Here's how it looks in the game:




    Here's how it looks in the game:




    Posted in: Modification Development
  • 0

    posted a message on [Help] How to place a GUI above of the inventory?
    Quote from Xuluf»
    Eum.. huh?

    Do you want to add some code to the GuiInventory or whatever it is called? Or do you want to render it on top of the gui (like smack a cow in the middle of the screen)?

    EDIT: ^^ those are the same things.. D:

    I already have my GUI made. This appears when I open the inventory, but is below it. What I do is render it above the inventory. My gui is just a simple image.
    Posted in: Modification Development
  • 0

    posted a message on [Help] How to place a GUI above of the inventory?
    Hi, So my question is that. I want to make my GUI appears above the inventory, I have tried everything but it always goes under it. How I can render my GUI above?

    Thank you!
    Posted in: Modification Development
  • 0

    posted a message on [Help] How to change the Player height
    Hello, I would like to know how I can change the height of the player, how to make their hitbox to be a block of height. I hope someone can help me, thank you very much!
    Posted in: Modification Development
  • 0

    posted a message on [SOLVED] How to replace all the blocks of one type in an area?
    Hello friends, I want to make a block that clicking on it replace all dirt blocks of 5x5x5 area around it. I hope someone can help me with that. Thank you very much! :)

    EDIT: I just have looked in the leaves class, copy the updateTick and modify. :)
    Posted in: Modification Development
  • 0

    posted a message on [HELP] My mod crashes when I try to load it on a server.
    Hello friends, I exported my mod and works correctly when I run it normally, but when I try to use it on a server crashes and gives me this error:

    ---- Minecraft Crash Report ----
    // I'm sorry, Dave.

    Time: 18/10/14 02:11 PM
    Description: Exception in server tick loop

    cpw.mods.fml.common.LoaderException: java.lang.NoClassDefFoundError: net/minecraft/client/entity/EntityClientPlayerMP
    at cpw.mods.fml.common.LoadController.transition(LoadController.java:162)
    at cpw.mods.fml.common.Loader.preinitializeMods(Loader.java:515)
    at cpw.mods.fml.server.FMLServerHandler.beginServerLoading(FMLServerHandler.java:88)
    at cpw.mods.fml.common.FMLCommonHandler.onServerStart(FMLCommonHandler.java:314)
    at net.minecraft.server.dedicated.DedicatedServer.func_71197_b(DedicatedServer.java:117)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:387)
    at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:685)
    Caused by: java.lang.NoClassDefFoundError: net/minecraft/client/entity/EntityClientPlayerMP
    at com.TerraMine.TerraMine.preInit(TerraMine.java:1985)
    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:513)
    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.EventSubscriber.handleEvent(EventSubscriber.java:74)
    at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
    at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
    at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
    at com.google.common.eventbus.EventBus.post(EventBus.java:275)
    at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:208)
    at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:187)
    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.EventSubscriber.handleEvent(EventSubscriber.java:74)
    at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
    at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
    at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
    at com.google.common.eventbus.EventBus.post(EventBus.java:275)
    at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:118)
    at cpw.mods.fml.common.Loader.preinitializeMods(Loader.java:513)
    ... 5 more
    Caused by: java.lang.ClassNotFoundException: net.minecraft.client.entity.EntityClientPlayerMP
    at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:191)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    ... 33 more
    Caused by: java.lang.NullPointerException
    at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:182)
    ... 35 more


    A detailed walkthrough of the error, its code path and all known details is as follows:
    ---------------------------------------------------------------------------------------

    -- System Details --
    Details:
    Minecraft Version: 1.7.10
    Operating System: Windows 8 (amd64) version 6.2
    Java Version: 1.8.0_11, Oracle Corporation
    Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
    Memory: 191283944 bytes (182 MB) / 242221056 bytes (231 MB) up to 939524096 bytes (896 MB)
    JVM Flags: 0 total;
    AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
    IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
    FML: MCP v9.05 FML v7.10.85.1231 Minecraft Forge 10.13.2.1231 4 mods loaded, 4 mods active
    mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized
    FML{7.10.85.1231} [Forge Mod Loader] (forge-1.7.10-10.13.2.1231-universal.jar) Unloaded->Constructed->Pre-initialized
    Forge{10.13.2.1231} [Minecraft Forge] (forge-1.7.10-10.13.2.1231-universal.jar) Unloaded->Constructed->Pre-initialized
    TerraMine{1.4_1} [TerraMine] (TerraMine-1.4_1.jar) Unloaded->Constructed->Errored
    Profiler Position: N/A (disabled)
    Is Modded: Definitely; Server brand changed to 'fml,forge'
    Type: Dedicated Server (map_server.txt)


    PD. My mod is called ''TerraMine''

    How can I fix this error? I hope someone help me. Thak you!
    Posted in: Modification Development
  • 0

    posted a message on [SOLVED] How to stop all sounds in the game?
    Quote from rafradek»
    Minecraft.getMinecraft().getSoundHandler().stopSounds();

    Should work.

    Thank you very much! That works :D
    Posted in: Modification Development
  • 0

    posted a message on [SOLVED] How to stop all sounds in the game?
    Quote from jabelar»
    They've really changed the way sounds are managed in recent versions of forge, but theoretically there would be a cancelable event you could use to intercept them.

    Instead, maybe you can get same effect by changing the sound volumes to 0. If you do that, you should store the previous value of the volumes so you can restore them later (othewise it would be really annoying to the user to have to adjust the volumes again in options every time).

    Yes, I could also do that, but not how to do it from an object. Your can you help me with that?
    Posted in: Modification Development
  • 0

    posted a message on [SOLVED] How to stop all sounds in the game?
    Hello friends, I want to make an object which, by giving right click on it stops all sounds in the game. I've been looking and I find nothing. Can anyone help me with this? Thank you!
    Posted in: Modification Development
  • 0

    posted a message on [Forge] [1.7.2] Help! When I export my mod Minecraft crash and fails.
    Quote from Azhdev

    well just a tip:
    post your code + a crash log, that way more people will respond


    The crash report"says this:

    ---- Minecraft Crash Report ----
    // Ooh. Shiny.
    Time: 24/05/14 09:41 PM
    Description: Initializing game
    java.lang.NoSuchFieldError: rock
    at com.SMPOW.Blocks.SMB_QuestionBlock.<init>(SMB_QuestionBlock.java:31)
    at com.SMPOW.SMPOW.<clinit>(SMPOW.java:51)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Unknown Source)
    at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:420)
    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:74)
    at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:47)
    at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)
    at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
    at com.google.common.eventbus.EventBus.post(EventBus.java:267)
    at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:208)
    at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:187)
    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:74)
    at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:47)
    at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)
    at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
    at com.google.common.eventbus.EventBus.post(EventBus.java:267)
    at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:118)
    at cpw.mods.fml.common.Loader.loadMods(Loader.java:490)
    at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:204)
    at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:467)
    at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:815)
    at net.minecraft.client.main.Main.main(SourceFile:103)
    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 net.minecraft.launchwrapper.Launch.launch(Launch.java:134)
    at net.minecraft.launchwrapper.Launch.main(Launch.java:28)


    And my code of my ''QuestionBlock'' is:


    public class SMB_QuestionBlock extends Block{
    
    public SMB_QuestionBlock() {
    		 super(Material.rock);
    
    
    this.setHardness(2.0F);
    this.setCreativeTab(SMPOW.SMPOWTab);
    this.setLightLevel(0.40F);
    this.setStepSound(Block.soundTypeMetal);
    }
    }


    In the Eclipse interface does not give me any errors. But it crash until I compile and put it in Minecraft.
    Posted in: Modification Development
  • 0

    posted a message on [Forge] [1.7.2] Help! When I export my mod Minecraft crash and fails.
    When I export my mod and then start Minecraft crash and fails in the part of the material of the blocks.

    Someone can help me solve it? Thanks!
    Posted in: Modification Development
  • 0

    posted a message on [Solved] [1.7.2] Help! How to change the texture of a block if there is a block around?
    Quote from Xuluf

    @SideOnly(Side.CLIENT)
    @Override
    public IIcon getIcon(IBlockAccess w, int x, int y, int z,
    	 int side) {
    	 if(w.getBlock(x, y, z) == Blocks.dirt)
    	 return blockIcon1;
    	
    	 return blockIconDefault;
    }



    if your block is at x: 10 y: 60 z: 0

    checks if there is a dirt block at x: 10 y: 60 z: -1
    then returns the special block icon.
    else it returns a default one


    Thank you very much! That work fine ^^
    Posted in: Modification Development
  • To post a comment, please .