• 0

    posted a message on [1.7.10][Alpha] Moar Achievements Redux - 1.1.16-ALPHA
    Moar Achievements Redux now revived as an alpha!

    Have an idea for an achievement? Reply with your idea!

    Some things may not work, like the nether portal achievements.

    WARNING: YOUR ACHIEVEMENTS FROM OLDER VERSIONS (1.5.2/1.6.2/1.6.4) MAY NOT BE TRANSFERRED OVER TO 1.7.10

    If you have an issue with the mod (like some achievements not being obtainable,) please create an issue on GitHub (link is below.)

    Sorry for the wait. I know I'm late by a couple of years and multiple versions behind the latest.

    Credits:
    Sonicjumper for the original code and mod.



    Posted in: WIP Mods
  • 0

    posted a message on [MC/Forge][1.6.4] Gulliver the Resizing Mod (v0.14.3 *Oct 21*): changing your perspective of Minecraft [OVER 900,000 downloads]



    23:43:16
    launcher
    Preparing to launch minecraft client for 1.6.4-Forge9.11.1.965-GulliverForged0.14.3


    23:43:16
    launcher
    Local file C:/Users\david\AppData\Roaming\.minecraft\assets\indexes/legacy.json has wrong filesize, expected 0 but was 134284


    23:43:16
    launcher
    Deleted Local file C:/Users\david\AppData\Roaming\.minecraft\assets\indexes/legacy.json


    23:43:16
    launcher
    Downloaded http://s3.amazonaws.com/Minecraft.Download/indexes/legacy.json to C:/Users\david\AppData\Roaming\.minecraft\assets\indexes/legacy.json


    23:43:16
    launcher
    Couldn't get hash for net/minecraftforge/minecraftforge/9.11.1.965/minecraftforge-9.11.1.965.jar from http://files.minecraftforge.net/maven/net/minecraftforge/minecraftforge/9.11.1.965/minecraftforge-9.11.1.965.jar.sha1: HTTP 404: Not Found


    23:43:16
    launcher
    Couldn't get hash for org/scala-lang/scala-library/2.10.2/scala-library-2.10.2.jar from http://files.minecraftforge.net/maven/org/scala-lang/scala-library/2.10.2/scala-library-2.10.2.jar.sha1: HTTP 404: Not Found


    23:43:16
    launcher
    Couldn't get hash for org/scala-lang/scala-compiler/2.10.2/scala-compiler-2.10.2.jar from http://files.minecraftforge.net/maven/org/scala-lang/scala-compiler/2.10.2/scala-compiler-2.10.2.jar.sha1: HTTP 404: Not Found


    23:43:16
    launcher
    Couldn't get hash for com/unclemion/gulliver/gulliverforged/965-0.14.3-MC1.6.4/gulliverforged-965-0.14.3-MC1.6.4.jar from http://unclemion.com/gulliver/libfiles/com/unclemion/gulliver/gulliverforged/965-0.14.3-MC1.6.4/gulliverforged-965-0.14.3-MC1.6.4.jar.sha1: HTTP 404: Not Found


    23:43:16
    launcher
    Have local file C:/Users\david\AppData\Roaming\.minecraft\libraries\com/unclemion/gulliver/gulliverforged/965-0.14.3-MC1.6.4/gulliverforged-965-0.14.3-MC1.6.4.jar but don't know what size or hash it should be. Have to assume it's good.


    23:43:16
    launcher
    Have local file C:/Users\david\AppData\Roaming\.minecraft\libraries\net/minecraftforge/minecraftforge/9.11.1.965/minecraftforge-9.11.1.965.jar but don't know what size or hash it should be. Have to assume it's good.


    23:43:16
    launcher
    Have local file C:/Users\david\AppData\Roaming\.minecraft\libraries\org/scala-lang/scala-library/2.10.2/scala-library-2.10.2.jar but don't know what size or hash it should be. Have to assume it's good.


    23:43:16
    launcher
    Have local file C:/Users\david\AppData\Roaming\.minecraft\libraries\org/scala-lang/scala-compiler/2.10.2/scala-compiler-2.10.2.jar but don't know what size or hash it should be. Have to assume it's good.


    23:43:16
    launcher
    Couldn't get hash for 1.6.4-Forge9.11.1.965-GulliverForged0.14.3 jar from https://s3.amazonaws.com/Minecraft.Download/versions/1.6.4-Forge9.11.1.965-GulliverForged0.14.3/1.6.4-Forge9.11.1.965-GulliverForged0.14.3.jar.sha1: HTTP 403: Forbidden


    23:43:16
    launcher
    Have local file C:/Users\david\AppData\Roaming\.minecraft\versions\1.6.4-Forge9.11.1.965-GulliverForged0.14.3/1.6.4-Forge9.11.1.965-GulliverForged0.14.3.jar but don't know what size or hash it should be. Have to assume it's good.


    23:43:16
    launcher
    Checking installations.


    23:43:16
    launcher
    Minecraft client 1.6.4-Forge9.11.1.965-GulliverForged0.14.3 is ready to start.


    23:43:16
    launcher
    Starting!


    23:43:17
    launcher
    Version does not support log configuration, will assume one plaintext entry per line


    00:43:39
    game
    Aug 11, 2018 11:43:39 PM net.minecraft.launchwrapper.LogWrapper log


    00:43:39
    game
    INFO: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker


    00:43:39
    game
    Aug 11, 2018 11:43:39 PM net.minecraft.launchwrapper.LogWrapper log


    00:43:39
    game
    INFO: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker


    00:43:39
    game
    Aug 11, 2018 11:43:39 PM net.minecraft.launchwrapper.LogWrapper log


    00:43:39
    game
    INFO: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker


    00:43:40
    game
    2018-08-11 23:43:40 [INFO] [ForgeModLoader] Forge Mod Loader version 6.4.49.965 for Minecraft 1.6.4 loading


    00:43:40
    game
    2018-08-11 23:43:40 [INFO] [ForgeModLoader] Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_51, running on Windows 10:amd64:10.0, installed at C:\Program Files (x86)\Minecraft\runtime\jre-x64\1.8.0_51


    00:43:40
    game
    2018-08-11 23:43:40 [WARNING] [ForgeModLoader] The coremod net.minecraftforge.lex.sortfix.CorePlugin does not have a MCVersion annotation, it may cause issues with this version of Minecraft


    00:43:40
    game
    2018-08-11 23:43:40 [WARNING] [ForgeModLoader] The coremod codechicken.core.launch.DepLoader does not have a MCVersion annotation, it may cause issues with this version of Minecraft


    00:43:40
    game
    2018-08-11 23:43:40 [WARNING] [ForgeModLoader] The coremod appeng.transformer.AppEngCore does not have a MCVersion annotation, it may cause issues with this version of Minecraft


    00:43:40
    game
    2018-08-11 23:43:40 [INFO] [ForgeModLoader] [AppEng] Core Init


    00:43:40
    game
    2018-08-11 23:43:40 [WARNING] [ForgeModLoader] The coremod codechicken.core.launch.CodeChickenCorePlugin does not have a MCVersion annotation, it may cause issues with this version of Minecraft


    00:43:41
    game
    2018-08-11 23:43:41 [WARNING] [ForgeModLoader] The coremod cofh.asm.LoadingPlugin does not have a MCVersion annotation, it may cause issues with this version of Minecraft


    00:43:41
    game
    2018-08-11 23:43:41 [WARNING] [ForgeModLoader] The coremod mods.immibis.microblocks.coremod.MicroblocksCoreMod does not have a MCVersion annotation, it may cause issues with this version of Minecraft


    00:43:41
    game
    2018-08-11 23:43:41 [WARNING] [ForgeModLoader] The coremod codechicken.nei.asm.NEICorePlugin does not have a MCVersion annotation, it may cause issues with this version of Minecraft


    00:43:41
    game
    2018-08-11 23:43:41 [WARNING] [ForgeModLoader] The coremod openblocks.OpenBlocksCorePlugin does not have a MCVersion annotation, it may cause issues with this version of Minecraft


    00:43:41
    game
    2018-08-11 23:43:41 [WARNING] [ForgeModLoader] The coremod openmods.OpenModsCorePlugin does not have a MCVersion annotation, it may cause issues with this version of Minecraft


    00:43:41
    game
    2018-08-11 23:43:41 [INFO] [ForgeModLoader] Loading tweaker optifine.OptiFineForgeTweaker from OptiFine_1.6.4_HD_U_C8.jar


    00:43:41
    game
    2018-08-11 23:43:41 [WARNING] [ForgeModLoader] The coremod tconstruct.preloader.TConstructLoaderContainer does not have a MCVersion annotation, it may cause issues with this version of Minecraft


    00:43:41
    game
    2018-08-11 23:43:41 [INFO] [TCon-Preloader] Scalpel. Suction. Lumber axe. CLEAR! *zap*


    00:43:41
    game
    2018-08-11 23:43:41 [INFO] [TCon-Preloader] Constructing preloader (Modules: [tconstruct.preloader.AccessTransformers, tconstruct.preloader.ASMInterfaceRepair])


    00:43:41
    game
    2018-08-11 23:43:41 [INFO] [TCon-Preloader] Found a properties file. Attempting load...


    00:43:41
    game
    2018-08-11 23:43:41 [INFO] [TCon-Preloader] Loaded properties successfully. Using specified settings.


    00:43:41
    game
    2018-08-11 23:43:41 [INFO] [ForgeModLoader] Loading tweaker net.minecraftxray.loader.XRayTweaker from XRay-47.jar


    00:43:41
    game
    2018-08-11 23:43:41 [INFO] [ForgeModLoader] Loading tweak class name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker


    00:43:41
    game
    2018-08-11 23:43:41 [INFO] [ForgeModLoader] Loading tweak class name optifine.OptiFineForgeTweaker


    00:43:41
    game
    2018-08-11 23:43:41 [INFO] [ForgeModLoader] Loading tweak class name net.minecraftxray.loader.XRayTweaker


    00:43:41
    game
    2018-08-11 23:43:41 [INFO] [ForgeModLoader] Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker


    00:43:41
    game
    2018-08-11 23:43:41 [INFO] [ForgeModLoader] Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker


    00:43:41
    game
    2018-08-11 23:43:41 [SEVERE] [ForgeModLoader] Unable to launch


    00:43:41
    game
    java.util.ConcurrentModificationException


    00:43:41
    game
    at java.util.ArrayList$Itr.checkForComodification(ArrayList.java:901)


    00:43:41
    game
    at java.util.ArrayList$Itr.remove(ArrayList.java:865)


    00:43:41
    game
    at net.minecraft.launchwrapper.Launch.launch(Launch.java:114)


    00:43:41
    game
    at net.minecraft.launchwrapper.Launch.main(Launch.java:27)


    00:43:42
    monitor
    Process ended with exit code 0



    I've got a problem: the game won't start and I can't find other users with a solution. Here's the game output. There's no crash report or ForgeModLoader-client logs of the startup. It loads and then stops, closing the launcher if the "Keep Launcher Open" option isn't enabled.



    Quote from master801»

    Java 1.8 error


    Update Forge to 9.11.1.1345

    Posted in: Minecraft Mods
  • 0

    posted a message on Event Handler help (Almost Solved)
    Quote from ZergMazter»

    Thank you all. I've yet fixed another bug. My answer to my specific problem was this code:


    int planks = event.world.getBlockMetadata(X, Y, Z);
    
    if (event.world.getBlockMetadata(X, Y, Z) == 1) {
    					event.world.setBlock(X, Y, Z, Blocks.planks,1,3);
    
    
    The int planks called the metadata on Blocks.planks,1,3. For some reason I needed that 3. Not sure why but hey it works.


    The parameters for setBlock are [xCoord, yCoord, zCoord, Block, metadata, set status]


    3 is used to update the block after being set, if I remember correctly.

    Posted in: Modification Development
  • 0

    posted a message on Event Handler help (Almost Solved)

    You may need to check if you're on the server side.


    !world.isRemote = Server side (the ! character is used for inverting statements. So it'll check if the variable is false instead of true.)

    world.isRemote = Client side

    Posted in: Modification Development
  • 0

    posted a message on Event Handler help (Almost Solved)
    Quote from ZergMazter»

    Ok 8 months later and I am finally getting somewhere. I finally was able to make my first event handlers work on this weekend. I now have a few event handlers that work almost as intended. I'm so hyped up. I understand minecraft code a lot more than earlier this year through trial and error. That being said I'm still no pro and greatly lack on my ability to use eclipse to help me fix my phrases.


    I have this code and I'm trying for it to work with any pickaxe, but I dont know how to do it. I only know how to specify for a specific pickaxe such as Items.iron_pickaxe. Could anyone teach me how to make picks, axes, shovels into any_pickaxe for my code?:


    @SubscribeEvent
    public void onBlockRightClicked(PlayerInteractEvent event) {

    if (event.action != PlayerInteractEvent.Action.RIGHT_CLICK_BLOCK) return;


    ItemStack heldItem = event.entityPlayer.getHeldItem();
    Block block = event.world.getBlock(event.x, event.y, event.z);


    if (block == Blocks.grass && heldItem != null && heldItem.getItem() == Items.iron_pickaxe) {
    int X = event.x, Y = event.y, Z = event.z;

    if (event.world.getBlock(X, Y, Z) == Blocks.grass) {
    event.world.setBlock(X, Y, Z, Blocks.stone);

    }
    }
    }


    This is test code. When I figure out how to do this I will be able to use this in my more to bring 1.13 stripped log functionality to 1.7.10. I need your help! Thanks




    Unfortunately you're going to have to hard-code the check for certain tools in.


    Meaning that tools/pickaxes that mods add into the game will needed to be supported by the code and not automatically, assuming the tools that mods have don't use a easy system to tell what-is-what (like an interface you can check if the item's class is an instance of.)


    I have some code I've written up for you. It explains some of the basics, but if you have questions about something, let me know and I'll try to answer it to the best of my ability.


    https://pastebin.com/RksmmCSq

    Posted in: Modification Development
  • 0

    posted a message on Mod error when trying to run without compatible mods

    You're trying to use a class from a external mod, but since it doesn't exist the class isn't loaded.


    You're going to need to use reflection and/or check if the mod is loaded (using Loader.isModLoaded("MODID") ).

    Posted in: Modification Development
  • 0

    posted a message on [SOLVED] Container block opens GUI, but isn't interactive
    Quote from ThePwnd»

    So what you're saying is that when the openGui method was being called from inside the if statement, only the getClientGUIElement method was being used?


    Essentially, yes.

    Posted in: Modification Development
  • 0

    posted a message on [SOLVED] Container block opens GUI, but isn't interactive
    Quote from ThePwnd»

    Thanks for the response! I just came back to let everyone know that I had actually figured it out after I more closely inspected the vanilla chest code, and the Iron Chest source, and a tutorial on container blocks, plus a few other errors that likely would have caused problems. Apparently I wasn't returning a container in my getServerGuiElement method either.


    Out of curiosity, while I was trying to iron out the kinks in my code, I altered the onBlockActivated method so that the openGui method was called outside the if statement:



    @Override
    	public boolean onBlockActivated(World parWorld, int posX, int posY, int posZ, EntityPlayer parPlayer, int mysteriousInt, float hitX, float hitY, float hitZ) {
    		if (parWorld.isRemote) {
    			// DEBUG
    			System.out.println("BlockWickerBasket onBlockActivated()");
    			return true;
    		}
    		
    		parPlayer.openGui(TFCLite.instance, TFCLite.GUI_ENUM.WICKER_BASKET.ordinal(), parWorld, posX, posY, posZ);
    		return true;
    	}






    and that caused my client to crash and throw a casting error which is how I became aware that I needed to return a container to the getServerGuiElement method. But my game only crashed after I moved it outside the if statement. Any idea why leaving it inside the if statement wouldn't have thrown the same error? I can confirm that this particular if statement was returning true.



    Guis are handled on the both sides (client and server) since it uses both a gui and container. A gui is used for the client side (what the end-user sees) and containers are used for the server side (since it handles inventories).


    So, since you're checking if it's on the client side, the gui would only be opened on the client's side, which is usually not what we want to do.

    Posted in: Modification Development
  • 1

    posted a message on [SOLVED] Container block opens GUI, but isn't interactive

    In your container class (ContainerWickerBasket) you're not initializing the player's inventory slots, or any slots at all.


    You can reference an example from this source code:


    This is for initializing the player's inventory slots: https://github.com/vdvman1/betterAnvil-forge/blob/master/src/main/java/vdvman1/betterAnvil/inventory/ContainerRepairBA.java#L62


    This is for initializing the slots for the player's hot bar: https://github.com/vdvman1/betterAnvil-forge/blob/master/src/main/java/vdvman1/betterAnvil/inventory/ContainerRepairBA.java#L67

    Posted in: Modification Development
  • 0

    posted a message on [SOLVED-ISH] Turning a BufferedImage into an Icon for an Item

    This is probably what you're specifically looking for, I guess.


    https://github.com/estebes/Useful-Crops/blob/master/src/main/java/com/estebes/usefulcrops/util/SpriteHelper.java


    I originally wrote the SpriteHelper class a couple years back when someone asked the same question as you, although the class has been altered (its contents are basically the same.)

    Posted in: Modification Development
  • 0

    posted a message on [SOLVED-ISH] Turning a BufferedImage into an Icon for an Item
    Quote from Chaseoqueso»

    Well I've tried my best to use what Master801 gave me but it seems I can't do anything with it without the rest of the missing code. All I need is a way to turn my BufferedImage or color array into an icon, and I'm good. I understand that with minecraft, icons are really just glorified coordinates on the texture sheet, which is why I can't just plug in my color data and be good to go. Any ideas on how I could get an icon for this image?


    EDIT: I forgot to mention, right now it's rendering the sword as a red square, not the black/magenta missing texture. Not sure if this means anything to anyone, but I figure more information is better.


    You don't need the missing class (Sprite), it's only an interface and it should be easy to figure out what it's doing.


    You only need to replace the reflection calls (and probably update names and descs) that are in the SpriteAtlasCoreBase class, to the ReflectionHelper class from FML/Forge.


    The rgb field contains the rgb values of the buffered image. You can search on Google for a tutorial on how to convert a BufferedImage to an rgb array (int[][]).

    Posted in: Modification Development
  • 0

    posted a message on [SOLVED-ISH] Turning a BufferedImage into an Icon for an Item

    Some really-really old code I have laying around. May or may not work for 1.7.10.


    https://pastebin.com/8NbFaHKH

    Posted in: Modification Development
  • 1

    posted a message on [Help] Tiny (?) fix needed on an old mod (Hack Slash Mine)

    Go to Frizzil's Discord server and ask for help there. He is usually online.

    Posted in: Mods Discussion
  • 0

    posted a message on Aether 2 Crashing!!!

    Post your full crash report in a spoiler

    Posted in: Java Edition Support
  • To post a comment, please .