All users will need to merge their Minecraft Forum account with a new or existing Twitch account starting October 23rd. You can merge your accounts by clicking here. Have questions? Learn more here.
Dismiss
  • 0

    posted a message on More Quests?
    Like travelling to The End and slaying a dragon. I think it would really give minecraft players more out of the game :D reply your suggestions/ thoughts! :)
    Posted in: Discussion
  • 0

    posted a message on MCP error?
    I keep getting this error every time i recompile my source code:


    == ERRORS FOUND ==
    src/minecraft/net/minecraft/src/BlockDesertPortal.java:6: net.minecraft.src.BlockDesertPortal is not abstract and does not override abstract method getLeavingMessage() in net.minecraft.src.BlockDesertPortal
    public class BlockDesertPortal extends BlockPortalBase
    	   ^
    1 error
    ==================


    Here is the actual source code itself :


    package net.minecraft.src;
    
    import java.util.List;
    import java.util.ArrayList;
    
    public class BlockDesertPortal extends BlockPortalBase
    {
    
    	public BlockDesertPortal(int i)
    	{
    		super(i, ModLoader.getUniqueSpriteIndex("/terrain.png"), Material.portal);
    
    	}
    
    public WorldProviderBase getDimension()
    {
    return new WorldProviderDesert();
    }
    
    public Teleporter getTeleporter()
    {
    return new TeleporterDesert();
    }
    
    //You can get to this dimension from the overworld (0) and Nether (-1).
    public List canTeleportFromDimension()
    {
    ArrayList list = new ArrayList();
    list.add(0);
    list.add(-1);
    return list;
    }
    
    	public AxisAlignedBB getCollisionBoundingBoxFromPool(World world, int i, int j, int k)
    	{
    		return null;
    	}
    
    	public boolean isOpaqueCube()
    	{
    		return false;
    	}
    
    public boolean displayPortalOverlay()
    	{
    		return true;
    	}
    
    public int getOverlayTexture()
    {
    return blockIndexInTexture;
    }
    
    }


    Thanks in advance! :D
    Posted in: Modification Development
  • 0

    posted a message on [1.3.2][SMP|SSP] Pudelhund's Dimension API v1.6.1
    I keep getting this error each time I decompile.


    > Recompiling
    '"javac" -Xlint:-options -deprecation -g -source 1.6 -target 1.6 -classpath "lib:lib/*:jars/bin/minec...' failed : 1

    == ERRORS FOUND ==

    src/minecraft/net/minecraft/src/GenLayerDimension.java:58: incompatible types
    found : java.lang.Object
    required: net.minecraft.src.GenLayer
    obj2, genlayervoronoizoom, genlayerdimensionwater
    ^

    1 error
    ==================

    Initial client recompile failed, correct source then run updatemd5

    could someone please help me with this?

    thanks in advance :)
    Posted in: Minecraft Mods
  • 0

    posted a message on Let's upgrade 3rd person mode!
    i suppose just a camera slightly on one side of the character would be good, so you can see the tool you are using. Zoom levels could be automatically changed by the game or manually.
    Posted in: Requests / Ideas For Mods
  • 0

    posted a message on Help with errors?
    Thanks it works!
    Posted in: Modification Development
  • 0

    posted a message on Help with errors?
    Im getting this error everytime i try to decompile with shockahpi and fernflower. Everything is in the right place and i still don't know why it doesn't work D:

    == MCP 5.6 (data: 5.6, client: 1.1, server: 1.1) ==
    !! Updates available. Please run updatemcp to get them. !!
    > Creating Retroguard config files
    == Decompiling Client ==
    !! Modified jar detected. Unpredictable results !!
    > Creating SRGS for client
    > Applying Retroguard to client
    'java -cp "runtime/bin/retroguard.jar:lib:lib/*:jars/bin/minecraft.jar:jars/bin/jinput.jar:jars/bin/lwjgl.jar:jars/bin/lwjgl_util.jar" RetroGuard -searge temp/client_rg.cfg' failed : 1
    FATAL ERROR
    Traceback (most recent call last):
      File "runtime/decompile.py", line 49, in decompile
        commands.applyrg(CLIENT)
      File "/Users/williamlowe/Documents/mcp/mcp56/runtime/commands.py", line 619, in applyrg
        self.runcmd(forkcmd)
      File "/Users/williamlowe/Documents/mcp/mcp56/runtime/commands.py", line 779, in runcmd
        raise CalledProcessError(returncode, recompile, output)
    NameError: global name 'recompile' is not defined

    please help?
    Posted in: Modification Development
  • 0

    posted a message on MCP help needed
    no, i just dont get whats wrong :sad.gif:
    Posted in: Mods Discussion
  • 0

    posted a message on MCP help needed
    Can someone please help with this error i keep getting this error with fernflower.jar. Ive put in runtime/bin and everything :sad.gif:


    1 error
    ==================
    
    FATAL ERROR
    Traceback (most recent call last):
      File "/Users/williamlowe/Documents/mcp/mcp56/runtime/recompile.py", line 31, in recompile
        commands.recompile(CLIENT)
      File "/Users/williamlowe/Documents/mcp/mcp56/runtime/commands.py", line 736, in recompile
        self.runcmd(forkcmd)
      File "/Users/williamlowe/Documents/mcp/mcp56/runtime/commands.py", line 779, in runcmd
        raise CalledProcessError(returncode, forkcmd, output)
    CalledProcessError: Command 'javac -g -source 1.6 -target 1.6 -classpath "lib:lib/*:jars/bin/minecraft.jar:jars/bin/jinput.jar:jars/bin/lwjgl.jar:jars/bin/lwjgl_util.jar" -sourcepath src/minecraft -d bin/minecraft src/minecraft/net/minecraft/client/*.java src/minecraft/net/minecraft/isom/*.java src/minecraft/net/minecraft/src/*.java conf/patches/ga.java conf/patches/Start.java' returned non-zero exit status 1


    please help me?
    Posted in: Mods Discussion
  • 0

    posted a message on Real music. ARE YOU KIDDING ME?
    Quote from chocoblast2

    False.

    True
    Posted in: Culture, Media & Arts
  • 0

    posted a message on Help with errors?
    Quote from bakugo

    Why are you trying to decompile and recompile anyway if you haven't changed the code?

    Anyways post the content of ItemMap.java here, i think i can fix it.


    package net.minecraft.src;
    
    import net.minecraft.src.Block;
    import net.minecraft.src.Chunk;
    import net.minecraft.src.Entity;
    import net.minecraft.src.EntityPlayer;
    import net.minecraft.src.ItemMapBase;
    import net.minecraft.src.ItemStack;
    import net.minecraft.src.MapColor;
    import net.minecraft.src.MapData;
    import net.minecraft.src.MathHelper;
    import net.minecraft.src.World;
    
    public class ItemMap extends ItemMapBase {
    
       protected ItemMap(int var1) {
          super(var1);
          this.setMaxStackSize(1);
       }
    
       public static MapData getMPMapData(short var0, World var1) {
          "map_" + var0;
          MapData var3 = (MapData)var1.loadItemData(MapData.class, "map_" + var0);
          if(var3 == null) {
             int var4 = var1.getUniqueDataId("map");
             String var2 = "map_" + var4;
             var3 = new MapData(var2);
             var1.setItemData(var2, var3);
          }
    
          return var3;
       }
    
       public MapData getMapData(ItemStack var1, World var2) {
          "map_" + var1.getItemDamage();
          MapData var4 = (MapData)var2.loadItemData(MapData.class, "map_" + var1.getItemDamage());
          if(var4 == null) {
             var1.setItemDamage(var2.getUniqueDataId("map"));
             String var3 = "map_" + var1.getItemDamage();
             var4 = new MapData(var3);
             var4.xCenter = var2.getWorldInfo().getSpawnX();
             var4.zCenter = var2.getWorldInfo().getSpawnZ();
             var4.scale = 3;
             var4.dimension = (byte)var2.worldProvider.worldType;
             var4.markDirty();
             var2.setItemData(var3, var4);
          }
    
          return var4;
       }
    
       public void updateMapData(World var1, Entity var2, MapData var3) {
          if(var1.worldProvider.worldType == var3.dimension) {
             short var4 = 128;
             short var5 = 128;
             int var6 = 1 << var3.scale;
             int var7 = var3.xCenter;
             int var8 = var3.zCenter;
             int var9 = MathHelper.floor_double(var2.posX - (double)var7) / var6 + var4 / 2;
             int var10 = MathHelper.floor_double(var2.posZ - (double)var8) / var6 + var5 / 2;
             int var11 = 128 / var6;
             if(var1.worldProvider.hasNoSky) {
                var11 /= 2;
             }
    
             ++var3.field_28175_g;
    
             for(int var12 = var9 - var11 + 1; var12 < var9 + var11; ++var12) {
                if((var12 & 15) == (var3.field_28175_g & 15)) {
                   int var13 = 255;
                   int var14 = 0;
                   double var15 = 0.0D;
    
                   for(int var17 = var10 - var11 - 1; var17 < var10 + var11; ++var17) {
                      if(var12 >= 0 && var17 >= -1 && var12 < var4 && var17 < var5) {
                         int var18 = var12 - var9;
                         int var19 = var17 - var10;
                         boolean var20 = var18 * var18 + var19 * var19 > (var11 - 2) * (var11 - 2);
                         int var21 = (var7 / var6 + var12 - var4 / 2) * var6;
                         int var22 = (var8 / var6 + var17 - var5 / 2) * var6;
                         byte var23 = 0;
                         byte var24 = 0;
                         byte var25 = 0;
                         int[] var26 = new int[256];
                         Chunk var27 = var1.getChunkFromBlockCoords(var21, var22);
                         int var28 = var21 & 15;
                         int var29 = var22 & 15;
                         int var30 = 0;
                         double var31 = 0.0D;
                         int var34;
                         int var35;
                         int var33;
                         int var38;
                         if(var1.worldProvider.hasNoSky) {
                            var33 = var21 + var22 * 231871;
                            var33 = var33 * var33 * 31287121 + var33 * 11;
                            if((var33 >> 20 & 1) == 0) {
                               var26[Block.dirt.blockID] += 10;
                            } else {
                               var26[Block.stone.blockID] += 10;
                            }
    
                            var31 = 100.0D;
                         } else {
                            for(var33 = 0; var33 < var6; ++var33) {
                               for(var34 = 0; var34 < var6; ++var34) {
                                  var35 = var27.getHeightValue(var33 + var28, var34 + var29) + 1;
                                  int var36 = 0;
                                  if(var35 > 1) {
                                     boolean var37 = false;
    
                                     do {
                                        var37 = true;
                                        var36 = var27.getBlockID(var33 + var28, var35 - 1, var34 + var29);
                                        if(var36 == 0) {
                                           var37 = false;
                                        } else if(var35 > 0 && var36 > 0 && Block.blocksList[var36].blockMaterial.materialMapColor == MapColor.airColor) {
                                           var37 = false;
                                        }
    
                                        if(!var37) {
                                           --var35;
                                           var36 = var27.getBlockID(var33 + var28, var35 - 1, var34 + var29);
                                        }
                                     } while(var35 > 0 && !var37);
    
                                     if(var35 > 0 && var36 != 0 && Block.blocksList[var36].blockMaterial.getIsLiquid()) {
                                        var38 = var35 - 1;
                                        boolean var39 = false;
    
                                        int var41;
                                        do {
                                           var41 = var27.getBlockID(var33 + var28, var38--, var34 + var29);
                                           ++var30;
                                        } while(var38 > 0 && var41 != 0 && Block.blocksList[var41].blockMaterial.getIsLiquid());
                                     }
                                  }
    
                                  var31 += (double)var35 / (double)(var6 * var6);
                                  ++var26[var36];
                               }
                            }
                         }
    
                         var30 /= var6 * var6;
                         int var10000 = var23 / (var6 * var6);
                         var10000 = var24 / (var6 * var6);
                         var10000 = var25 / (var6 * var6);
                         var33 = 0;
                         var34 = 0;
    
                         for(var35 = 0; var35 < 256; ++var35) {
                            if(var26[var35] > var33) {
                               var34 = var35;
                               var33 = var26[var35];
                            }
                         }
    
                         double var43 = (var31 - var15) * 4.0D / (double)(var6 + 4) + ((double)(var12 + var17 & 1) - 0.5D) * 0.4D;
                         byte var42 = 1;
                         if(var43 > 0.6D) {
                            var42 = 2;
                         }
    
                         if(var43 < -0.6D) {
                            var42 = 0;
                         }
    
                         var38 = 0;
                         if(var34 > 0) {
                            MapColor var45 = Block.blocksList[var34].blockMaterial.materialMapColor;
                            if(var45 == MapColor.waterColor) {
                               var43 = (double)var30 * 0.1D + (double)(var12 + var17 & 1) * 0.2D;
                               var42 = 1;
                               if(var43 < 0.5D) {
                                  var42 = 2;
                               }
    
                               if(var43 > 0.9D) {
                                  var42 = 0;
                               }
                            }
    
                            var38 = var45.colorIndex;
                         }
    
                         var15 = var31;
                         if(var17 >= 0 && var18 * var18 + var19 * var19 < var11 * var11 && (!var20 || (var12 + var17 & 1) != 0)) {
                            byte var44 = var3.colors[var12 + var17 * var4];
                            byte var40 = (byte)(var38 * 4 + var42);
                            if(var44 != var40) {
                               if(var13 > var17) {
                                  var13 = var17;
                               }
    
                               if(var14 < var17) {
                                  var14 = var17;
                               }
    
                               var3.colors[var12 + var17 * var4] = var40;
                            }
                         }
                      }
                   }
    
                   if(var13 <= var14) {
                      var3.func_28170_a(var12, var13, var14);
                   }
                }
             }
    
          }
       }
    
       public void onUpdate(ItemStack var1, World var2, Entity var3, int var4, boolean var5) {
          if(!var2.multiplayerWorld) {
             MapData var6 = this.getMapData(var1, var2);
             if(var3 instanceof EntityPlayer) {
                EntityPlayer var7 = (EntityPlayer)var3;
                var6.func_28169_a(var7, var1);
             }
    
             if(var5) {
                this.updateMapData(var2, var3, var6);
             }
    
          }
       }
    
       public void onCreated(ItemStack var1, World var2, EntityPlayer var3) {
          var1.setItemDamage(var2.getUniqueDataId("map"));
          String var4 = "map_" + var1.getItemDamage();
          MapData var5 = new MapData(var4);
          var2.setItemData(var4, var5);
          var5.xCenter = MathHelper.floor_double(var3.posX);
          var5.zCenter = MathHelper.floor_double(var3.posZ);
          var5.scale = 3;
          var5.dimension = (byte)var2.worldProvider.worldType;
          var5.markDirty();
       }
    }


    all i was trying to do was decompile the source (with sapi and fernflower) and it wouldn't work :sad.gif:
    Posted in: Legacy Support
  • 0

    posted a message on Help with errors?
    Quote from Harry_baggs

    Well the code in that class must be wrong, you will have to correct it.

    Use a ide like eclipse or something it helps.


    i didn't actually change the code, the error comes straight after i decompile.
    Posted in: Legacy Support
  • 0

    posted a message on Real music. ARE YOU KIDDING ME?
    tbh, not all electronic music is bad :laugh.gif:
    Posted in: Culture, Media & Arts
  • 0

    posted a message on Help with errors?
    Quote from Harry_baggs

    So when is this error appearing? When you launch? When you Decompile? When you Recompile? When?

    when i try to recompile
    Posted in: Legacy Support
  • 0

    posted a message on Help with errors?
    Quote from Harry_baggs

    SAPI? It is coded wrong yes?

    nope, igot the latest version for 1.0 and mcp
    Posted in: Legacy Support
  • 0

    posted a message on Failing with mods :'(
    re-force update the client, so you have a fresh jar, then reinstall modloader. Then zip up the contents of the mod, not the folder it came in, and put that in the mods folder.
    Posted in: Legacy Support
  • To post a comment, please or register a new account.