Vswe's Summer Courses | You're not logged in. Sign up or log in | Server time: | Donate
One can now see other persons' badge hunts. Simply head over to their profiles to access them.

Go back to course page

Forging a Minecraft mod

Basic Minecraft modding with Minecraft Forge

1.7.2

  • 2014-04-12 02:12:55
    I am just wondering, what specific things have changed with 1.7.2? I know about items/blocks being referred to by object name instead of ID, but I want to know what other things I will have to do differently from the course before I start. Also, what are some things that have changed with Gradle integration?
  • 2014-04-21 09:07:22
    so, for installing you need to shift - right click in the forge folder and select "Open Command Line Here"

    then type:
    gradlew setupDecompWorkspace

    wait for build succeeding, if it fails just try again, then

    gradlew eclipse

    or if you are using IntelleJ

    gradlew idea

    wait for succeeding, then open up eclipse/IntelleJ.
    If you are having build errors (missing required library)
    open up command line again and type:

    gradlew setupDecompWorkspace --refresh-dependencies

    and

    gradlew eclipse (or idea) --refresh-dependencies

    if you are still having build errors delete your forge folder, re-unzip it and do everything again with setupDevWorkspace and not setupDecompWorkspace.

    I would always recommend trying setupDecompWorkspace first, because it adds a decompiled version of Minecraft's code, although with setupDevWorkspace you can still view code using openDeclaration (F3) (in eclipse)
  • 2014-04-21 09:14:58
    the main changes:

    -methods don't use ItemId parameters anymore

    -setUnlocalizedName(name) is now setBlockName(name), getUnlocalizedName() is still the same though.

    -LanguageRegistry is deprecated, use assets/modname/lang/en_US.lang (or whatever lang name) with the following syntax:
    for an item: item.itemName=Item Name
    for a block: tile.blockName=Block Name
    for a creative tab: itemGroup.tabName=Tab Name

    It's important that before and after the equal there is no space.

    If you need more localization just do like
    nameToLocalize.blabla.bla=Bla Bla Bla

    -IconRegister and Icon are now IIconRegister and IIcon

    -Items now need to be registered in the GameRegistry too


    That's all I know out of the top of my head, look at Wuppy's tutorial page for more information, google or ask a forge developer
  • 2014-04-21 09:19:21
    alright, just saw there are some classes you can't view the source from with setupDevWorkspace, but you will have to live with that if setupDecompWorkspace doesn't work
  • 2014-04-21 09:46:45
    So there is also some changes about Forge Events and @ForgeSubscribe, @ForgeSubscribe is now @SubscribeEvent and
    MinecraftForge.EVENT_BUS.register(new MyEventListener()) is now FMLCommonHandler.instance().bus().register(new MyEventListener).

    I think.

    Maybe.
  • 2014-04-21 09:50:21
    alright, with the second thing about Events up there I were wrong, check out more at http://www.minecraftforum.net/topic/1952901-172164-eventhandler-and-iextendedentityproperties/
  • 2014-04-21 10:01:26
    Oh right and all the vanilla stuff isn't in the Block and Item classes (f.e. Block.bedrock) anymore, now it has seperate classes named Blocks and Items in net.minecraft.init
  • 2014-04-22 08:05:51
    Oh and addSmelting() is now func_151396_a()
  • 2014-04-22 19:33:02
    Thanks, will use this while learning Forge!
  • Log in or sign up to reply to this thread